freebsd-ports/security/aide/pkg-plist
Cy Schubert 6873fbe267 Correct chmod location.
Approved by:	portmgr (linimon)
2007-12-02 07:02:37 +00:00

12 lines
678 B
Text

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