diff options
author | hubertf <hubertf> | 2000-08-31 14:29:00 +0000 |
---|---|---|
committer | hubertf <hubertf> | 2000-08-31 14:29:00 +0000 |
commit | 8c86f3284d26954308f8cb167f7ccf8431c66a9f (patch) | |
tree | 0ea8e803d64fbbea90e6378c59a6abf185ca9b0e /mk | |
parent | 9cb6ada6decef97080778d80c4a8384a05c456d5 (diff) | |
download | pkgsrc-8c86f3284d26954308f8cb167f7ccf8431c66a9f.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}" |