mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-26 05:02:18 +00:00
6873fbe267
Approved by: portmgr (linimon)
13 lines
678 B
Plaintext
13 lines
678 B
Plaintext
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
|