aboutsummaryrefslogtreecommitdiff
path: root/security/tripwire12/Makefile
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2002-02-22 14:45:40 +0000
committerCy Schubert <cy@FreeBSD.org>2002-02-22 14:45:40 +0000
commit54afb8f2ea142fb54c295c07840e63a9f6dcc4cb (patch)
tree4cf8f7d84938b4bd69aa0c3c6f01608f0645e7ed /security/tripwire12/Makefile
parentd6b40e4862a698044efa305e54352359da88d421 (diff)
downloadports-54afb8f2ea142fb54c295c07840e63a9f6dcc4cb.tar.gz
ports-54afb8f2ea142fb54c295c07840e63a9f6dcc4cb.zip
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
Notes
Notes: svn path=/head/; revision=55088
Diffstat (limited to 'security/tripwire12/Makefile')
-rw-r--r--security/tripwire12/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/security/tripwire12/Makefile b/security/tripwire12/Makefile
index a54f61ea8e41..da6b7a126b8c 100644
--- a/security/tripwire12/Makefile
+++ b/security/tripwire12/Makefile
@@ -19,6 +19,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"
+TWCONFIG?= ${FILESDIR}/tw.conf.freebsd2
+
post-extract:
@ (cd ${WRKDIR}; tar xpf T1.2.tar)
@@ -29,13 +31,14 @@ post-patch:
pre-configure:
@ ${CP} ${FILESDIR}/conf-freebsd2.h ${WRKSRC}/configs
@ ${SED} s%/kernel%`sysctl -bn kern.bootfile`% \
- < ${FILESDIR}/tw.conf.freebsd2 \
+ < ${TWCONFIG} \
> ${WRKSRC}/configs/tw.conf.freebsd2
post-install:
@ ${MKDIR} /var/adm/tcheck
- @ ${CP} ${FILESDIR}/tw.conf.freebsd2 /var/adm/tcheck/tw.config
+ @ ${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
@@ -53,5 +56,6 @@ post-install:
@ umount /mnt
# Do not forget to remove and write-protect the floppy.
.endif
+.endif
.include <bsd.port.mk>