diff options
Diffstat (limited to 'mk')
-rw-r--r-- | mk/flavor/pkg/install.mk | 5 | ||||
-rw-r--r-- | mk/flavor/pkg/metadata.mk | 4 | ||||
-rw-r--r-- | mk/pkginstall/bsd.pkginstall.mk | 4 |
3 files changed, 7 insertions, 6 deletions
diff --git a/mk/flavor/pkg/install.mk b/mk/flavor/pkg/install.mk index 6ecad232097..0a90bb034bc 100644 --- a/mk/flavor/pkg/install.mk +++ b/mk/flavor/pkg/install.mk @@ -1,4 +1,4 @@ -# $NetBSD: install.mk,v 1.2 2006/06/05 22:49:44 jlam Exp $ +# $NetBSD: install.mk,v 1.3 2006/06/06 19:49:52 jlam Exp $ ###################################################################### ### install-check-conflicts (PRIVATE, pkgsrc/mk/install/install.mk) @@ -67,7 +67,8 @@ _REGISTER_DEPENDENCIES= \ register-pkg: generate-metadata ${_DEPENDS_COOKIE} @${PHASE_MSG} "Registering installation for ${PKGNAME}" ${_PKG_SILENT}${_PKG_DEBUG}${RM} -fr ${_PKG_DBDIR}/${PKGNAME} - ${_PKG_SILENT}${_PKG_DEBUG}${CP} -R ${PKG_DB_TMPDIR} ${_PKG_DBDIR} + ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${_PKG_DBDIR}/${PKGNAME} + ${_PKG_SILENT}${_PKG_DEBUG}${CP} ${PKG_DB_TMPDIR}/* ${_PKG_DBDIR}/${PKGNAME} ${_PKG_SILENT}${_PKG_DEBUG}${PKG_ADMIN} add ${PKGNAME} ${_PKG_SILENT}${_PKG_DEBUG} \ case ${_AUTOMATIC:Q}"" in \ diff --git a/mk/flavor/pkg/metadata.mk b/mk/flavor/pkg/metadata.mk index 4ac6575a179..3a65c90408f 100644 --- a/mk/flavor/pkg/metadata.mk +++ b/mk/flavor/pkg/metadata.mk @@ -1,4 +1,4 @@ -# $NetBSD: metadata.mk,v 1.2 2006/06/05 22:49:44 jlam Exp $ +# $NetBSD: metadata.mk,v 1.3 2006/06/06 19:49:52 jlam Exp $ ###################################################################### ### The targets below are all PRIVATE. @@ -9,7 +9,7 @@ ### Temporary package meta-data directory. The contents of this directory ### are copied directly into the real package meta-data directory. ### -PKG_DB_TMPDIR= ${WRKDIR}/.pkgdb/${PKGNAME} +PKG_DB_TMPDIR= ${WRKDIR}/.pkgdb unprivileged-install-hook: ${PKG_DB_TMPDIR} ${PKG_DB_TMPDIR}: diff --git a/mk/pkginstall/bsd.pkginstall.mk b/mk/pkginstall/bsd.pkginstall.mk index 6b8e1256f8e..b2c48836178 100644 --- a/mk/pkginstall/bsd.pkginstall.mk +++ b/mk/pkginstall/bsd.pkginstall.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkginstall.mk,v 1.5 2006/06/05 22:49:44 jlam Exp $ +# $NetBSD: bsd.pkginstall.mk,v 1.6 2006/06/06 19:49:52 jlam Exp $ # # This Makefile fragment is included by bsd.pkg.mk and implements the # common INSTALL/DEINSTALL scripts framework. To use the pkginstall @@ -30,7 +30,7 @@ _PKGINSTALL_DIR= ${WRKDIR}/.pkginstall # XXX This should not be duplicated from the install module, but we # XXX need this until pkginstall is refactored. # XXX -PKG_DB_TMPDIR?= ${WRKDIR}/.pkgdb/${PKGNAME} +PKG_DB_TMPDIR?= ${WRKDIR}/.pkgdb # These are the template scripts for the INSTALL/DEINSTALL scripts. # Packages may do additional work in the INSTALL/DEINSTALL scripts by |