- Added post installment for configuration files

- Bump PORTREVISION

PR:		ports/107079
Submitted by:	Robin Gruyters <r.gruyters@yirdis.nl> (maintainer)
This commit is contained in:
Martin Wilke 2006-12-22 08:56:09 +00:00
parent 364c61e689
commit d802cb32bb
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=180468
2 changed files with 30 additions and 0 deletions

View File

@ -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>

View File

@ -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