diff options
author | joerg <joerg@pkgsrc.org> | 2010-02-19 14:27:36 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2010-02-19 14:27:36 +0000 |
commit | 46983d634b051e968efbbbaa9bae9d120ca840c1 (patch) | |
tree | 05bdaf2db6aa82720028d420969a972a6f66c4c5 /mk | |
parent | c87376d905f6b54b495032ab59347392d6c7ffd2 (diff) | |
download | pkgsrc-46983d634b051e968efbbbaa9bae9d120ca840c1.tar.gz |
Garbage collect support for old pkg_install versions.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/bsd.pkg.update.mk | 15 | ||||
-rw-r--r-- | mk/flavor/pkg/flavor-vars.mk | 12 |
2 files changed, 2 insertions, 25 deletions
diff --git a/mk/bsd.pkg.update.mk b/mk/bsd.pkg.update.mk index c9f3e7bbd60..2b7df9091f4 100644 --- a/mk/bsd.pkg.update.mk +++ b/mk/bsd.pkg.update.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.update.mk,v 1.18 2009/05/16 01:27:30 joerg Exp $ +# $NetBSD: bsd.pkg.update.mk,v 1.19 2010/02/19 14:27:36 joerg Exp $ # # This Makefile fragment is included by bsd.pkg.mk and contains the targets # and variables for "make update". @@ -127,22 +127,9 @@ ${_DDIR}: ${_DLIST} ${RUN} pkgs=`${CAT} ${_DLIST}`; \ if [ "$$pkgs" ]; then ${PKG_INFO} -Q PKGPATH $$pkgs; fi > ${_DDIR} -.if ${PKGTOOLS_VERSION} >= 20090302 ${_DLIST}: ${WRKDIR} if ${PKG_INFO} -qe "${PKGWILDCARD}"; then \ ${PKG_INFO} -qr "${PKGWILDCARD}" > ${_DLIST}; \ else \ ${TOUCH} ${_DLIST}; \ fi -.elif ${PKGTOOLS_VERSION} >= 20090225 -${_DLIST}: ${WRKDIR} - ${RUN}echo "Please update to pkg_install-20090302 or later" 2>&1 - ${RUN}exit 1 -.else -${_DLIST}: ${WRKDIR} - ${RUN} \ - ${PKG_DELETE} -n "${PKGWILDCARD}" 2>&1 \ - | ${GREP} '^ ' \ - | ${AWK} '{ l[NR]=$$0 } END { for (i=NR;i>0;--i) print l[i] }' \ - > ${_DLIST} -.endif diff --git a/mk/flavor/pkg/flavor-vars.mk b/mk/flavor/pkg/flavor-vars.mk index 67b66819fc7..63b58e34be8 100644 --- a/mk/flavor/pkg/flavor-vars.mk +++ b/mk/flavor/pkg/flavor-vars.mk @@ -1,4 +1,4 @@ -# $NetBSD: flavor-vars.mk,v 1.14 2010/01/30 20:13:19 joerg Exp $ +# $NetBSD: flavor-vars.mk,v 1.15 2010/02/19 14:27:36 joerg Exp $ # # This Makefile fragment is included indirectly by bsd.prefs.mk and # defines some variables which must be defined earlier than where @@ -53,22 +53,12 @@ BOOTSTRAP_DEPENDS+= pkg_install>=${PKGTOOLS_REQD}:../../pkgtools/pkg_install _PKG_INSTALL_DEPENDS= yes .endif -.if ${PKGTOOLS_VERSION} >= 20090201 AUDIT_PACKAGES?= ${PKG_ADMIN} _AUDIT_PACKAGES_CMD?= audit-pkg _EXTRACT_PKGVULNDIR= ${PKG_ADMIN} config-var PKGVULNDIR DOWNLOAD_VULN_LIST?= ${PKG_ADMIN} fetch-pkg-vulnerabilities _AUDIT_CONFIG_FILE= pkg_install.conf _AUDIT_CONFIG_OPTION= IGNORE_URL -.else -AUDIT_PACKAGES?= ${PKG_TOOLS_BIN}/audit-packages -_AUDIT_PACKAGES_CMD?= -n -_EXTRACT_PKGVULNDIR= ${AUDIT_PACKAGES} ${AUDIT_PACKAGES_FLAGS} -Q PKGVULNDIR -DOWNLOAD_VULN_LIST?= ${PKG_TOOLS_BIN}/download-vulnerability-list -_AUDIT_CONFIG_FILE= audit-packages.conf -_AUDIT_CONFIG_OPTION= IGNORE_URLS -.endif - # The binary pkg_install tools all need to consistently to refer to the # correct package database directory. |