pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

openvas-manager: Use etc configuration framework



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Wed Oct 12 00:41:29 2016 +0200
Changeset:	fd3daaa3ace6f3b05c1b524fbecfdd10320c1b36

Modified Files:
	openvas-manager/Makefile
	openvas-manager/PLIST

Log Message:
openvas-manager: Use etc configuration framework

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=fd3daaa3ace6f3b05c1b524fbecfdd10320c1b36

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 openvas-manager/Makefile | 12 ++++++++++++
 openvas-manager/PLIST    |  4 ++--
 2 files changed, 14 insertions(+), 2 deletions(-)

diffs:
diff --git a/openvas-manager/Makefile b/openvas-manager/Makefile
index 1418131..a827511 100644
--- a/openvas-manager/Makefile
+++ b/openvas-manager/Makefile
@@ -18,6 +18,18 @@ CMAKE_ARGS+=	-DLOCALSTATEDIR:PATH=${VARBASE}
 
 REPLACE_PYTHON+=	tools/extra/xml_split
 
+EGDIR=		${PREFIX}/share/examples/openvas-manager
+
+OWN_DIRS=       ${PKG_SYSCONFDIR}/openvas
+
+CONF_FILES+=	${EGDIR}/openvasmd_log.conf ${PKG_SYSCONFDIR}/openvas/openvasmd_log.conf
+CONF_FILES+=	${EGDIR}/pwpolicy.conf ${PKG_SYSCONFDIR}/openvas/pwpolicy.conf
+
+SUBST_CLASSES+=		confdir
+SUBST_FILES.confdir=	CMakeLists.txt
+SUBST_SED.confdir=	-e 's,DESTINATION $${OPENVAS_SYSCONF_DIR},DESTINATION ${EGDIR}/,'
+SUBST_STAGE.confdir=	post-patch
+
 .include "../../lang/python/application.mk"
 .include "../../databases/sqlite3/buildlink3.mk"
 .include "../../wip/openvas-libraries/buildlink3.mk"
diff --git a/openvas-manager/PLIST b/openvas-manager/PLIST
index 274b76c..292c795 100644
--- a/openvas-manager/PLIST
+++ b/openvas-manager/PLIST
@@ -1,6 +1,4 @@
 @comment $NetBSD$
-etc/openvas/openvasmd_log.conf
-etc/openvas/pwpolicy.conf
 man/man8/openvasmd.8
 sbin/greenbone-certdata-sync
 sbin/greenbone-scapdata-sync
@@ -10,6 +8,8 @@ sbin/openvas-portnames-update
 sbin/openvas-scapdata-sync
 sbin/openvasmd
 share/doc/openvas-manager/html/omp.html
+share/examples/openvas-manager/openvasmd_log.conf
+share/examples/openvas-manager/pwpolicy.conf
 share/openvas/cert/cert_bund_getbyname.xsl
 share/openvas/cert/cert_bund_update.xsl
 share/openvas/cert/cert_db_init.sql


Home | Main Index | Thread Index | Old Index