diff options
author | John Polstra <jdp@FreeBSD.org> | 1997-04-01 04:44:00 +0000 |
---|---|---|
committer | John Polstra <jdp@FreeBSD.org> | 1997-04-01 04:44:00 +0000 |
commit | 28d7af23c3c29b0f6071d83da4a3d7cb8e408b51 (patch) | |
tree | dcff73f445c4afea3223fd189ee78889fba6cec5 /security/tripwire12/Makefile | |
parent | 16be91f502701c33ccbfd067a00322622969bf0f (diff) | |
download | ports-28d7af23c3c29b0f6071d83da4a3d7cb8e408b51.tar.gz ports-28d7af23c3c29b0f6071d83da4a3d7cb8e408b51.zip |
Notes
Diffstat (limited to 'security/tripwire12/Makefile')
-rw-r--r-- | security/tripwire12/Makefile | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/security/tripwire12/Makefile b/security/tripwire12/Makefile new file mode 100644 index 000000000000..83ab0b135de9 --- /dev/null +++ b/security/tripwire12/Makefile @@ -0,0 +1,49 @@ +# New ports collection makefile for: tripwire +# Version required: 1.2 +# Date created: 31 Mar 1997 +# Whom: Joe Greco <jgreco@ns.sol.net> +# +# $Id$ +# + +DISTNAME= tripwire-1.2 +CATEGORIES= security net +MASTER_SITES= ftp://info.cert.org/pub/tools/tripwire/ +EXTRACT_SUFX= .tar.Z + +MAINTAINER= jgreco@ns.sol.net + +MAN5= tw.config.5 +MAN8= siggen.8 tripwire.8 +NO_CDROM= "cannot be redistributed for more than the cost of duplication" +NO_PACKAGE= "requires local database to be built" +RESTRICTED= "contains crypto class algorithms" + +post-extract: + @ (cd work; tar xf T1.2.tar) + +pre-configure: + @ ${CP} ${FILESDIR}/conf-freebsd2.h ${WRKSRC}/configs + @ ${CP} ${FILESDIR}/tw.conf.freebsd2 ${WRKSRC}/configs/tw.conf.freebsd2 + +post-install: + @ ${MKDIR} /var/adm/tcheck + @ ${CP} ${FILESDIR}/tw.conf.freebsd2 /var/adm/tcheck/tw.config + @ ${ECHO} Creating tripwire database + @ (cd /var/adm/tcheck; tripwire -initialize) +.if defined(TRIPWIRE_FLOPPY) && ${TRIPWIRE_FLOPPY} == YES + @ 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 + @ ${GZIP_CMD} < ${PREFIX}/bin/tripwire > /mnt/tripwire + @ chmod 555 /mnt/tripwire + @ ${CP} -p /var/adm/tcheck/tw.config /mnt/tw.config + @ ${GZIP_CMD} < /var/adm/tcheck/databases/tw.db_`hostname` \ + > /mnt/tw.db_`hostname`.gz + @ ${CP} -p ${FILESDIR}/twcheck /mnt/twcheck + @ ${GZIP_CMD} < /usr/bin/gunzip > /mnt/gunzip + @ umount /mnt + @ ${ECHO} Do not forget to remove and write-protect the floppy. +.endif + +.include <bsd.port.mk> |