diff options
author | rillig <rillig> | 2006-11-04 07:42:51 +0000 |
---|---|---|
committer | rillig <rillig> | 2006-11-04 07:42:51 +0000 |
commit | 8c104cd22a7e7aa2e8d529f929ce208c89725252 (patch) | |
tree | 505e64ab3d291ebaab20bc76b03c0c32378b99e1 /mk/install/bsd.install-vars.mk | |
parent | fe4c73d78a105d30a49665827464aa15f9a5da56 (diff) | |
download | pkgsrc-8c104cd22a7e7aa2e8d529f929ce208c89725252.tar.gz |
When a package sets INSTALLATION_DIRS_FROM_PLIST to "yes", it does not
need to specify INSTALLATION_DIRS itself. Instead, the list is generated
from the static PLIST files. Like for INSTALLATION_DIRS, mtree is
disabled when this variable is set.
Diffstat (limited to 'mk/install/bsd.install-vars.mk')
-rw-r--r-- | mk/install/bsd.install-vars.mk | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/mk/install/bsd.install-vars.mk b/mk/install/bsd.install-vars.mk index e95c317775d..9131382ec78 100644 --- a/mk/install/bsd.install-vars.mk +++ b/mk/install/bsd.install-vars.mk @@ -1,9 +1,16 @@ -# $NetBSD: bsd.install-vars.mk,v 1.3 2006/07/13 14:02:34 jlam Exp $ +# $NetBSD: bsd.install-vars.mk,v 1.4 2006/11/04 07:42:51 rillig Exp $ # # This Makefile fragment is included separately by bsd.pkg.mk and # defines some variables which must be defined earlier than where # bsd.install.mk is included. # +# Package-settable variables: +# +# INSTALLATION_DIRS_FROM_PLIST +# If set to "yes", the static PLIST files of the package will +# be used to determine which directories need to be created before +# the "real" installation should start. +# # 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 @@ -12,6 +19,12 @@ .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 +.endif + # # Certain classes of packages never need to run mtree during installation # because they manage the creation of their own directories. |