aboutsummaryrefslogtreecommitdiff
path: root/security/aide
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2014-06-26 19:41:02 +0000
committerCy Schubert <cy@FreeBSD.org>2014-06-26 19:41:02 +0000
commit6260d7b1f43954ca30e7d7b477e2363286e34812 (patch)
tree106723d941bd01773248cca6ae3862c3530d5625 /security/aide
parent6a942baa0b6cd8d478bc32b62b0318343997ea8d (diff)
downloadports-6260d7b1f43954ca30e7d7b477e2363286e34812.tar.gz
ports-6260d7b1f43954ca30e7d7b477e2363286e34812.zip
Support stage.
Remove redundant database creation already in pkg-plist.
Notes
Notes: svn path=/head/; revision=359413
Diffstat (limited to 'security/aide')
-rw-r--r--security/aide/Makefile30
-rw-r--r--security/aide/pkg-plist5
2 files changed, 6 insertions, 29 deletions
diff --git a/security/aide/Makefile b/security/aide/Makefile
index 871d4f5d0ae6..ccd778f92189 100644
--- a/security/aide/Makefile
+++ b/security/aide/Makefile
@@ -12,10 +12,9 @@ MASTER_SITES= SF \
MAINTAINER= cy@FreeBSD.org
COMMENT= Replacement and extension for Tripwire
-LIB_DEPENDS= mhash.2:${PORTSDIR}/security/mhash
+LIB_DEPENDS= libmhash.so:${PORTSDIR}/security/mhash
USES= bison gmake
-NO_STAGE= yes
.include <bsd.port.pre.mk>
USE_AUTOTOOLS= autoconf
@@ -34,30 +33,9 @@ MAN5= aide.conf.5
SUB_FILES= pkg-message
post-install:
- @${INSTALL_DATA} ${FILESDIR}/aide.conf.freebsd ${PREFIX}/etc/aide.conf.sample
- @if [ ! -f ${PREFIX}/etc/aide.conf ]; then \
- ${INSTALL_DATA} ${FILESDIR}/aide.conf.freebsd ${PREFIX}/etc/aide.conf ; \
+ @${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
- @if [ ! -d /var/db/aide/databases ]; then \
- ${MKDIR} /var/db/aide/databases; \
- ${CHOWN} root:wheel /var/db/aide ; \
- ${CHOWN} root:wheel /var/db/aide/databases ; \
- ${CHMOD} 0700 /var/db/aide ; \
- ${CHMOD} 0700 /var/db/aide/databases ; \
- fi
- @${ECHO}
- @${CAT} ${PKGMESSAGE}
- @${ECHO}
-.if defined(AIDE_FLOPPY)
- @disklabel -w -B /dev/rfd0c fd1440
- @newfs -u 0 -t 0 -i 196608 -m 0 -T minimum -o space /dev/rfd0c
- @mount /dev/fd0c /mnt
- @${CP} ${PREFIX}/bin/aide /mnt/aide
- @${CP} -p /var/db/aide/aide.conf /mnt/aide.conf
- @${CP} < /var/db/aide/databases/aide.db /mnt/aide.db
- @${CHMOD} 555 /mnt/aide
- @umount /mnt
- @${ECHO} Do not forget to remove and write-protect the floppy.
-.endif
.include <bsd.port.post.mk>
diff --git a/security/aide/pkg-plist b/security/aide/pkg-plist
index a9989a71bdb3..3e9abde1ad63 100644
--- a/security/aide/pkg-plist
+++ b/security/aide/pkg-plist
@@ -1,12 +1,11 @@
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
+man/man1/aide.1.gz
+man/man5/aide.conf.5.gz
@exec [ ! -f %B/aide.conf ] && cp %B/%f %B/aide.conf
@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
-@unexec rmdir /var/db/aide/databases 2>/dev/null || true
-@unexec rmdir /var/db/aide 2>/dev/null || true
-@unexec rmdir /var/db 2>/dev/null || true