1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-20 20:09:11 +00:00

- Package list fixes

- aide.conf moved from /var/db/aide to PREFIX/etc
This commit is contained in:
Cy Schubert 2005-04-22 01:14:57 +00:00
parent 5edb8c647e
commit 3d7ba6e4fd
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=133894
5 changed files with 26 additions and 22 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= aide
PORTVERSION= 0.10
PORTREVISION= 1
CATEGORIES= security
MASTER_SITE_SOURCEFORGE+= http://unc.dl.sourceforge.net/%SUBDIR%/ \
http://umn.dl.sourceforge.net/%SUBDIR%/ \
@ -27,14 +28,12 @@ COMMENT= A replacement and extension for Tripwire
LIB_DEPENDS= mhash.2:${PORTSDIR}/security/mhash
BROKEN= "Incomplete pkg-plist (installs files into nonstandard locale directory)"
USE_GMAKE= yes
USE_BISON= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS+=--with-mhash \
--with-zlib \
--with-config_file=/var/db/aide/aide.conf
--with-config_file=${PREFIX}/etc/aide.conf
CONFIGURE_ENV+= LIBS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}"
@ -43,8 +42,11 @@ MAN5= aide.conf.5
post-install:
@${INSTALL_DATA} ${FILESDIR}/aide.conf.freebsd ${PREFIX}/etc/aide.conf.sample
@${MKDIR} /var/db/aide/databases
@if [ ! -f /var/db/aide/aide.conf ]; then \
@if [ ! -d ${PREFIX}/etc/aide.conf ]; then \
${INSTALL_DATA} ${FILESDIR}/aide.conf.freebsd ${PREFIX}/etc/aide.conf ; \
fi
@if [ ! -d /var/db/aide/databases ]; then \
${MKDIR} -p /var/db/aide/databases; \
${CHOWN} root:wheel /var/db/aide ; \
${CHOWN} root:wheel /var/db/aide/databases ; \
${CHMOD} 0700 /var/db/aide ; \

View File

@ -6,18 +6,18 @@
.SH FILES
-.B <prefix>/etc/aide.conf
+.TP
+.BI PREFIX/etc/aide.conf.sample
+.BI <prefix>/etc/aide.conf.sample
+Example aide configuration file.
+.TP
+.BI /var/adm/aide/aide.conf
+.BI <prefix>/etc/aide.conf
Default aide configuration file.
-.B <prefix>/etc/aide.db
+.TP
+.BI /var/adm/aide/databases/aide.db
+.BI /var/db/aide/databases/aide.db
Default aide database.
-.B <prefix>/etc/aide.db.new
+.TP
+.BI /var/adm/aide/databases/aide.db.new
+.BI /var/db/aide/databases/aide.db.new
Default aide output database.
.SH SEE ALSO
.BR aide.conf (5)

View File

@ -2,5 +2,5 @@ AIDE is Advanced Intrusion Detection Environment.
This piece of software was written as a replacement and extension
for Tripwire.
WWW: http://aide.sourceforge.net
WWW: ttp://sourceforge.net/projects/aide
Author: rammer@cs.tut.fi

View File

@ -1,10 +1,12 @@
If you want to finish setting up AIDE, don't forget to create your own
aide.conf based on ${PREFIX}/etc/aide.conf.sample and then copy it to
the /var/db/aide/ directory. You will also need to run the following
commands:
If you want to finish setting up AIDE, don't forget to customise your
own aide.conf in ${PREFIX}/etc/aide.conf. You will also need to run
the following commands:
cd /var/db/aide
aide --init
mv databases/aide.db.new databases/aide.db
You may want to change the permissions of the /var/adm/aide/ directory tree.
For your reference, a copy of the original aide.conf is supplied in
${PREFIX}/etc/aide.conf.sample.

View File

@ -1,10 +1,10 @@
bin/aide
etc/aide.conf.sample
@exec /bin/mkdir -p /var/adm/aide/databases
@exec [ -f /var/adm/aide/aide.conf ] || /usr/sbin/chown root:wheel /var/adm/aide
@exec [ -f /var/adm/aide/aide.conf ] || /usr/sbin/chown root:wheel /var/adm/aide/databases
@exec [ -f /var/adm/aide/aide.conf ] || /usr/sbin/chmod 0700 /var/adm/aide
@exec [ -f /var/adm/aide/aide.conf ] || /usr/sbin/chmod 0700 /var/adm/aide/databases
@unexec rmdir /var/adm/aide/databases 2>/dev/null || true
@unexec rmdir /var/adm/aide 2>/dev/null || true
@unexec rmdir /var/adm 2>/dev/null || true
@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 ] || /usr/sbin/chmod 0700 /var/db/aide
@exec [ -f /var/db/aide/aide.conf ] || /usr/sbin/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