summaryrefslogtreecommitdiff
path: root/mk/flavor
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2006-10-06 14:51:36 +0000
committerjoerg <joerg@pkgsrc.org>2006-10-06 14:51:36 +0000
commit1a3ea34a13e5b6896544f34d3e550540f5936363 (patch)
treeb9e92b0fe1a9e97f11645f03e4927a160d137d2b /mk/flavor
parent5e7860979693250028b40d1e3ec3e4aa5e6f85dc (diff)
downloadpkgsrc-1a3ea34a13e5b6896544f34d3e550540f5936363.tar.gz
Remove references to DESTDIR. LOCALBASE should not be altered that way,
since it is user settable and most of the time set by the user. X11BASE follows the same reasons. For staged installations, we don't want to register the package directly, so there's no need to prefix PKG_DBDIR either.
Diffstat (limited to 'mk/flavor')
-rw-r--r--mk/flavor/pkg/flavor-vars.mk4
-rw-r--r--mk/flavor/pkg/package.mk4
2 files changed, 4 insertions, 4 deletions
diff --git a/mk/flavor/pkg/flavor-vars.mk b/mk/flavor/pkg/flavor-vars.mk
index 95e2a22e405..b351282b82e 100644
--- a/mk/flavor/pkg/flavor-vars.mk
+++ b/mk/flavor/pkg/flavor-vars.mk
@@ -1,4 +1,4 @@
-# $NetBSD: flavor-vars.mk,v 1.1 2006/06/03 23:11:42 jlam Exp $
+# $NetBSD: flavor-vars.mk,v 1.2 2006/10/06 14:51:36 joerg Exp $
#
# This Makefile fragment is included indirectly by bsd.prefs.mk and
# defines some variables which must be defined earlier than where
@@ -16,7 +16,7 @@ USE_TOOLS+= date
.endif
# This is the package database directory for the default view.
-PKG_DBDIR?= ${DESTDIR}/var/db/pkg
+PKG_DBDIR?= /var/db/pkg
# _PKG_DBDIR is the actual packages database directory where we register
# packages.
diff --git a/mk/flavor/pkg/package.mk b/mk/flavor/pkg/package.mk
index 47bbdb2173d..303fdb75cd0 100644
--- a/mk/flavor/pkg/package.mk
+++ b/mk/flavor/pkg/package.mk
@@ -1,4 +1,4 @@
-# $NetBSD: package.mk,v 1.2 2006/06/05 22:49:44 jlam Exp $
+# $NetBSD: package.mk,v 1.3 2006/10/06 14:51:36 joerg Exp $
PKG_SUFX?= .tgz
PKGFILE?= ${PKGREPOSITORY}/${PKGNAME}${PKG_SUFX}
@@ -29,7 +29,7 @@ package-check-installed:
package-create: package-remove ${PKGFILE} package-links
_PKG_ARGS_PACKAGE+= ${_PKG_CREATE_ARGS}
-_PKG_ARGS_PACKAGE+= -p ${PREFIX:S/^${DESTDIR}//}
+_PKG_ARGS_PACKAGE+= -p ${PREFIX}
_PKG_ARGS_PACKAGE+= -L ${PREFIX} # @src ...
.if ${PKG_INSTALLATION_TYPE} == "pkgviews"
_PKG_ARGS_PACKAGE+= -E