pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/security/audit-packages Look out for the case where au...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/269bc19b4436
branches:  trunk
changeset: 537022:269bc19b4436
user:      adrianp <adrianp%pkgsrc.org@localhost>
date:      Wed Jan 02 09:00:34 2008 +0000

description:
Look out for the case where audit-packages is already installed with the
base OS on NetBSD.

diffstat:

 security/audit-packages/Makefile |  11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diffs (25 lines):

diff -r 4e9261dc507f -r 269bc19b4436 security/audit-packages/Makefile
--- a/security/audit-packages/Makefile  Tue Jan 01 22:15:14 2008 +0000
+++ b/security/audit-packages/Makefile  Wed Jan 02 09:00:34 2008 +0000
@@ -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
 .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
 



Home | Main Index | Thread Index | Old Index