2000-07-14 16:11:53 +00:00
|
|
|
# New ports collection makefile for: aide
|
|
|
|
# Date created: Tue Jan 4 11:45:29 PST 2000
|
|
|
|
# Whom: Cy Schubert (Cy.Schubert@uumail.gov.bc.ca)
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= aide
|
2002-11-05 13:46:25 +00:00
|
|
|
PORTVERSION= 0.9
|
2000-07-14 16:11:53 +00:00
|
|
|
CATEGORIES= security
|
|
|
|
MASTER_SITES= http://www.cs.tut.fi/~rammer/ \
|
|
|
|
ftp://ftp.cs.tut.fi/pub/src/gnu/
|
|
|
|
|
2002-03-15 15:17:58 +00:00
|
|
|
MAINTAINER= cy@FreeBSD.org
|
2003-03-07 06:14:21 +00:00
|
|
|
COMMENT= A replacement and extension for Tripwire
|
2000-07-14 16:11:53 +00:00
|
|
|
|
|
|
|
LIB_DEPENDS= mhash.2:${PORTSDIR}/security/mhash
|
|
|
|
|
2000-07-15 16:23:55 +00:00
|
|
|
USE_BISON= yes
|
2000-07-14 16:11:53 +00:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS+=--with-mhash \
|
|
|
|
--with-zlib \
|
2002-11-05 13:46:25 +00:00
|
|
|
--with-config_file=/var/db/aide/aide.conf
|
2000-07-14 16:11:53 +00:00
|
|
|
|
2001-04-04 18:14:12 +00:00
|
|
|
CONFIGURE_ENV+= LIBS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}"
|
2000-07-14 16:11:53 +00:00
|
|
|
|
|
|
|
MAN1= aide.1
|
|
|
|
MAN5= aide.conf.5
|
|
|
|
|
|
|
|
post-install:
|
2001-02-06 13:17:01 +00:00
|
|
|
@${INSTALL_DATA} ${FILESDIR}/aide.conf.freebsd ${PREFIX}/etc/aide.conf.sample
|
2002-11-05 13:46:25 +00:00
|
|
|
@${MKDIR} /var/db/aide/databases
|
|
|
|
@if [ ! -f /var/db/aide/aide.conf ]; then \
|
|
|
|
${CHOWN} root:wheel /var/db/aide ; \
|
|
|
|
${CHOWN} root:wheel /var/db/aide/databases ; \
|
|
|
|
${CHMOD} 0700 /var/db/aide ; \
|
|
|
|
${CHMOD} 0700 /var/db/aide/databases ; \
|
2001-02-06 13:17:01 +00:00
|
|
|
fi
|
2000-07-14 16:11:53 +00:00
|
|
|
@${ECHO}
|
2001-02-06 13:17:01 +00:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
2000-07-14 16:11:53 +00:00
|
|
|
@${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
|
2002-11-05 13:46:25 +00:00
|
|
|
@${CP} -p /var/db/aide/aide.conf /mnt/aide.conf
|
|
|
|
@${CP} < /var/db/aide/databases/aide.db /mnt/aide.db
|
2000-07-14 16:11:53 +00:00
|
|
|
@${CHMOD} 555 /mnt/aide
|
|
|
|
@umount /mnt
|
|
|
|
@${ECHO} Do not forget to remove and write-protect the floppy.
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|