summaryrefslogtreecommitdiff
path: root/security/logcheck/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'security/logcheck/Makefile')
-rw-r--r--security/logcheck/Makefile22
1 files changed, 20 insertions, 2 deletions
diff --git a/security/logcheck/Makefile b/security/logcheck/Makefile
index d80ac131bea..9c28ef45df8 100644
--- a/security/logcheck/Makefile
+++ b/security/logcheck/Makefile
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.3 2001/07/17 15:50:31 nra Exp $
+# $NetBSD: Makefile,v 1.4 2003/05/01 20:43:41 jmmv Exp $
DISTNAME= logcheck-1.1.1
+PKGREVISION= 1
CATEGORIES= security
MASTER_SITES= http://www.psionic.com/tools/
@@ -8,14 +9,31 @@ MAINTAINER= packages@netbsd.org
HOMEPAGE= http://www.psionic.com/
COMMENT= Auditing tool for system logs on Unix boxes
-post-patch:
+USE_BUILDLINK2= YES
+USE_PKGINSTALL= YES
+
+OWN_DIRS= /var/adm/tmp /var/adm
+
+PKG_SYSCONFSUBDIR= logcheck
+EGDIR= ${PREFIX}/share/examples/logcheck
+CONF_FILES=
+.for f in hacking ignore violations violations.ignore
+CONF_FILES+= ${EGDIR}/logcheck.$f ${PKG_SYSCONFDIR}/logcheck.$f
+.endfor
+.undef f
+
+pre-configure:
@${MV} ${WRKSRC}/Makefile ${WRKSRC}/Makefile.old
@${SED} -e "s+/usr/local+${PREFIX}+g" \
< ${WRKSRC}/Makefile.old > ${WRKSRC}/Makefile
@${MV} ${WRKSRC}/systems/freebsd/logcheck.sh \
${WRKSRC}/systems/freebsd/logcheck.sh.old
@${SED} -e "s+/usr/local+${PREFIX}+g" \
+ -e "s+@PKG_SYSCONFDIR@+${PKG_SYSCONFDIR}+g" \
${WRKSRC}/systems/freebsd/logcheck.sh.old > \
${WRKSRC}/systems/freebsd/logcheck.sh
+pre-install:
+ ${INSTALL_DATA_DIR} ${EGDIR}
+
.include "../../mk/bsd.pkg.mk"