summaryrefslogtreecommitdiff
path: root/security/tripwire/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'security/tripwire/Makefile')
-rw-r--r--security/tripwire/Makefile18
1 files changed, 14 insertions, 4 deletions
diff --git a/security/tripwire/Makefile b/security/tripwire/Makefile
index 17bbf983fca..2c03e4a7932 100644
--- a/security/tripwire/Makefile
+++ b/security/tripwire/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.9 2003/04/10 20:10:20 grant Exp $
+# $NetBSD: Makefile,v 1.10 2003/05/01 21:47:42 jmmv Exp $
#
DISTNAME= tripwire-1.2
+PKGREVISION= 1
CATEGORIES= security
MASTER_SITES= ftp://coast.cs.purdue.edu/pub/tools/unix/ids/tripwire/
EXTRACT_SUFX= .tar.Z
@@ -10,23 +11,32 @@ MAINTAINER= packages@netbsd.org
HOMEPAGE= http://www.cerias.purdue.edu/coast/coast-library.html
COMMENT= File and directory integrity checker
+USE_BUILDLINK2= YES
+USE_PKGINSTALL= YES
+
+PKG_SYSCONFSUBDIR= tripwire
+OWN_DIRS= ${PKG_SYSCONFDIR}/databases
+EGDIR= ${PREFIX}/share/examples/tripwire
+CONF_FILES= ${EGDIR}/tripwire.conf ${PKG_SYSCONFDIR}/tripwire.conf
+
post-extract:
cd ${WRKDIR} && ${PAX} -O -rf T1.2.tar
${CP} ${FILESDIR}/conf-${LOWER_OPSYS}.h ${WRKSRC}/configs
-post-patch:
+pre-configure:
${MV} ${WRKSRC}/include/config.h ${WRKSRC}/include/config.h.in
${SED} -e 's|@localbase@|${LOCALBASE}|g' \
-e 's|@LOWER_OPSYS@|${LOWER_OPSYS}|g' \
+ -e 's|@PKG_SYSCONFDIR@|${PKG_SYSCONFDIR}|g' \
${WRKSRC}/include/config.h.in > ${WRKSRC}/include/config.h
PRE_ROOT_CMD= ${CHMOD} -R go+rwx ${WRKDIR}
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/tripwire
- ${INSTALL_DATA_DIR} ${PREFIX}/etc/tripwire/databases
+ ${INSTALL_DATA_DIR} ${EGDIR}
${INSTALL_DATA} ${WRKSRC}/docs/designdoc.ps ${PREFIX}/share/doc/tripwire
${SED} -e 's|@localbase@|${LOCALBASE}|g' -e 's|@x11base@|${X11BASE}|g' \
- ${FILESDIR}/tw.conf.${LOWER_OPSYS} > ${PREFIX}/etc/tripwire/tripwire.conf
+ ${FILESDIR}/tw.conf.${LOWER_OPSYS} > ${EGDIR}/tripwire.conf
.include "../../mk/bsd.pkg.mk"