head	1.25;
access;
symbols
	RELEASE_8_3_0:1.24
	RELEASE_9_0_0:1.23
	RELEASE_7_4_0:1.23
	RELEASE_8_2_0:1.23
	RELEASE_6_EOL:1.23
	RELEASE_8_1_0:1.23
	RELEASE_7_3_0:1.23
	RELEASE_8_0_0:1.23
	RELEASE_7_2_0:1.22
	RELEASE_7_1_0:1.22
	RELEASE_6_4_0:1.22
	RELEASE_5_EOL:1.21
	RELEASE_7_0_0:1.21
	RELEASE_6_3_0:1.21
	PRE_XORG_7:1.21
	RELEASE_4_EOL:1.21
	RELEASE_6_2_0:1.21
	RELEASE_6_1_0:1.20
	RELEASE_5_5_0:1.20
	RELEASE_6_0_0:1.20
	RELEASE_5_4_0:1.20
	RELEASE_4_11_0:1.20
	RELEASE_5_3_0:1.20
	RELEASE_4_10_0:1.20
	RELEASE_5_2_1:1.19
	RELEASE_5_2_0:1.19
	RELEASE_4_9_0:1.17
	RELEASE_5_1_0:1.17
	RELEASE_4_8_0:1.17
	RELEASE_5_0_0:1.14
	RELEASE_4_7_0:1.14
	RELEASE_4_6_2:1.13
	RELEASE_4_6_1:1.13
	RELEASE_4_6_0:1.13
	RELEASE_5_0_DP1:1.13
	RELEASE_4_5_0:1.11
	old_RELEASE_4_4_0:1.11
	old_RELEASE_4_3_0:1.11
	old_RELEASE_4_2_0:1.11
	old_RELEASE_4_1_1:1.11
	old_RELEASE_4_1_0:1.11
	old_RELEASE_3_5_0:1.11
	old_RELEASE_4_0_0:1.6
	old_RELEASE_3_4_0:1.6
	old_RELEASE_3_3_0:1.6
	old_RELEASE_3_2_0:1.4
	old_RELEASE_3_1_0:1.4
	old_RELEASE_2_2_8:1.3
	old_RELEASE_3_0_0:1.3
	old_RELEASE_2_2_7:1.3
	old_RELEASE_2_2_6:1.2
	old_RELEASE_2_2_5:1.2
	old_RELEASE_2_2_2:1.2
	old_jgreco_1_0:1.1.1.1
	old_JGRECO:1.1.1;
locks; strict;
comment	@# @;


1.25
date	2012.11.17.06.01.21;	author svnexp;	state Exp;
branches;
next	1.24;

1.24
date	2012.02.23.00.34.28;	author cy;	state Exp;
branches;
next	1.23;

1.23
date	2009.04.26.07.22.57;	author itetcu;	state Exp;
branches;
next	1.22;

1.22
date	2008.09.12.21.00.06;	author gahr;	state Exp;
branches;
next	1.21;

1.21
date	2006.07.20.21.09.35;	author jmelo;	state Exp;
branches;
next	1.20;

1.20
date	2004.03.08.06.20.17;	author cy;	state Exp;
branches;
next	1.19;

1.19
date	2003.11.20.15.06.09;	author trevor;	state Exp;
branches;
next	1.18;

1.18
date	2003.11.20.13.51.44;	author trevor;	state Exp;
branches;
next	1.17;

1.17
date	2003.02.22.16.12.23;	author nork;	state Exp;
branches;
next	1.16;

1.16
date	2003.02.21.13.26.57;	author knu;	state Exp;
branches;
next	1.15;

1.15
date	2003.01.30.08.23.53;	author kris;	state Exp;
branches;
next	1.14;

1.14
date	2002.06.11.12.32.56;	author cy;	state Exp;
branches;
next	1.13;

1.13
date	2002.02.27.12.55.34;	author cy;	state Exp;
branches;
next	1.12;

1.12
date	2002.02.22.14.45.40;	author cy;	state Exp;
branches;
next	1.11;

1.11
date	2000.06.02.03.18.52;	author will;	state Exp;
branches;
next	1.10;

1.10
date	2000.05.29.02.27.40;	author steve;	state Exp;
branches;
next	1.9;

1.9
date	2000.05.19.06.06.43;	author cpiazza;	state Exp;
branches;
next	1.8;

1.8
date	2000.04.21.08.19.11;	author mharo;	state Exp;
branches;
next	1.7;

1.7
date	2000.04.09.18.30.43;	author cpiazza;	state Exp;
branches;
next	1.6;

1.6
date	99.08.31.01.51.56;	author peter;	state Exp;
branches;
next	1.5;

1.5
date	99.08.22.18.59.57;	author mharo;	state Exp;
branches;
next	1.4;

1.4
date	98.12.01.08.33.29;	author asami;	state Exp;
branches;
next	1.3;

1.3
date	98.04.07.17.42.21;	author jgreco;	state Exp;
branches;
next	1.2;

1.2
date	97.04.03.23.09.49;	author jgreco;	state Exp;
branches;
next	1.1;

1.1
date	97.04.01.04.44.00;	author jdp;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	97.04.01.04.44.00;	author jdp;	state Exp;
branches;
next	;


desc
@@


1.25
log
@Switch exporter over
@
text
@# New ports collection makefile for:	tripwire
# Date created:		31 Mar 1997
# Whom:			Joe Greco <jgreco@@ns.sol.net>
#
# $FreeBSD: head/security/tripwire12/Makefile 300897 2012-07-14 14:29:18Z beat $
#

PORTNAME=	tripwire
PORTVERSION=	1.2
PORTREVISION=	1
CATEGORIES=	security
MASTER_SITES=	${MASTER_SITE_NETBSD}

MAINTAINER=	jgreco@@ns.sol.net
COMMENT=	File system security and verification program

LATEST_LINK=	tripwire12
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
USE_PERL5_BUILD=yes

TWCONFIG?=	${FILESDIR}/tw.conf.freebsd8

post-extract:
	@@ (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
	${FIND} ${WRKSRC} -type f | ${XARGS} ${REINPLACE_CMD} -e \
	    's|bs_ntohl|ntohl|g;s|bs_htonl|htonl|g'

pre-configure:
	@@ ${CP} ${FILESDIR}/conf-freebsd2.h ${WRKSRC}/configs
	@@ ${cp} ${TWCONFIG} ${WRKSRC}/configs/tw.conf.freebsd8

post-install:
	@@ ${MKDIR} /var/adm/tcheck
	@@ ${CP} ${TWCONFIG} /var/adm/tcheck/tw.config
	# Creating tripwire database
.ifndef NO_DB_BUILD
	@@ (cd /var/adm/tcheck; tripwire -initialize)
.if defined(TRIPWIRE_FLOPPY) && ${TRIPWIRE_FLOPPY} == YES
	# preparing the 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
	# transferring things to the floppy
	@@ ${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 /usr/bin/gunzip \
			${PREFIX}/bin/tripwire \
		/mnt/
	@@ ${CHMOD} 555 /mnt/tripwire /mnt/gunzip /mnt/twcheck
	@@ umount /mnt
	# Do not forget to remove and write-protect the floppy.
.endif
.endif

.include <bsd.port.mk>
@


1.24
log
@Misc fixes (not comprehensive) for freebsd8.

Submitted by:	Maintainer (Joe Greco <jgreco@@ns.sol.net>)
Approved by:	Implicitly approved by maintainer
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.23
log
@Use MASTER_SITE_NETBSD to make it fetch.

Prompted by:	QAT QA run
@
text
@d10 1
d24 1
a24 1
TWCONFIG?=	${FILESDIR}/tw.conf.freebsd2
d37 1
a37 3
	@@ ${SED} s%/kernel%`/sbin/sysctl -bn kern.bootfile`% \
		< ${TWCONFIG} \
		> ${WRKSRC}/configs/tw.conf.freebsd2
@


1.22
log
@- Unbreak on 64-bit, little-endian machines (read: amd64)

Approved by:	portmgr (marcus)
@
text
@d11 1
a11 1
MASTER_SITES=	http://www.mirrors.wiretapped.net/security/host-intrusion-detection/tripwire/old/
@


1.21
log
@- Update mastersite.

PR:		ports/99783
Submitted by:	tjs <tjs@@cdpa.nsysu.edu.tw>
Approved by:	maintainer (timeout 15 days)
@
text
@d31 2
@


1.20
log
@Add unique LATAEST_LINK.

Approved by:	MAINTAINER timeout
@
text
@d11 1
a11 2
MASTER_SITES=	ftp://ftp.fu-berlin.de/unix/security/tripwire/old/
EXTRACT_SUFX=	.tar.gz
d19 2
a20 2
NO_CDROM=	"cannot be redistributed for more than the cost of duplication"
NO_PACKAGE=	"requires local database to be built"
@


1.19
log
@Define USE_PERL5_BUILD, not erroneous USE_PERL.

Submitted by:	Oliver Eikemeier
@
text
@d17 1
@


1.18
log
@Define USE_PERL to make Perl available for (mostly deprecated)
"perl -pi -e" construction.
@
text
@d21 1
a21 1
USE_PERL=	yes
@


1.17
log
@Remove RESTRICTED tag for crypto stuff.

Approved by:	kris (implicitly)
@
text
@d21 1
@


1.16
log
@De-pkg-comment.
@
text
@a20 1
RESTRICTED=	"contains crypto class algorithms"
@


1.15
log
@Use the full path to /sbin/sysctl

Noticed by:	'make index' in crontab
@
text
@d15 1
@


1.14
log
@Distfile has moved and has new checksum.

PR:		39120
Submitted by:	MAINTAINER:  Joe Greco <jgreco@@ns.sol.net>
@
text
@d33 1
a33 1
	@@ ${SED} s%/kernel%`sysctl -bn kern.bootfile`% \
@


1.13
log
@Port repo-copied from tripwire to tripwire12 to make way for the new 2.3.1-2 port.
@
text
@d11 2
a12 2
MASTER_SITES=	ftp://ftp.fu-berlin.de/unix/security/tripwire/
EXTRACT_SUFX=	.tar.Z
@


1.12
log
@Add configuration options to Tripwire 1.3.1 install:
- Add the TWCONFIG variable to install a user defined tw.config instead
  of the one supplied with the port.
- Add the NO_DB_BUILD variable to skip the database build during install
  for users upgrading or reinstalling the port who wish to use an existing
  or previously installed Tripwire database.

PR:		ports/35127
Submitted by:	cjc
Approved by:	jgreco@@ns.sol.net
@
text
@@


1.11
log
@Remove redundant/inappropriate CATEGORIES.  People need to start reading
the Porter's Handbook.  :-)
@
text
@d5 1
a5 1
# $FreeBSD: ports/security/tripwire/Makefile,v 1.10 2000/05/29 02:27:40 steve Exp $
d22 2
d34 1
a34 1
		< ${FILESDIR}/tw.conf.freebsd2 \
d39 1
a39 1
	@@ ${CP} ${FILESDIR}/tw.conf.freebsd2 /var/adm/tcheck/tw.config
d41 1
d58 1
@


1.10
log
@- Fix some of the compiler warnings (see patches/patch-warnings)
- Fix the Makefiles to obey the CC and CFLAGS settings
- Fix patches/patch-ab to be PREFIX/LOCALBASE safe
- Fix the post-install to not compress the gunzip and tripwire executables
  that go onto a floppy -- there is no support for the gzip-ed ELF binaries
  at all, and even for the older AOUT ones such support was optional
- Replaces the /kernel with `sysctl -n kern.bootfile` in the tw.conf as the
  tw.conf.freebsd2 is copied into the right place.
- Replace the use of mktemp(3) with tmpfile(3) (see patches/patch-mktemp).
  This also caused a removal of a few buffers (of size MAXPATHLEN+256) and
  quite a few strcpy and sprintf invocations.

PR:		18634
Submitted by:	Mikhail Teterin <mi@@aldan.algebra.com>
@
text
@d5 1
a5 1
# $FreeBSD: ports/security/tripwire/Makefile,v 1.9 2000/05/19 06:06:43 cpiazza Exp $
d10 1
a10 1
CATEGORIES=	security net
@


1.9
log
@Update MASTER_SITES

PR:		18624
Submitted by:	Mikhail Teterin <mi@@aldan.algebra.com>
@
text
@d5 1
a5 1
# $FreeBSD: ports/security/tripwire/Makefile,v 1.8 2000/04/21 08:19:11 mharo Exp $
d23 5
a27 1
	@@ (cd ${WRKDIR}; tar xf T1.2.tar)
d31 3
a33 1
	@@ ${CP} ${FILESDIR}/tw.conf.freebsd2 ${WRKSRC}/configs/tw.conf.freebsd2
d38 1
a38 1
	@@ ${ECHO} Creating tripwire database
d41 1
d44 2
a45 2
	@@ mount /dev/fd0c /mnt
	@@ ${GZIP_CMD} < ${PREFIX}/bin/tripwire > /mnt/tripwire
d49 3
a51 2
	@@ ${CP} -p ${FILESDIR}/twcheck /mnt/twcheck
	@@ ${GZIP_CMD} < /usr/bin/gunzip > /mnt/gunzip
d54 1
a54 1
	@@ ${ECHO} Do not forget to remove and write-protect the floppy.
@


1.8
log
@Correct whitespace introduced during PORTNAME conversion and portlint
@
text
@d5 1
a5 1
# $FreeBSD: ports/security/tripwire/Makefile,v 1.7 2000/04/09 18:30:43 cpiazza Exp $
d11 1
a11 1
MASTER_SITES=	ftp://coast.cs.purdue.edu/pub/COAST/Tripwire/
@


1.7
log
@Update with the new PORTNAME/PORTVERSION variables
@
text
@d5 1
a5 1
# $FreeBSD: ports/security/tripwire/Makefile,v 1.6 1999/08/31 01:51:56 peter Exp $
d9 1
a9 1
PORTVERSION= 	1.2
d11 1
a11 1
MASTER_SITES=   ftp://coast.cs.purdue.edu/pub/COAST/Tripwire/
@


1.6
log
@$Id$ -> $FreeBSD$
@
text
@a1 1
# Version required:     1.2
d5 1
a5 1
# $FreeBSD$
d8 2
a9 1
DISTNAME=       tripwire-1.2
@


1.5
log
@chmod -> ${CHMOD}
chown -> ${CHOWN}
@
text
@d6 1
a6 1
# $Id: Makefile,v 1.4 1998/12/01 08:33:29 asami Exp $
@


1.4
log
@work -> ${WRKDIR}
@
text
@d6 1
a6 1
# $Id: Makefile,v 1.3 1998/04/07 17:42:21 jgreco Exp $
d44 1
a44 1
	@@ chmod 555 /mnt/tripwire /mnt/gunzip /mnt/twcheck
@


1.3
log
@Minor correction-

The CERT FTP site no longer contains Tripwire.  A little digging and
sleuthing reveals that Spaf has the stuff over at coast.cs.purdue.edu
anyways.  It appears that it might move again in the future, see

ftp://coast.cs.purdue.edu/pub/COAST/Tripwire/README-1297
@
text
@d6 1
a6 1
# $Id: Makefile,v 1.2 1997/04/03 23:09:49 jgreco Exp $
d23 1
a23 1
	@@ (cd work; tar xf T1.2.tar)
@


1.2
log
@Minor correction-

Changed floppy generation code to chmod gunzip to executable by a
better strategic location for the chmod command.  The former code
failed to do this, meaning gunzip couldn't be run from the floppy.

"Ooops".  Yes, I actually do use this code!  Honest!  :-)
@
text
@d6 1
a6 1
# $Id: Makefile,v 1.1.1.1 1997/04/01 04:44:00 jdp Exp $
d11 1
a11 1
MASTER_SITES=   ftp://info.cert.org/pub/tools/tripwire/
@


1.1
log
@Initial revision
@
text
@d6 1
a6 1
# $Id$
a38 1
	@@ chmod 555 /mnt/tripwire
d44 1
@


1.1.1.1
log
@Initial import of Joe Greco's tripwire port.

Submitted by:	jgreco@@ns.sol.net
@
text
@@
