freebsd-ports/security/aide/Makefile
Will Andrews ffb35e530c Add USE_BISON.
PR:		19948
Submitted by:	maintainer
2000-07-15 16:23:55 +00:00

53 lines
1.6 KiB
Makefile

# 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
PORTVERSION= 0.7
CATEGORIES= security
MASTER_SITES= http://www.cs.tut.fi/~rammer/ \
ftp://ftp.cs.tut.fi/pub/src/gnu/
MAINTAINER= Cy.Schubert@uumail.gov.bc.ca
LIB_DEPENDS= mhash.2:${PORTSDIR}/security/mhash
USE_BISON= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS+=--with-mhash \
--with-zlib \
--with-config_file=/var/adm/aide/aide.conf
CONFIGURE_ENV+= LIBS='-L${LOCALBASE}/lib -pthread'
MAN1= aide.1
MAN5= aide.conf.5
post-install:
${INSTALL_DATA} ${FILESDIR}/aide.conf.freebsd ${PREFIX}/etc/aide.conf.sample
@${ECHO}
@${ECHO} "If you want to finish setting up AIDE, don't forget to make"
@${ECHO} "a new directory called /var/adm/aide and then create your own"
@${ECHO} "aide.conf based on ${PREFIX}/etc/aide.conf.sample and then"
@${ECHO} "copy it to that directory. You will also need to make the"
@${ECHO} "databases directory, /var/adm/aide/databases, and run the"
@${ECHO} "following command:"
@${ECHO}
@${ECHO} " cd /var/adm/aide;aide --init;mv databases/aide.db.new databases/aide.db"
@${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/adm/aide/aide.conf /mnt/aide.conf
@${CP} < /var/adm/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.mk>