diff options
author | hubertf <hubertf@pkgsrc.org> | 2000-08-31 14:29:00 +0000 |
---|---|---|
committer | hubertf <hubertf@pkgsrc.org> | 2000-08-31 14:29:00 +0000 |
commit | a86c9d32deacb6b1dcf2c646dfbbb217eb04a611 (patch) | |
tree | 0ea8e803d64fbbea90e6378c59a6abf185ca9b0e /mk | |
parent | dabe94f5731c1d785916f2e9b8ef02af9a44aa16 (diff) | |
download | pkgsrc-a86c9d32deacb6b1dcf2c646dfbbb217eb04a611.tar.gz |
Make sure PKG_DBDIR is set for each call to pkg_info etc. by setting
PKG_INFO etc. properly. Make sure the PKGTOOLS_VERSION does not get
confused.
Code from Al 'trapped behind a firewall' Crooks <agc@netbsd.org>.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/bsd.pkg.mk | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index 7ca8f50ef77..b05d7898df9 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.558 2000/08/31 04:29:53 hubertf Exp $ +# $NetBSD: bsd.pkg.mk,v 1.559 2000/08/31 14:29:00 hubertf Exp $ # # This file is in the public domain. # @@ -627,25 +627,17 @@ TRUE?= true # Shell builtin TYPE?= type # Shell builtin .endif # !SunOS -.if (defined(DESTDIR) && defined(PKGTOOLS_VERSION)) PKG_ADD?= PKG_DBDIR=${PKG_DBDIR} ${PKG_TOOLS_BIN}/pkg_add PKG_ADMIN?= PKG_DBDIR=${PKG_DBDIR} ${PKG_TOOLS_BIN}/pkg_admin PKG_CREATE?= PKG_DBDIR=${PKG_DBDIR} ${PKG_TOOLS_BIN}/pkg_create PKG_DELETE?= PKG_DBDIR=${PKG_DBDIR} ${PKG_TOOLS_BIN}/pkg_delete PKG_INFO?= PKG_DBDIR=${PKG_DBDIR} ${PKG_TOOLS_BIN}/pkg_info -.else -PKG_ADD?= ${PKG_TOOLS_BIN}/pkg_add -PKG_ADMIN?= ${PKG_TOOLS_BIN}/pkg_admin -PKG_CREATE?= ${PKG_TOOLS_BIN}/pkg_create -PKG_DELETE?= ${PKG_TOOLS_BIN}/pkg_delete -PKG_INFO?= ${PKG_TOOLS_BIN}/pkg_info -.endif .if !defined(PKGTOOLS_VERSION) .if !exists(${IDENT}) PKGTOOLS_VERSION=${PKGTOOLS_REQD} .else -PKGTOOLS_VERSION!=${IDENT} ${PKG_CREATE} ${PKG_DELETE} ${PKG_INFO} ${PKG_ADD} | ${AWK} 'BEGIN {n = 0;}; $$1 ~ /\$$NetBSD/ && $$2 !~ /^crt0/ {gsub("/", "", $$4); if ($$4 > n) {n = $$4;}}; END {print n;}' +PKGTOOLS_VERSION!=${IDENT} ${PKG_TOOLS_BIN}/pkg_add ${PKG_TOOLS_BIN}/pkg_admin ${PKG_TOOLS_BIN}/pkg_create ${PKG_TOOLS_BIN}/pkg_delete ${PKG_TOOLS_BIN}/pkg_info | ${AWK} 'BEGIN {n = 0;}; $$1 ~ /\$$NetBSD/ && $$2 !~ /^crt0/ {gsub("/", "", $$4); if ($$4 > n) {n = $$4;}}; END {print n;}' .endif .endif MAKEFLAGS+= PKGTOOLS_VERSION="${PKGTOOLS_VERSION}" |