aboutsummaryrefslogtreecommitdiffstats
path: root/security/aide
diff options
context:
space:
mode:
authorantoine <antoine@FreeBSD.org>2014-11-13 17:02:57 +0800
committerantoine <antoine@FreeBSD.org>2014-11-13 17:02:57 +0800
commiteb1ee62cc88d20ca0577902ce9c60d89b5c97f4f (patch)
tree785e5de33dc0d19742094d328067d82d955b3e21 /security/aide
parent81e4074fdc5e01def6722e63eb03a2b39a4c54fa (diff)
downloadfreebsd-ports-gnome-eb1ee62cc88d20ca0577902ce9c60d89b5c97f4f.tar.gz
freebsd-ports-gnome-eb1ee62cc88d20ca0577902ce9c60d89b5c97f4f.tar.zst
freebsd-ports-gnome-eb1ee62cc88d20ca0577902ce9c60d89b5c97f4f.zip
Cleanup plist
Diffstat (limited to 'security/aide')
-rw-r--r--security/aide/Makefile11
-rw-r--r--security/aide/pkg-plist11
2 files changed, 7 insertions, 15 deletions
diff --git a/security/aide/Makefile b/security/aide/Makefile
index 1fcf003e4376..22cf01c62382 100644
--- a/security/aide/Makefile
+++ b/security/aide/Makefile
@@ -15,8 +15,6 @@ COMMENT= Replacement and extension for Tripwire
LIB_DEPENDS= libmhash.so:${PORTSDIR}/security/mhash
USES= bison gmake
-.include <bsd.port.pre.mk>
-
USE_AUTOTOOLS= autoconf
GNU_CONFIGURE= yes
CONFIGURE_ARGS+=--with-mhash \
@@ -30,9 +28,8 @@ CFLAGS+= -I${LOCALBASE}/include
SUB_FILES= pkg-message
post-install:
- @${INSTALL_DATA} ${FILESDIR}/aide.conf.freebsd ${STAGEDIR}${PREFIX}/etc/aide.conf.sample
- @if [ ! -f ${STAGEDOIR}${PREFIX}/etc/aide.conf ]; then \
- ${INSTALL_DATA} ${FILESDIR}/aide.conf.freebsd ${STAGEDIR}${PREFIX}/etc/aide.conf ; \
- fi
+ ${INSTALL_DATA} ${FILESDIR}/aide.conf.freebsd ${STAGEDIR}${PREFIX}/etc/aide.conf.sample
+ ${MKDIR} ${STAGEDIR}/var/db/aide/databases
+ ${CHMOD} 0700 ${STAGEDIR}/var/db/aide ${STAGEDIR}/var/db/aide/databases
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/security/aide/pkg-plist b/security/aide/pkg-plist
index 19f967f0bf85..edd097ca6102 100644
--- a/security/aide/pkg-plist
+++ b/security/aide/pkg-plist
@@ -1,11 +1,6 @@
bin/aide
-@unexec if cmp -s %D/etc/aide.conf %D/etc/aide.conf.sample; then rm -f %D/etc/aide.conf; fi
-etc/aide.conf.sample
-@exec [ ! -f %B/aide.conf ] && cp %B/%f %B/aide.conf
+@sample etc/aide.conf.sample
man/man1/aide.1.gz
man/man5/aide.conf.5.gz
-@exec /bin/mkdir -p /var/db/aide/databases
-@exec [ -f /var/db/aide/aide.conf ] || /usr/sbin/chown root:wheel /var/db/aide
-@exec [ -f /var/db/aide/aide.conf ] || /usr/sbin/chown root:wheel /var/db/aide/databases
-@exec [ -f /var/db/aide/aide.conf ] || /bin/chmod 0700 /var/db/aide
-@exec [ -f /var/db/aide/aide.conf ] || /bin/chmod 0700 /var/db/aide/databases
+@dir(,,0700) /var/db/aide/databases
+@dir(,,0700) /var/db/aide