pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/flavor/pkg Simplify logic as audit-packages and dow...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/24bd3075d0a2
branches:  trunk
changeset: 540742:24bd3075d0a2
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Mon Apr 07 13:18:25 2008 +0000

description:
Simplify logic as audit-packages and download-vulnerabilities always
comes from pkg_install now.

diffstat:

 mk/flavor/pkg/flavor-vars.mk |  21 +--------------------
 1 files changed, 1 insertions(+), 20 deletions(-)

diffs (37 lines):

diff -r 995a54c918fe -r 24bd3075d0a2 mk/flavor/pkg/flavor-vars.mk
--- a/mk/flavor/pkg/flavor-vars.mk      Mon Apr 07 13:16:26 2008 +0000
+++ b/mk/flavor/pkg/flavor-vars.mk      Mon Apr 07 13:18:25 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: flavor-vars.mk,v 1.8 2008/04/03 14:07:51 joerg Exp $
+# $NetBSD: flavor-vars.mk,v 1.9 2008/04/07 13:18:25 joerg Exp $
 #
 # This Makefile fragment is included indirectly by bsd.prefs.mk and
 # defines some variables which must be defined earlier than where
@@ -49,27 +49,8 @@
 _PKG_INSTALL_DEPENDS=  yes
 .endif
 
-# audit-packages logic for its location depends on a variety of factors
-# including OS, pkg_install version and NetBSD version.  The following
-# should pick the correct version to run.
-#
-.if defined(OPSYS) && ${OPSYS} != "NetBSD"
 AUDIT_PACKAGES?=       ${PKG_TOOLS_BIN}/audit-packages
 DOWNLOAD_VULN_LIST?=   ${PKG_TOOLS_BIN}/download-vulnerability-list
-.else
-.      if exists(${LOCALBASE}/sbin/audit-packages)
-AUDIT_PACKAGES?=       ${LOCALBASE}/sbin/audit-packages
-DOWNLOAD_VULN_LIST?=   ${LOCALBASE}/sbin/download-vulnerability-list
-.      else
-.              if exists(/usr/sbin/audit-packages)
-AUDIT_PACKAGES?=       /usr/sbin/audit-packages
-DOWNLOAD_VULN_LIST?=   /usr/sbin/download-vulnerability-list
-.              else
-AUDIT_PACKAGES?=       audit-packages
-DOWNLOAD_VULN_LIST?=   download-vulnerability-list
-.              endif
-.      endif
-.endif
 
 # The binary pkg_install tools all need to consistently to refer to the
 # correct package database directory.



Home | Main Index | Thread Index | Old Index