summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoradrianp <adrianp>2008-01-02 09:00:34 +0000
committeradrianp <adrianp>2008-01-02 09:00:34 +0000
commit44b105750dd907ec47678235aa7af896e86b60d8 (patch)
tree66c65ee463e3932a0d98bdafd257c386912232e5
parent8acfb6377db4b2a919331d394fe6c3d9ef98e5b2 (diff)
downloadpkgsrc-44b105750dd907ec47678235aa7af896e86b60d8.tar.gz
Look out for the case where audit-packages is already installed with the
base OS on NetBSD.
-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