From f1462904ad5732df7769b417e2f0bca58e29591a Mon Sep 17 00:00:00 2001 From: adrianp Date: Wed, 2 Jan 2008 09:00:34 +0000 Subject: Look out for the case where audit-packages is already installed with the base OS on NetBSD. --- security/audit-packages/Makefile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'security/audit-packages') 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 -- cgit v1.2.3