summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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