summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authoradrianp <adrianp>2008-01-02 09:00:34 +0000
committeradrianp <adrianp>2008-01-02 09:00:34 +0000
commit9bf038493fdac0776a0260d31b70233dd0ab8225 (patch)
tree66c65ee463e3932a0d98bdafd257c386912232e5 /security
parent1c0e0a45d7ab85bf0ef44063469295fbbf965ae4 (diff)
downloadpkgsrc-9bf038493fdac0776a0260d31b70233dd0ab8225.tar.gz
Look out for the case where audit-packages is already installed with the
base OS on NetBSD.
Diffstat (limited to 'security')
-rw-r--r--security/audit-packages/Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/security/audit-packages/Makefile b/security/audit-packages/Makefile
index aa25a68f2cd..9eea3a98879 100644
--- a/security/audit-packages/Makefile
+++ b/security/audit-packages/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.77 2007/08/05 21:03:16 adrianp Exp $
+# $NetBSD: Makefile,v 1.78 2008/01/02 09:00:34 adrianp Exp $
DISTNAME= audit-packages-1.46
CATEGORIES= security pkgtools
@@ -34,6 +34,15 @@ MESSAGE_SRC= ${PKGDIR}/MESSAGE.DragonFly
MESSAGE_SRC= ${PKGDIR}/MESSAGE
.endif
+# If you're running NetBSD it's possible that you may already have
+# audit-packages installed as a part of the base OS.
+#
+.if ${OPSYS} == "NetBSD"
+. if exists(/usr/sbin/audit-packages)
+PKG_FAIL_REASON+= "audit-packages is already installed on this system"
+. endif
+.endif
+
CONF_FILES= ${PREFIX}/share/examples/audit-packages/audit-packages.conf \
${PKG_SYSCONFDIR}/audit-packages.conf