diff options
author | adrianp <adrianp@pkgsrc.org> | 2008-01-02 09:00:34 +0000 |
---|---|---|
committer | adrianp <adrianp@pkgsrc.org> | 2008-01-02 09:00:34 +0000 |
commit | f1462904ad5732df7769b417e2f0bca58e29591a (patch) | |
tree | 66c65ee463e3932a0d98bdafd257c386912232e5 /security/audit-packages | |
parent | 4968d8f66b17f90112356756930351137f7d7db6 (diff) | |
download | pkgsrc-f1462904ad5732df7769b417e2f0bca58e29591a.tar.gz |
Look out for the case where audit-packages is already installed with the
base OS on NetBSD.
Diffstat (limited to 'security/audit-packages')
-rw-r--r-- | security/audit-packages/Makefile | 11 |
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 |