aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2006-12-22 16:56:09 +0800
committermiwi <miwi@FreeBSD.org>2006-12-22 16:56:09 +0800
commit1ed1b40966c3e1022374b8fc52a7d14983195898 (patch)
tree42663f3a7385991f35a8a469e8e4ad1bf9c1e6b9 /security
parentb8e65c4a92f9029ba28314476c25dde2df544c52 (diff)
downloadfreebsd-ports-gnome-1ed1b40966c3e1022374b8fc52a7d14983195898.tar.gz
freebsd-ports-gnome-1ed1b40966c3e1022374b8fc52a7d14983195898.tar.zst
freebsd-ports-gnome-1ed1b40966c3e1022374b8fc52a7d14983195898.zip
- Added post installment for configuration files
- Bump PORTREVISION PR: ports/107079 Submitted by: Robin Gruyters <r.gruyters@yirdis.nl> (maintainer)
Diffstat (limited to 'security')
-rw-r--r--security/libprelude/Makefile22
-rw-r--r--security/libprelude/pkg-plist8
2 files changed, 30 insertions, 0 deletions
diff --git a/security/libprelude/Makefile b/security/libprelude/Makefile
index 2398e178d373..40d03fb9c029 100644
--- a/security/libprelude/Makefile
+++ b/security/libprelude/Makefile
@@ -5,6 +5,7 @@
PORTNAME= libprelude
PORTVERSION= 0.9.12
+PORTREVISION= 1
CATEGORIES= security
MASTER_SITES= http://www.prelude-ids.org/download/releases/ \
http://www.prelude-ids.org/download/releases/old/
@@ -52,6 +53,27 @@ CONFIGURE_ARGS+= --with-html-dir=${PREFIX}/share/doc
post-install:
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/docs/api/html/* ${DOCSDIR}
+
+ @if [ ! -f ${PREFIX}/etc/prelude/default/client.conf ]; then \
+ ${CP} -p ${PREFIX}/etc/prelude/default/client.conf-dist \
+ ${PREFIX}/etc/prelude/default/client.conf ; \
+ fi
+
+ @if [ ! -f ${PREFIX}/etc/prelude/default/global.conf ]; then \
+ ${CP} -p ${PREFIX}/etc/prelude/default/global.conf-dist \
+ ${PREFIX}/etc/prelude/default/global.conf ; \
+ fi
+
+ @if [ ! -f ${PREFIX}/etc/prelude/default/idmef-client.conf ]; then \
+ ${CP} -p ${PREFIX}/etc/prelude/default/idmef-client.conf-dist \
+ ${PREFIX}/etc/prelude/default/idmef-client.conf ; \
+ fi
+
+ @if [ ! -f ${PREFIX}/etc/prelude/default/tls.conf ]; then \
+ ${CP} -p ${PREFIX}/etc/prelude/default/tls.conf-dist \
+ ${PREFIX}/etc/prelude/default/tls.conf ; \
+ fi
+
.endif
.include <bsd.port.post.mk>
diff --git a/security/libprelude/pkg-plist b/security/libprelude/pkg-plist
index 498fc858969a..53cf3a4b5816 100644
--- a/security/libprelude/pkg-plist
+++ b/security/libprelude/pkg-plist
@@ -1,10 +1,18 @@
@comment $FreeBSD$
bin/libprelude-config
bin/prelude-adduser
+@unexec if cmp -s %D/etc/prelude/default/client.conf %D/etc/prelude/default/client.conf-dist; then rm -f %D/etc/prelude/default/client.conf; fi
etc/prelude/default/client.conf-dist
+@exec if [ ! -f %D/etc/prelude/default/client.conf ] ; then cp -p %D/%F %B/client.conf; fi
+@unexec if cmp -s %D/etc/prelude/default/global.conf %D/etc/prelude/default/global.conf-dist; then rm -f %D/etc/prelude/default/global.conf; fi
etc/prelude/default/global.conf-dist
+@exec if [ ! -f %D/etc/prelude/default/global.conf ] ; then cp -p %D/%F %B/global.conf; fi
+@unexec if cmp -s %D/etc/prelude/default/idmef-client.conf %D/etc/prelude/default/idmef-client.conf-dist; then rm -f %D/etc/prelude/default/idmef-client.conf; fi
etc/prelude/default/idmef-client.conf-dist
+@exec if [ ! -f %D/etc/prelude/default/idmef-client.conf ] ; then cp -p %D/%F %B/idmef-client.conf; fi
+@unexec if cmp -s %D/etc/prelude/default/tls.conf %D/etc/prelude/default/tls.conf-dist; then rm -f %D/etc/prelude/default/tls.conf; fi
etc/prelude/default/tls.conf-dist
+@exec if [ ! -f %D/etc/prelude/default/tls.conf ] ; then cp -p %D/%F %B/tls.conf; fi
include/libprelude/common.h
include/libprelude/daemonize.h
include/libprelude/idmef-additional-data.h