1997-04-01 06:44:00 +02:00
|
|
|
# New ports collection makefile for: tripwire
|
|
|
|
# Date created: 31 Mar 1997
|
|
|
|
# Whom: Joe Greco <jgreco@ns.sol.net>
|
|
|
|
#
|
1999-08-31 03:53:22 +02:00
|
|
|
# $FreeBSD$
|
1997-04-01 06:44:00 +02:00
|
|
|
#
|
|
|
|
|
2000-04-09 20:34:06 +02:00
|
|
|
PORTNAME= tripwire
|
2000-04-21 10:19:33 +02:00
|
|
|
PORTVERSION= 1.2
|
2000-06-02 05:18:54 +02:00
|
|
|
CATEGORIES= security
|
2009-04-26 09:22:57 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_NETBSD}
|
1997-04-01 06:44:00 +02:00
|
|
|
|
|
|
|
MAINTAINER= jgreco@ns.sol.net
|
2003-02-21 14:28:59 +01:00
|
|
|
COMMENT= File system security and verification program
|
1997-04-01 06:44:00 +02:00
|
|
|
|
2004-03-08 07:20:17 +01:00
|
|
|
LATEST_LINK= tripwire12
|
1997-04-01 06:44:00 +02:00
|
|
|
MAN5= tw.config.5
|
|
|
|
MAN8= siggen.8 tripwire.8
|
2006-07-20 23:09:35 +02:00
|
|
|
NO_CDROM= cannot be redistributed for more than the cost of duplication
|
|
|
|
NO_PACKAGE= requires local database to be built
|
2003-11-20 16:06:14 +01:00
|
|
|
USE_PERL5_BUILD=yes
|
1997-04-01 06:44:00 +02:00
|
|
|
|
2002-02-22 15:45:40 +01:00
|
|
|
TWCONFIG?= ${FILESDIR}/tw.conf.freebsd2
|
|
|
|
|
1997-04-01 06:44:00 +02:00
|
|
|
post-extract:
|
2000-05-29 04:27:45 +02: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
|
2008-09-12 23:00:07 +02:00
|
|
|
${FIND} ${WRKSRC} -type f | ${XARGS} ${REINPLACE_CMD} -e \
|
|
|
|
's|bs_ntohl|ntohl|g;s|bs_htonl|htonl|g'
|
1997-04-01 06:44:00 +02:00
|
|
|
|
|
|
|
pre-configure:
|
|
|
|
@ ${CP} ${FILESDIR}/conf-freebsd2.h ${WRKSRC}/configs
|
2003-01-30 09:23:53 +01:00
|
|
|
@ ${SED} s%/kernel%`/sbin/sysctl -bn kern.bootfile`% \
|
2002-02-22 15:45:40 +01:00
|
|
|
< ${TWCONFIG} \
|
2000-05-29 04:27:45 +02:00
|
|
|
> ${WRKSRC}/configs/tw.conf.freebsd2
|
1997-04-01 06:44:00 +02:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
@ ${MKDIR} /var/adm/tcheck
|
2002-02-22 15:45:40 +01:00
|
|
|
@ ${CP} ${TWCONFIG} /var/adm/tcheck/tw.config
|
2000-05-29 04:27:45 +02:00
|
|
|
# Creating tripwire database
|
2002-02-22 15:45:40 +01:00
|
|
|
.ifndef NO_DB_BUILD
|
1997-04-01 06:44:00 +02:00
|
|
|
@ (cd /var/adm/tcheck; tripwire -initialize)
|
|
|
|
.if defined(TRIPWIRE_FLOPPY) && ${TRIPWIRE_FLOPPY} == YES
|
2000-05-29 04:27:45 +02:00
|
|
|
# preparing the floppy
|
1997-04-01 06:44:00 +02: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 04:27:45 +02:00
|
|
|
mount /dev/fd0c /mnt
|
|
|
|
# transferring things to the floppy
|
1997-04-01 06:44:00 +02: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 04:27:45 +02:00
|
|
|
@ ${CP} -p ${FILESDIR}/twcheck /usr/bin/gunzip \
|
|
|
|
${PREFIX}/bin/tripwire \
|
|
|
|
/mnt/
|
1999-08-22 21:01:07 +02:00
|
|
|
@ ${CHMOD} 555 /mnt/tripwire /mnt/gunzip /mnt/twcheck
|
1997-04-01 06:44:00 +02:00
|
|
|
@ umount /mnt
|
2000-05-29 04:27:45 +02:00
|
|
|
# Do not forget to remove and write-protect the floppy.
|
1997-04-01 06:44:00 +02:00
|
|
|
.endif
|
2002-02-22 15:45:40 +01:00
|
|
|
.endif
|
1997-04-01 06:44:00 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|