head	1.44;
access;
symbols
	RELEASE_8_3_0:1.43
	RELEASE_9_0_0:1.39
	RELEASE_7_4_0:1.39
	RELEASE_8_2_0:1.39
	RELEASE_6_EOL:1.39
	RELEASE_8_1_0:1.39
	RELEASE_7_3_0:1.39
	RELEASE_8_0_0:1.39
	RELEASE_7_2_0:1.38
	RELEASE_7_1_0:1.37
	RELEASE_6_4_0:1.37
	RELEASE_5_EOL:1.37
	RELEASE_7_0_0:1.37
	RELEASE_6_3_0:1.37
	PRE_XORG_7:1.36
	RELEASE_4_EOL:1.36
	RELEASE_6_2_0:1.36
	RELEASE_6_1_0:1.35
	RELEASE_5_5_0:1.35
	RELEASE_6_0_0:1.32
	RELEASE_5_4_0:1.26
	RELEASE_4_11_0:1.26
	RELEASE_5_3_0:1.26
	RELEASE_4_10_0:1.25
	RELEASE_5_2_1:1.23
	RELEASE_5_2_0:1.23
	RELEASE_4_9_0:1.22
	RELEASE_5_1_0:1.22
	RELEASE_4_8_0:1.20
	RELEASE_5_0_0:1.18
	RELEASE_4_7_0:1.15
	RELEASE_4_6_2:1.15
	RELEASE_4_6_1:1.15
	RELEASE_4_6_0:1.15
	RELEASE_5_0_DP1:1.14
	RELEASE_4_5_0:1.11
	RELEASE_4_4_0:1.11
	RELEASE_4_3_0:1.11
	RELEASE_4_2_0:1.11
	RELEASE_4_1_1:1.11
	RELEASE_4_1_0:1.11
	RELEASE_3_5_0:1.11
	RELEASE_4_0_0:1.6
	RELEASE_3_4_0:1.6
	RELEASE_3_3_0:1.6
	RELEASE_3_2_0:1.4
	RELEASE_3_1_0:1.4
	RELEASE_2_2_8:1.3
	RELEASE_3_0_0:1.3
	RELEASE_2_2_7:1.3
	RELEASE_2_2_6:1.2
	RELEASE_2_2_5:1.2
	RELEASE_2_2_2:1.2
	jgreco_1_0:1.1.1.1
	JGRECO:1.1.1;
locks; strict;
comment	@# @;


1.44
date	2012.11.17.06.01.21;	author svnexp;	state Exp;
branches;
next	1.43;

1.43
date	2012.01.27.20.45.47;	author cy;	state Exp;
branches;
next	1.42;

1.42
date	2012.01.26.21.21.51;	author cy;	state Exp;
branches;
next	1.41;

1.41
date	2012.01.26.02.34.46;	author cy;	state Exp;
branches;
next	1.40;

1.40
date	2012.01.25.21.15.30;	author cy;	state Exp;
branches;
next	1.39;

1.39
date	2009.08.22.00.35.07;	author amdmi3;	state Exp;
branches;
next	1.38;

1.38
date	2009.02.21.00.16.16;	author cy;	state Exp;
branches;
next	1.37;

1.37
date	2007.10.04.06.00.24;	author edwin;	state Exp;
branches;
next	1.36;

1.36
date	2006.06.20.01.47.23;	author cy;	state Exp;
branches;
next	1.35;

1.35
date	2006.02.16.15.17.30;	author cy;	state Exp;
branches;
next	1.34;

1.34
date	2006.01.31.17.12.06;	author cy;	state Exp;
branches;
next	1.33;

1.33
date	2006.01.16.12.32.32;	author cy;	state Exp;
branches;
next	1.32;

1.32
date	2005.08.23.22.34.14;	author cy;	state Exp;
branches;
next	1.31;

1.31
date	2005.08.11.03.05.00;	author cy;	state Exp;
branches;
next	1.30;

1.30
date	2005.08.11.00.04.53;	author cy;	state Exp;
branches;
next	1.29;

1.29
date	2005.08.09.18.24.15;	author cy;	state Exp;
branches;
next	1.28;

1.28
date	2005.04.14.03.43.25;	author cy;	state Exp;
branches;
next	1.27;

1.27
date	2005.04.13.04.37.00;	author cy;	state Exp;
branches;
next	1.26;

1.26
date	2004.06.07.11.55.18;	author cy;	state Exp;
branches;
next	1.25;

1.25
date	2004.02.07.04.14.38;	author cy;	state Exp;
branches;
next	1.24;

1.24
date	2004.02.04.05.08.53;	author marcus;	state Exp;
branches;
next	1.23;

1.23
date	2003.11.09.17.31.31;	author cy;	state Exp;
branches;
next	1.22;

1.22
date	2003.05.08.18.23.16;	author cy;	state Exp;
branches;
next	1.21;

1.21
date	2003.05.07.23.50.32;	author cy;	state Exp;
branches;
next	1.20;

1.20
date	2003.03.07.06.10.50;	author ade;	state Exp;
branches;
next	1.19;

1.19
date	2003.02.22.16.12.23;	author nork;	state Exp;
branches;
next	1.18;

1.18
date	2002.11.10.16.47.58;	author lioux;	state Exp;
branches;
next	1.17;

1.17
date	2002.11.07.05.46.02;	author cy;	state Exp;
branches;
next	1.16;

1.16
date	2002.10.15.04.11.37;	author cy;	state Exp;
branches;
next	1.15;

1.15
date	2002.04.06.20.30.01;	author cy;	state Exp;
branches;
next	1.14;

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

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

1.12
date	2002.02.22.14.20.19;	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.44
log
@Switch exporter over
@
text
@# New ports collection makefile for:	tripwire 2.3.1
# Date created:		Tue Mar  6 06:57:58 PST 2001
# Whom:			Cy Schubert <Cy.Schubert@@uumail.gov.bc.ca>
#
# $FreeBSD: head/security/tripwire/Makefile 300897 2012-07-14 14:29:18Z beat $
#

PORTNAME=	tripwire
PORTVERSION=	2.4.2.2
PORTREVISION=	2
CATEGORIES=	security
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}-src/${PORTNAME}-${PORTVERSION}
DISTNAME=	${PORTNAME}-${PORTVERSION}-src

MAINTAINER=	cy@@FreeBSD.org
COMMENT=	File system security and verification program

LICENSE=	GPLv2
NO_LICENSES_INSTALL=	yes
LATEST_LINK=	${PORTNAME}
MAN5=		twfiles.5 twconfig.5 twpolicy.5
MAN8=		siggen.8 tripwire.8 twadmin.8 twintro.8 twprint.8
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}-src
USE_BZIP2=	yes
GNU_CONFIGURE=	yes
USE_GMAKE=	yes
MAKE_ARGS=	SYSPRE=${ARCH}-unknown-freebsd
IS_INTERACTIVE=	yes
M4=		/usr/bin/m4

# Tripwire database files are stored in TWDB.
TWDB?=		/var/db/tripwire

#	If TW_CLOBBER is set to true, the install script clobbers
#	previously installed config files.
#
#	If TW_PROMPT is set to true, the install script is interactive.

OPTIONS=	TWCFG_ETC "Put config files in ${ETCDIR}" on \
		TWCFG_TWDB "Put config files in ${TWDB}/etc" off \
		TW_CLOBBER "Clobber existing database files at install" off \
		TW_PROMPT "Interactive install (ignored when PACKAGE_BUILDING)" on \
		SW_ONLY "Install software only, do not post-configure (ignored when PACKAGE_BUILDING)" off \
		DB_BUILD "Build database during post-install (ignored when PACKAGE_BUILDING)" on

.include <bsd.port.pre.mk>

.if defined(WITH_TWCFG_ETC) && ${WITH_TWCFG_ETC} == "true" && defined(WITH_TWCFG_TWDB) && ${WITH_TWCFG_TWDB} == "true"
BROKEN=		Must select only one of WITH_TWCFG_ETC or WITH_TWCFG_TWDB
.endif

# Tripwire config files are stored in TWCFG
.if defined(WITH_TWCFG_ETC) && ${WITH_TWCFG_ETC} == "true"
TWCFG?=		${ETCDIR}
.endif
.if defined(WITH_TWCFG_TWDB) && ${WITH_TWCFG_TWDB} == "true"
TWCFG?=		${TWDB}/etc
.endif

.ifndef TWCFG
BROKEN=		TWCFG must be defined
.endif

.if defined(WITH_TW_CLOBBER) && ${WITH_TW_CLOBBER} == "true"
TW_CLOBBER=	true
.else
TW_CLOBBER=	false
.endif

.if defined(WITH_TW_PROMPT) && ${WITH_TW_PROMPT} == "true"
TW_PROMPT=	true
.else
TW_PROMPT=	false
# TW_SITE_PASS?=	FreeBSD
.ifndef TW_SITE_PASS
BROKEN=		No site passphrase specified or turn PROMPT on
.endif
# TW_LOCAL_PASS?=	FreeBSD
.ifndef TW_LOCAL_PASS
BROKEN=		No local passphrase specified or turn PROMPT on
.endif
.endif

# Tripwire policy files are stored in TWPOLICY.
TWPOLICY?=	${TWCFG}
# The Tripwire site key files are stored in TWSITEKEYDIR.
TWSITEKEYDIR?=	${TWPOLICY}
# The Tripwire local key files are stored in TWLOCALKEYDIR.
TWLOCALKEYDIR?=	${TWPOLICY}
# Tripwire report files are stored in TWREPORT.
TWREPORT?=	${TWDB}/report
# This sets the default text editor for Tripwire.
TWEDITOR?=	/usr/bin/vi
# This sets the location of the twpol.txt file that is to be installed
TWPOL_TXT?=	${FILESDIR}/twpol.m4
CONFIGURE_ARGS=	--prefix=${PREFIX} --program-transform-name='' --sysconfdir=${TWCFG}

PLIST_SUB+=	TWCFG=${TWCFG} TWDB=${TWDB}
PKGINSTALL=	${WRKDIR}/pkg-install
SUB_FILES=	pkg-deinstall
SUB_LIST=	TWCFG=${TWCFG} TWDB=${TWDB}

pre-configure:
	@@ ${M4} -DFREEBSD_VERSION=`${ECHO_CMD} ${OSREL} | ${CUT} -d. -f1` < ${TWPOL_TXT} > ${WRKSRC}/policy/twpol-FreeBSD.txt
	@@ ${MV} ${WRKSRC}/src/core/stdcore.h ${WRKSRC}/src/core/stdcore.h.orig
	@@ ${SED} 's%^# define CONFIG_FILE_ROOT	"${TWCFG}"%# define CONFIG_FILE_ROOT	"${TWCFG}"%' ${WRKSRC}/src/core/stdcore.h.orig > ${WRKSRC}/src/core/stdcore.h
	@@ ${MV} ${WRKSRC}/man/man4/twconfig.4 ${WRKSRC}/man/man5/twconfig.5
	@@ ${MV} ${WRKSRC}/man/man4/twpolicy.4 ${WRKSRC}/man/man5/twpolicy.5
	@@ ${LN} -s ${WRKSRC}/contrib ${WRKSRC}/install

install-config-files:
	@@ ${ECHO_CMD} TWPOLICY=${TWPOLICY} >> ${WRKSRC}/install/install.cfg
	@@ ${ECHO_CMD} TWSITEKEYDIR=${TWSITEKEYDIR} >> ${WRKSRC}/install/install.cfg
	@@ ${ECHO_CMD} TWLOCALKEYDIR=${TWLOCALKEYDIR} >> ${WRKSRC}/install/install.cfg
	@@ ${ECHO_CMD} TWDB=${TWDB} >> ${WRKSRC}/install/install.cfg
	@@ ${ECHO_CMD} TWREPORT=${TWREPORT} >> ${WRKSRC}/install/install.cfg
	@@ ${ECHO_CMD} TWEDITOR=${TWEDITOR} >> ${WRKSRC}/install/install.cfg
.ifdef TW_SITE_PASS
	@@ ${ECHO_CMD} TW_SITE_PASS=${TW_SITE_PASS} >> ${WRKSRC}/install/install.cfg
.endif
.ifdef TW_LOCAL_PASS
	@@ ${ECHO_CMD} TW_LOCAL_PASS=${TW_LOCAL_PASS} >> ${WRKSRC}/install/install.cfg
.endif
	@@ cd ${WRKSRC} && ${LN} -sf install/install.cfg install/install.sh .
.ifdef PACKAGE_BUILDING
	@@ cd ${WRKSRC} && PREFIX=${PREFIX} TW_CLOBBER=${TW_CLOBBER} DO_NOT_CONFIG="yes" TW_PROMPT="false" ${GMAKE} install-data-hook
.else
.if defined(WITH_SW_ONLY) && ${WITH_SW_ONLY} == "true"
	@@ cd ${WRKSRC} && PREFIX=${PREFIX} TW_CLOBBER=${TW_CLOBBER} DO_NOT_CONFIG="yes" TW_PROMPT="false" ${GMAKE} install-data-hook
.else
	@@ cd ${WRKSRC} && PREFIX=${PREFIX} TW_CLOBBER=${TW_CLOBBER} TW_PROMPT=${TW_PROMPT} ${GMAKE} install-data-hook
.endif
.endif

make-pkg-install:
	@@ ${ECHO_CMD} '#!/bin/sh -' > ${PKGINSTALL}
	@@ ${ECHO_CMD} '#' >> ${PKGINSTALL}
	@@ ${ECHO_CMD} "# Generated by make-${PKGINSTALL} on `date`" >> ${PKGINSTALL}
	@@ ${ECHO_CMD} '#' >> ${PKGINSTALL}
	@@ ${ECHO_CMD} 'case $$2 in' >> ${PKGINSTALL}
	@@ ${ECHO_CMD} 'POST-INSTALL)	;;' >> ${PKGINSTALL}
	@@ ${ECHO_CMD} '*)	exit 0;;' >> ${PKGINSTALL}
	@@ ${ECHO_CMD} 'esac' >> ${PKGINSTALL}
	@@ ${ECHO_CMD} PACKAGE_INSTALLER=yes >> ${PKGINSTALL}
	@@ ${ECHO_CMD} POLICYSRC=/tmp/$$$$.tmp >> ${PKGINSTALL}
	@@ ${ECHO_CMD} PREFIX="$(PREFIX)" >> ${PKGINSTALL}
	@@ ${ECHO_CMD} DO_NOT_CONFIG=yes >> ${PKGINSTALL}
	@@ ${ECHO_CMD} TW_CLOBBER="false" >> ${PKGINSTALL}
	@@ ${ECHO_CMD} TW_PROMPT="false" >> ${PKGINSTALL}
	@@ ${ECHO_CMD} sysconfdir="$(sysconfdir)" >> ${PKGINSTALL}
	@@ ${ECHO_CMD} prefix=${PREFIX} >> ${PKGINSTALL}
	@@ ${ECHO_CMD} sysconfdir=${TWCFG} >> ${PKGINSTALL}
	@@ ${ECHO_CMD} path_to_vi="/usr/bin/vi" >> ${PKGINSTALL}
	@@ ${ECHO_CMD} path_to_sendmail="/usr/sbin/sendmail" >> ${PKGINSTALL}
	@@ ${ECHO_CMD} BASE_DIR=${PREFIX}/ >> ${PKGINSTALL}
	@@ ${ECHO_CMD} BIN_DIR=${PREFIX}/sbin >> ${PKGINSTALL}
.ifdef TW_SITE_PASS
	@@ ${ECHO_CMD} TW_SITE_PASS=${TW_SITE_PASS} >> ${PKGINSTALL}
.endif
.ifdef TW_LOCAL_PASS
	@@ ${ECHO_CMD} TW_LOCAL_PASS=${TW_LOCAL_PASS} >> ${PKGINSTALL}
.endif
	@@ ${CAT} ${WRKSRC}/install/install.cfg >> ${PKGINSTALL}
	@@ ${ECHO_CMD} ${CAT} "> /tmp/$$$$.tmp <<'EOF'" >> ${PKGINSTALL}
	@@ ${M4} -DFREEBSD_VERSION=`${ECHO_CMD} ${OSREL} | ${CUT} -d. -f1` < ${TWPOL_TXT} >> ${PKGINSTALL}
	@@ ${ECHO_CMD} EOF >> ${PKGINSTALL}
	@@ ${SED} "/^\. /s/^/: /;/^BASE_DIR=/d;s/BIN_DIR=/: BIN_DIR=/;/^POLICYSRC/d" ${WRKSRC}/install/install.sh >> ${PKGINSTALL}

create-database:
.if defined(WITH_DB_BUILD) && ${WITH_DB_BUILD} == "true"
.if defined(WITH_SW_ONLY) && ${WITH_SW_ONLY} == "true"
	@@ ${ECHO} SW_ONLY has been specified, database will not be built.
.else
	@@ ${MKDIR} -p ${TWCFG} ${TWPOLICY} ${TWSITEKEYDIR} ${TWLOCALKEYDIR} \
		${TWDB} ${TWREPORT}
	@@ ${ECHO} Creating tripwire database
	@@ cd ${TWCFG} && ${PREFIX}/sbin/tripwire --init
	@@ ${ECHO_CMD}
	@@ ${ECHO} The tripwire database, configuration file and
	@@ ${ECHO} policy file are signed using the local and site keys,
	@@ ${ECHO} therefore according to the support staff at
	@@ ${ECHO} tripwiresecurity.com, creating a floppy is not necessary.
.endif
.endif

post-install:	install-config-files create-database make-pkg-install
	
.include <bsd.port.post.mk>
@


1.43
log
@Additional software only options and binary package build tweaks.`
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.42
log
@Fix typo.
@
text
@d10 1
a10 1
PORTREVISION=	1
d34 5
d40 5
a44 1
		TWCFG_TWDB "Put config files in ${TWDB}/etc" off
d64 20
a95 5
# Other variables that are used, when not package building:
TRIPWIRE_CLOBBER?=	false
TRIPWIRE_PROMPT?=	true
#	If TRIPWIRE_CLOBBER is set to YES, the install script clobbers
#	previously installed config files.
d118 6
d126 4
a129 1
	@@ cd ${WRKSRC} && PREFIX=${PREFIX} DO_NOT_CONFIG=yes TRIPWIRE_CLOBBER=${TRIPWIRE_CLOBBER} TRIPWIRE_PROMPT="false" ${GMAKE} install-data-hook
d131 2
a132 1
	@@ cd ${WRKSRC} && PREFIX=${PREFIX} TRIPWIRE_CLOBBER=${TRIPWIRE_CLOBBER} TRIPWIRE_PROMPT=${TRIPWIRE_PROMPT} ${GMAKE} install-data-hook
d148 2
a149 2
	@@ ${ECHO_CMD} TRIPWIRE_CLOBBER="false" >> ${PKGINSTALL}
	@@ ${ECHO_CMD} TRIPWIRE_PROMPT="false" >> ${PKGINSTALL}
d157 6
d170 4
a173 1
.if !defined(NO_DB_BUILD) && !defined(PACKAGE_BUILDING)
d183 1
a183 1
	
@


1.41
log
@Binary package improvements.

User option to specify the location of database files. (Can still be overriden
in make.conf).
@
text
@d98 1
a98 1
	@@ cd ${WRKSRC} && PREFIX=${PREFIX} TRIPWIRE_CLOBBER=${TRIPWIRE_CLOBBER} TRIPWIRE_PROMPT=${TRIPWIRE_PROMPT) ${GMAKE} install-data-hook
@


1.40
log
@Update 2.4.1.2 --> 2.4.2.2.

Binary packaging now possible -- first cut.
@
text
@d10 1
a22 1
# NO_PACKAGE=	"requires local database to be built"
d31 12
d44 11
a54 1
TWCFG?=		/usr/local/etc/tripwire
a60 2
# Tripwire database files are stored in TWDB.
TWDB?=		/var/db/tripwire
d67 1
a67 1
# Other variables that are used:
d82 1
a82 1
	@@ ${SED} 's%^# define CONFIG_FILE_ROOT	"/usr/local/etc/tripwire"%# define CONFIG_FILE_ROOT	"${TWCFG}"%' ${WRKSRC}/src/core/stdcore.h.orig > ${WRKSRC}/src/core/stdcore.h
d95 2
a96 7
.ifndef PACKAGE_BUILDING
.if ( defined(TRIPWIRE_CLOBBER) && ${TRIPWIRE_CLOBBER} == "YES" ) || \
    ( defined(TRIPWIRE_CLOBBER) && ${TRIPWIRE_CLOBBER} == "yes" )
	@@ cd ${WRKSRC} && PREFIX=${PREFIX} CLOBBER=true ${GMAKE} install-data-hook
.else
	@@ cd ${WRKSRC} && PREFIX=${PREFIX} ${GMAKE} install-data-hook
.endif
d98 1
a98 1
	@@ cd ${WRKSRC} && PREFIX=${PREFIX} DO_NOT_CONFIG=yes ${GMAKE} install-data-hook
d113 3
d145 1
a145 1
.include <bsd.port.mk>
@


1.39
log
@- Switch SourceForge ports to the new File Release System: categories starting with P,R,S
@
text
@d9 1
a9 1
PORTVERSION=	2.4.1.2
d11 1
a11 1
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}-src/${PORTNAME}-${PORTVERSION}-src
d17 2
d22 1
a22 1
NO_PACKAGE=	"requires local database to be built"
d48 2
a49 1
TRIPWIRE_CLOBBER?=	NO
d55 3
d75 1
d82 28
d112 1
a112 1
.ifndef NO_DB_BUILD
d125 2
a126 2
post-install:	install-config-files create-database

@


1.38
log
@Update 2.4.0.1 --> 2.4.1.2
@
text
@d11 1
a11 2
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	${PORTNAME}
@


1.37
log
@Remove always-false/true conditions based on OSVERSION 500000
@
text
@d9 1
a9 1
PORTVERSION=	2.4.0.1
d22 1
a22 2
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
BUILD_WRKSRC=	${WRKSRC}/src
d72 1
a72 1
	@@ cd ${WRKSRC} && PREFIX=${PREFIX} ./install.sh -f
d74 1
a74 1
	@@ cd ${WRKSRC} && PREFIX=${PREFIX} ./install.sh
@


1.36
log
@Perl is no longer required to build this port.
@
text
@a52 7
.include <bsd.port.pre.mk>

.if ${OSVERSION} < 500000
BUILD_DEPENDS=	${LOCALBASE}/lib/libstlport_gcc.so:${PORTSDIR}/devel/stlport
RUN_DEPENDS=	${LOCALBASE}/lib/libstlport_gcc.so:${PORTSDIR}/devel/stlport
.endif

d94 1
a94 1
.include <bsd.port.post.mk>
@


1.35
log
@Ugrade 2.3.1-2 --> 2.4.0.1

Also, document the rename of files/twpol.txt to files/twpol.m4 through
a repocopy. M4 is now used to conditionally build the initial copy of the
Tripwire policy file based on the version of FreeBSD this port is being
installed on.
@
text
@a26 1
USE_PERL5_BUILD=	yes
@


1.34
log
@Add Perl5 dependency.
@
text
@d9 1
a9 2
PORTVERSION=	2.3.1.2
PORTREVISION=	5
d13 1
a13 1
DISTNAME=	${PORTNAME}-${PORTVERSION:C/\.[0-9]*$/-&/:C/-\./-/}
a16 1
BROKEN=		DOES NOT BUILD: /usr/lib/libpthread.so: undefined reference to __usleep
d22 1
a22 1
WRKSRC=		${WRKDIR}/${DISTNAME}
d24 2
d27 1
a27 2
USE_PERL5=	yes
ALL_TARGET=	release
d30 1
d47 1
a47 1
TWPOL_TXT?=	${FILESDIR}/twpol.txt
d52 1
d56 5
a62 5
.if ${OSVERSION} > 501000
USE_GCC=	2.95
USE_REINPLACE=	YES
.endif

d64 1
a64 1
	@@ ${CP} ${TWPOL_TXT} ${WRKSRC}/policy/twpol.txt
d69 1
d71 1
a71 16
.if ${OSVERSION} > 501000
post-extract:
	@@ ${REINPLACE_CMD} -e "s|CC \= gcc|CC \= gcc295|g" ${WRKSRC}/src/STLport-4.0/src/gcc.mak
	@@ ${REINPLACE_CMD} -e "s|CXX \= c\+\+|CXX \= g\+\+295|g" ${WRKSRC}/src/STLport-4.0/src/gcc.mak
	@@ ${REINPLACE_CMD} -e "s|ln \-s \/usr\/include\/g\+\+ include|ln \-s ${PREFIX}\/lib\/gcc\-lib\/${ARCH}\-portbld\-freebsd${OSREL}\/2.95.3\/include include|g" ${WRKSRC}/src/STLport-4.0/STLport.mak
	@@ ${REINPLACE_CMD} -e "s|CC \= cc|CC \= gcc295|g" ${WRKSRC}/src/make_include/i386-unknown-freebsd.inc
	@@ ${REINPLACE_CMD} -e "s|CXX \= c\+\+|CXX \= g\+\+295|g" ${WRKSRC}/src/make_include/i386-unknown-freebsd.inc
	@@ ${REINPLACE_CMD} -e "s|LINKFLAGS_R \= \-pthread|LINKFLAGS_R \+\= \-lpthread|g" ${WRKSRC}/src/make_include/i386-unknown-freebsd.inc
	@@ ${REINPLACE_CMD} -e "s|LINKFLAGS_D \= \-pthread|LINKFLAGS_D \+\= \-lpthread|g" ${WRKSRC}/src/make_include/i386-unknown-freebsd.inc
	@@ ${REINPLACE_CMD} -e "s|CC \= g\+\+|CC \= g\+\+295|g" ${WRKSRC}/src/cryptlib/i386-unknown-freebsd.mak
	@@ ${REINPLACE_CMD} -e "s|malloc.h|stdlib.h|g" ${WRKSRC}/src/core/msystem.cpp
	@@ ${REINPLACE_CMD} -e "s|malloc.h|stdlib.h|g" ${WRKSRC}/src/twparser/yylex.cpp
	@@ ${REINPLACE_CMD} -e "s|malloc.h|stdlib.h|g" ${WRKSRC}/src/tripwire/tripwiremain.cpp
.endif
	
install-software:
a77 1
	@@ ${ECHO_CMD} TWPOL_TXT=${TWPOL_TXT} >> ${WRKSRC}/install/install.cfg
a91 5
	@@ ${ECHO} To create a floppy backup of your tripwire database
	@@ ${ECHO} run \"make floppy\".  The default database will not
	@@ ${ECHO} fit on a floppy, however with the removal of objects
	@@ ${ECHO} from the database, it can be made to fit on a 1.44 MB
	@@ ${ECHO} floppy disk.
d100 1
a100 12
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
	@@ ${CP} -p ${PREFIX}/sbin/tripwire /mnt/tripwire
	@@ ${CP} -p ${TWCFG}/* /mnt
	@@ ${SH} -c "${CP} -p ${TWDB}/* /mnt || exit 0"
	@@ ${CHMOD} 555 /mnt/tripwire
	@@ umount /mnt
	@@ ${ECHO} Do not forget to remove and write-protect the floppy.

do-install:	install-software create-database
@


1.33
log
@Tripwire fails to build under the latest checkout of 6.0-STABLE.
@
text
@d27 1
@


1.32
log
@Fix for broken build under 4.X.

Approved by:	portsmgr (clement)
@
text
@d18 1
@


1.31
log
@Fix ports/84648 (Interactive tripwire's database update does not work on 5.x).

PR:		ports/84648
Approved by:	portsmgr (marcus)
@
text
@a29 3
USE_GCC=	2.95
USE_REINPLACE=	YES

d55 5
d67 1
a67 1

d80 1
@


1.30
log
@Fix a fetch error.

Approved by:	portsmgr (marcus)
@
text
@d10 1
a10 1
PORTREVISION=	4
@


1.29
log
@Update twpol.txt to make it current with 5.X and beyond.

Approved by:	portsmgr (marcus)
@
text
@d12 2
a13 1
MASTER_SITES=	http://download.sourceforge.net/tripwire/
@


1.28
log
@No longer broken. Remove comment.
@
text
@d10 1
a10 1
PORTREVISION=	3
@


1.27
log
@Workaround Fix for 5.X, until a more permanent solution can be found.

PR:		73304
Submitted by:	Patrick Dung <patrick_dkt@@yahoo.com>
@
text
@a54 4
#.if ${OSVERSION} >= 500000
#BROKEN=		"Fails to build under 5.X"
#.endif

@


1.26
log
@Fix format string vulnerability.

Obtained from:	Paul Herman <pherman@@frenchfries.net> on BUGTRAQ
@
text
@d29 3
d55 3
a57 3
.if ${OSVERSION} >= 500000
BROKEN=		"Fails to build under 5.X"
.endif
d68 14
@


1.25
log
@Define unique LATEST_LINK.

Reported by:	kris
@
text
@d10 1
a10 1
PORTREVISION=	2
@


1.24
log
@Bump PORTREVISION on all ports that depend on gettext to aid with upgrading.

(Part 1)
@
text
@d18 1
@


1.23
log
@Generate DISTNAME.
@
text
@d10 1
a10 1
PORTREVISION=	1
@


1.22
log
@Last commit broke build under -STABLE. Fix error.
@
text
@d13 1
a13 1
DISTNAME=	tripwire-2.3.1-2
@


1.21
log
@Mark BROKEN under -CURRENT.
@
text
@a16 3
.if ${OSVERSION} >= 500000
BROKEN=		"Fails to build under 5.X"
.endif
d50 4
@


1.20
log
@Clear moonlight beckons.
Requiem mors pacem pkg-comment,
And be calm ports tree.

E Nomini Patri, E Fili, E Spiritu Sancti.
@
text
@d17 3
@


1.19
log
@Remove RESTRICTED tag for crypto stuff.

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


1.18
log
@o Rollback PORTCOMMENT modifications while this feature's implementation
  is better studied
o Turn PORTCOMMENT variable in Makefile back into pkg-comment files

Approved by:	kris (portmgr hat),
		portmgr, re (silence)
@
text
@a19 1
RESTRICTED=	"contains crypto class algorithms"
@


1.17
log
@Use PORTCOMMENT.
@
text
@a16 2
PORTCOMMENT=	File system security and verification program

@


1.16
log
@Fix a build bug in recent -STABLE.

Submitted by:	Jan Demter <jan@@demter.de>
@
text
@d17 2
@


1.15
log
@Fixup pkg-plist.

Pointy hat to:	myself
@
text
@d10 1
@


1.14
log
@Use my FreeBSD.org email address for MAINTAINER.
@
text
@d50 2
@


1.13
log
@Update from 1.2 (academic source release) to 2.3.1-2 (open source Linux
release).  In relation to Tripwire 1.x, 2.x is a complete rewrite.

PR:		ports/29137
Submitted by:	nectar (first review), cjc (second review)
@
text
@d14 1
a14 1
MAINTAINER=	Cy.Schubert@@osg.gov.bc.ca
@


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
@d1 3
a3 3
# New ports collection makefile for:	tripwire
# Date created:		31 Mar 1997
# Whom:			Joe Greco <jgreco@@ns.sol.net>
d9 1
a9 1
PORTVERSION=	1.2
d11 2
a12 2
MASTER_SITES=	ftp://ftp.fu-berlin.de/unix/security/tripwire/
EXTRACT_SUFX=	.tar.Z
d14 1
a14 1
MAINTAINER=	jgreco@@ns.sol.net
d16 2
a17 3
MAN5=		tw.config.5
MAN8=		siggen.8 tripwire.8
NO_CDROM=	"cannot be redistributed for more than the cost of duplication"
d20 27
d48 1
a48 1
TWCONFIG?=	${FILESDIR}/tw.conf.freebsd2
d50 22
a71 2
post-extract:
	@@ (cd ${WRKDIR}; tar xpf T1.2.tar)
d73 18
a90 3
post-patch:
	@@${PERL} -pi -e 's|/secureplace/bin|${PREFIX}/bin|g;' \
		-e 's|/usr/man|${PREFIX}/man|g;' ${WRKSRC}/Makefile
d92 1
a92 14
pre-configure:
	@@ ${CP} ${FILESDIR}/conf-freebsd2.h ${WRKSRC}/configs
	@@ ${SED} s%/kernel%`sysctl -bn kern.bootfile`% \
		< ${TWCONFIG} \
		> ${WRKSRC}/configs/tw.conf.freebsd2

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
d95 5
a99 9
	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
d101 3
a103 3
	# Do not forget to remove and write-protect the floppy.
.endif
.endif
d105 1
a105 1
.include <bsd.port.mk>
@


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
@@
