summaryrefslogtreecommitdiff
path: root/mk/bsd.pkg.install.mk
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2005-01-28 18:32:40 +0000
committerjlam <jlam@pkgsrc.org>2005-01-28 18:32:40 +0000
commit8f3180c9141db027d6f29219afdabffe2dc14ddb (patch)
tree2d98177017e014535aa9c16635e2f2fb4e7ed27d /mk/bsd.pkg.install.mk
parent39695d15ef6b8cb551b246c550118135c3d1caa5 (diff)
downloadpkgsrc-8f3180c9141db027d6f29219afdabffe2dc14ddb.tar.gz
Move the default directory for the reference counts database outside
of ${PKG_DBDIR} to avoid problems with the package tools thinking that it is a bad package. The default directory is ${PKG_DBDIR} with ".refcount" appended to the name. This may be set explicitly through PKG_REFCOUNT_DBDIR in /etc/mk.conf (bootstrap users may want to do this, although the default value should do the right thing).
Diffstat (limited to 'mk/bsd.pkg.install.mk')
-rw-r--r--mk/bsd.pkg.install.mk9
1 files changed, 5 insertions, 4 deletions
diff --git a/mk/bsd.pkg.install.mk b/mk/bsd.pkg.install.mk
index 064e4888c2d..0016a94b270 100644
--- a/mk/bsd.pkg.install.mk
+++ b/mk/bsd.pkg.install.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.install.mk,v 1.76 2005/01/28 08:17:53 jlam Exp $
+# $NetBSD: bsd.pkg.install.mk,v 1.77 2005/01/28 18:32:40 jlam Exp $
#
# This Makefile fragment is included by bsd.pkg.mk to use the common
# INSTALL/DEINSTALL scripts. To use this Makefile fragment, simply:
@@ -80,10 +80,11 @@ FILES_SUBST+= PKG_INSTALLATION_TYPE=${PKG_INSTALLATION_TYPE}
# Database directory for reference-counted package objects. Subdirectories
# represent different classes of package objects, e.g. dirs, users,
-# group, etc.
+# group, etc. The default value is ${PKG_DBDIR} with ".refcount"
+# appended to the name.
#
-_PKG_REFCOUNT_DBDIR= ${PKG_DBDIR}/.refcount
-FILES_SUBST+= PKG_REFCOUNT_DBDIR=${_PKG_REFCOUNT_DBDIR:Q}
+PKG_REFCOUNT_DBDIR?= ${PKG_DBDIR}.refcount
+FILES_SUBST+= PKG_REFCOUNT_DBDIR=${PKG_REFCOUNT_DBDIR:Q}
# PKG_USERS represents the users to create for the package. It is a
# space-separated list of elements of the form