diff options
author | hubertf <hubertf> | 2001-02-25 03:42:16 +0000 |
---|---|---|
committer | hubertf <hubertf> | 2001-02-25 03:42:16 +0000 |
commit | a0e1b5390dbcf8c448cd2ce2bff91b542a46a4ef (patch) | |
tree | b44e26c1aac1574651f7104eafafa038d82193b0 | |
parent | 179b0cde7d5c600d2a3e530801b3d2c7f323c2ce (diff) | |
download | pkgsrc-a0e1b5390dbcf8c448cd2ce2bff91b542a46a4ef.tar.gz |
Allow overriding PKG_DBDIR in /etc/mk.conf
-rw-r--r-- | pkgtools/pkg_install/Makefile | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/pkgtools/pkg_install/Makefile b/pkgtools/pkg_install/Makefile index 04ca0eea6d5..1b870fdfed5 100644 --- a/pkgtools/pkg_install/Makefile +++ b/pkgtools/pkg_install/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.37 2001/02/21 13:31:47 hubertf Exp $ +# $NetBSD: Makefile,v 1.38 2001/02/25 03:42:16 hubertf Exp $ # Note to package maintainers: # To update the distfile of this pkg, cd to /usr/src/usr.sbin, @@ -28,13 +28,14 @@ MANCOMPRESSED_IF_MANZ= yes .include "../../mk/bsd.prefs.mk" LOCALBASE= /usr +PKG_DBDIR?= /var/db/pkg post-install: - if [ ! -f $${PKG_DBDIR:-/var/db/pkg}/pkgdb.byfile.db ]; then \ - if [ ! -d $${PKG_DBDIR:-/var/db/pkg} ]; then \ - ${MKDIR} $${PKG_DBDIR:-/var/db/pkg}; \ + if [ ! -f ${PKG_DBDIR}/pkgdb.byfile.db ]; then \ + if [ ! -d ${PKG_DBDIR} ]; then \ + ${INSTALL_DATA_DIR} ${PKG_DBDIR}; \ fi; \ - pkg_admin rebuild ; \ + ${PKG_ADMIN} rebuild ; \ fi .include "../../mk/bsd.pkg.mk" |