diff options
author | jlam <jlam@pkgsrc.org> | 2005-02-05 01:17:59 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2005-02-05 01:17:59 +0000 |
commit | bc09940fae355a78a302d1e708be6471fa3abbf6 (patch) | |
tree | f2cbf811f388ecd7087167b86d1525faac8469a5 /mk | |
parent | 7a3cf5b6b288c62a5300a3e9295138ffc4a9aa61 (diff) | |
download | pkgsrc-bc09940fae355a78a302d1e708be6471fa3abbf6.tar.gz |
Set PKG_REFCOUNT_DBDIR in the environment for the +INSTALL script, just
like pkg_add(1) does in pkg_install-20050204.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/bsd.pkg.install.mk | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mk/bsd.pkg.install.mk b/mk/bsd.pkg.install.mk index 0531e087068..1c774b7bced 100644 --- a/mk/bsd.pkg.install.mk +++ b/mk/bsd.pkg.install.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.install.mk,v 1.80 2005/02/03 23:29:08 jlam Exp $ +# $NetBSD: bsd.pkg.install.mk,v 1.81 2005/02/05 01:17:59 jlam Exp $ # # This Makefile fragment is included by bsd.pkg.mk to use the common # INSTALL/DEINSTALL scripts. To use this Makefile fragment, simply: @@ -477,8 +477,11 @@ FILES_SUBST+= XARGS=${XARGS:Q} FILES_SUBST_SED= ${FILES_SUBST:S/=/@!/:S/$/!g/:S/^/ -e s!@/} +PKG_REFCOUNT_DBDIR?= ${PKG_DBDIR}.refcount + INSTALL_SCRIPTS_ENV= PKG_PREFIX=${PREFIX} INSTALL_SCRIPTS_ENV+= PKG_METADATA_DIR=${_PKG_DBDIR}/${PKGNAME} +INSTALL_SCRIPTS_ENV+= PKG_REFCOUNT_DBDIR=${PKG_REFCOUNT_DBDIR} .PHONY: pre-install-script post-install-script |