2000-07-06 14:15:53 +00:00
# New ports collection makefile for: tripwire 1.3.1
# Date created: Fri Mar 19 18:29:18 1999
# Whom: Cy Schubert <Cy.Schubert@uumail.gov.bc.ca>
1997-04-01 04:44:00 +00:00
#
1999-08-31 01:53:22 +00:00
# $FreeBSD$
1997-04-01 04:44:00 +00:00
#
2001-01-16 17:33:20 +00:00
PORTNAME = tripwire
2000-07-06 14:15:53 +00:00
PORTVERSION = 1.3.1
2000-06-02 03:18:54 +00:00
CATEGORIES = security
2000-07-06 14:15:53 +00:00
DISTNAME = Tripwire-${ PORTVERSION } -1
1997-04-01 04:44:00 +00:00
2000-07-06 14:15:53 +00:00
MAINTAINER = Cy.Schubert@uumail.gov.bc.ca
1997-04-01 04:44:00 +00:00
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"
2000-07-06 14:15:53 +00:00
WRKSRC = ${ WRKDIR } /tw_ASR_1.3.1_src
1997-04-01 04:44:00 +00:00
2000-07-06 14:15:53 +00:00
. i n c l u d e < b s d . p o r t . p r e . m k >
2000-05-29 02:27:45 +00:00
2000-07-06 14:15:53 +00:00
. i f ! e x i s t s ( $ { D I S T D I R } / $ { D I S T N A M E } $ { E X T R A C T _ S U F X } )
IGNORE = 'Please read http://www.tripwiresecurity.com/ for details of how to obtain the Tripwire source. Put the file ${DISTNAME}${EXTRACT_SUFX} into the directory ${DISTDIR} and run make again.'
. e n d i f
1997-04-01 04:44:00 +00:00
pre-configure :
@ ${ CP } ${ FILESDIR } /conf-freebsd2.h ${ WRKSRC } /configs
2000-07-06 14:15:53 +00:00
@ ${ CP } ${ 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-07-06 14:15:53 +00:00
@ ${ ECHO } Creating tripwire database
1997-04-01 04:44:00 +00:00
@ ( cd /var/adm/tcheck; tripwire -initialize)
. i f d e f i n e d ( T R I P W I R E _ F L O P P Y ) & & ${TRIPWIRE_FLOPPY} = = YES
@ disklabel -w -B /dev/rfd0c fd1440
@ newfs -u 0 -t 0 -i 196608 -m 0 -T minimum -o space /dev/rfd0c
2000-07-06 14:15:53 +00:00
@ mount /dev/fd0c /mnt
@ ${ GZIP_CMD } < ${ PREFIX } /bin/tripwire > /mnt/tripwire
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-07-06 14:15:53 +00:00
@ ${ CP } -p ${ FILESDIR } /twcheck /mnt/twcheck
@ ${ GZIP_CMD } < /usr/bin/gunzip > /mnt/gunzip
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-07-06 14:15:53 +00:00
@ ${ ECHO } Do not forget to remove and write-protect the floppy.
1997-04-01 04:44:00 +00:00
. e n d i f
2000-07-06 14:15:53 +00:00
. i n c l u d e < b s d . p o r t . p o s t . m k >