1997-04-01 04:44:00 +00:00
|
|
|
# New ports collection makefile for: tripwire
|
|
|
|
# Date created: 31 Mar 1997
|
|
|
|
# Whom: Joe Greco <jgreco@ns.sol.net>
|
|
|
|
#
|
1999-08-31 01:53:22 +00:00
|
|
|
# $FreeBSD$
|
1997-04-01 04:44:00 +00:00
|
|
|
#
|
|
|
|
|
2000-04-09 18:34:06 +00:00
|
|
|
PORTNAME= tripwire
|
2000-04-21 08:19:33 +00:00
|
|
|
PORTVERSION= 1.2
|
1997-04-01 04:44:00 +00:00
|
|
|
CATEGORIES= security net
|
2000-05-19 06:06:43 +00:00
|
|
|
MASTER_SITES= ftp://ftp.fu-berlin.de/unix/security/tripwire/
|
1997-04-01 04:44:00 +00:00
|
|
|
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:
|
2000-05-29 02:27:45 +00:00
|
|
|
@ (cd ${WRKDIR}; tar xpf T1.2.tar)
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${PERL} -pi -e 's|/secureplace/bin|${PREFIX}/bin|g;' \
|
|
|
|
-e 's|/usr/man|${PREFIX}/man|g;' ${WRKSRC}/Makefile
|
1997-04-01 04:44:00 +00:00
|
|
|
|
|
|
|
pre-configure:
|
|
|
|
@ ${CP} ${FILESDIR}/conf-freebsd2.h ${WRKSRC}/configs
|
2000-05-29 02:27:45 +00:00
|
|
|
@ ${SED} s%/kernel%`sysctl -bn kern.bootfile`% \
|
|
|
|
< ${FILESDIR}/tw.conf.freebsd2 \
|
|
|
|
> ${WRKSRC}/configs/tw.conf.freebsd2
|
1997-04-01 04:44:00 +00:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
@ ${MKDIR} /var/adm/tcheck
|
|
|
|
@ ${CP} ${FILESDIR}/tw.conf.freebsd2 /var/adm/tcheck/tw.config
|
2000-05-29 02:27:45 +00:00
|
|
|
# Creating tripwire database
|
1997-04-01 04:44:00 +00:00
|
|
|
@ (cd /var/adm/tcheck; tripwire -initialize)
|
|
|
|
.if defined(TRIPWIRE_FLOPPY) && ${TRIPWIRE_FLOPPY} == YES
|
2000-05-29 02:27:45 +00:00
|
|
|
# preparing the floppy
|
1997-04-01 04:44:00 +00:00
|
|
|
@ disklabel -w -B /dev/rfd0c fd1440
|
|
|
|
@ newfs -u 0 -t 0 -i 196608 -m 0 -T minimum -o space /dev/rfd0c
|
2000-05-29 02:27:45 +00:00
|
|
|
mount /dev/fd0c /mnt
|
|
|
|
# transferring things to the floppy
|
1997-04-01 04:44:00 +00:00
|
|
|
@ ${CP} -p /var/adm/tcheck/tw.config /mnt/tw.config
|
|
|
|
@ ${GZIP_CMD} < /var/adm/tcheck/databases/tw.db_`hostname` \
|
|
|
|
> /mnt/tw.db_`hostname`.gz
|
2000-05-29 02:27:45 +00:00
|
|
|
@ ${CP} -p ${FILESDIR}/twcheck /usr/bin/gunzip \
|
|
|
|
${PREFIX}/bin/tripwire \
|
|
|
|
/mnt/
|
1999-08-22 19:01:07 +00:00
|
|
|
@ ${CHMOD} 555 /mnt/tripwire /mnt/gunzip /mnt/twcheck
|
1997-04-01 04:44:00 +00:00
|
|
|
@ umount /mnt
|
2000-05-29 02:27:45 +00:00
|
|
|
# Do not forget to remove and write-protect the floppy.
|
1997-04-01 04:44:00 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|