summaryrefslogtreecommitdiff
path: root/mk/install
diff options
context:
space:
mode:
authorjoerg <joerg>2007-04-19 16:52:03 +0000
committerjoerg <joerg>2007-04-19 16:52:03 +0000
commit82b3fd4717417c5fc92609df34cc279f2a5320aa (patch)
tree522a1399477a7fbf0f417902a2910554a34c5a67 /mk/install
parent467dbdd292b2b86c30bbf1e347a71a95c9c57355 (diff)
downloadpkgsrc-82b3fd4717417c5fc92609df34cc279f2a5320aa.tar.gz
Drop NO_MTREE by making it the default. Introduce USE_MTREE to get the
old behaviour back. Discussed on tech-pkg@.
Diffstat (limited to 'mk/install')
-rw-r--r--mk/install/bsd.install-vars.mk32
-rw-r--r--mk/install/install.mk4
2 files changed, 5 insertions, 31 deletions
diff --git a/mk/install/bsd.install-vars.mk b/mk/install/bsd.install-vars.mk
index 332933ece6a..aee1c14c130 100644
--- a/mk/install/bsd.install-vars.mk
+++ b/mk/install/bsd.install-vars.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.install-vars.mk,v 1.5 2006/12/15 20:54:47 joerg Exp $
+# $NetBSD: bsd.install-vars.mk,v 1.6 2007/04/19 16:52:03 joerg Exp $
#
# This Makefile fragment is included separately by bsd.pkg.mk and
# defines some variables which must be defined earlier than where
@@ -12,36 +12,10 @@
# the "real" installation should start.
#
-# If a package sets PKG_DESTDIR_SUPPORT to a non-empty value,
-# it is supposed to deal with missing directories already.
-#
-.if !empty(PKG_DESTDIR_SUPPORT)
-NO_MTREE= yes
-.endif
-
-# If a package sets INSTALLATION_DIRS, then it's known to pre-create
-# all of the directories that it needs at install-time, so we don't need
-# mtree to do it for us.
-#
-.if defined(INSTALLATION_DIRS) && !empty(INSTALLATION_DIRS)
-NO_MTREE= yes
-.endif
-
-INSTALLATION_DIRS_FROM_PLIST?= no
-.if !empty(INSTALLATION_DIRS_FROM_PLIST:M[Yy][Ee][Ss])
-NO_MTREE= yes
+.if defined(USE_MTREE)
+USE_TOOLS+= mtree:bootstrap
.endif
-#
-# Certain classes of packages never need to run mtree during installation
-# because they manage the creation of their own directories.
-#
-.if (${PKG_INSTALLATION_TYPE} == "pkgviews") && defined(CROSSBASE)
-NO_MTREE= yes
-.endif
-
-USE_TOOLS+= ${NO_MTREE:D:Umtree\:bootstrap}
-
# If MANZ is defined, then we want the final man pages to be compressed.
# If MANZ is not defined, then we want the final man pages to be
# uncompressed.
diff --git a/mk/install/install.mk b/mk/install/install.mk
index c172207a6ee..14fa3ead6b7 100644
--- a/mk/install/install.mk
+++ b/mk/install/install.mk
@@ -1,4 +1,4 @@
-# $NetBSD: install.mk,v 1.40 2007/03/09 03:28:58 rillig Exp $
+# $NetBSD: install.mk,v 1.41 2007/04/19 16:52:03 joerg Exp $
#
# This file provides the code for the "install" phase.
#
@@ -228,7 +228,7 @@ _INSTALL_ONE_DIR_CMD= { \
.PHONY: install-makedirs
install-makedirs:
${RUN} ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}
-.if !defined(NO_MTREE)
+.if defined(USE_MTREE)
${RUN} [ ! -f ${_MTREE_FILE} ] || \
${MTREE} ${_MTREE_ARGS} ${DESTDIR}${PREFIX}/
.endif