diff options
author | asami <asami@FreeBSD.org> | 1995-06-25 06:30:51 +0000 |
---|---|---|
committer | asami <asami@FreeBSD.org> | 1995-06-25 06:30:51 +0000 |
commit | 29c1c020ed1b770d241e07193a4e55aa32fda1de (patch) | |
tree | 6b480a9660452038a1cf8ec656fa77205b4600df /Mk | |
parent | 9d2c1d3e3b9ea8ddf73140d9eba11ac097d1da25 (diff) | |
download | FreeBSD-ports-29c1c020ed1b770d241e07193a4e55aa32fda1de.zip FreeBSD-ports-29c1c020ed1b770d241e07193a4e55aa32fda1de.tar.gz |
Add new option NO_MTREE. If set, bsd.port.mk won't run mtree to
set permissions and ownerships of PREFIX (usually /usr/local). This
is the default if USE_IMAKE or USE_X11 is set.
This should be useful for machines like thud, where we want to keep
the /usr/local subtree writable to a group ("ports" in our case). Anybody
who installs stuff in /usr/local should have this set in the environment.
Note this won't affect anything the pkg_* suite does.
Diffstat (limited to 'Mk')
-rw-r--r-- | Mk/bsd.port.mk | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk index 76f2561..d75bc11 100644 --- a/Mk/bsd.port.mk +++ b/Mk/bsd.port.mk @@ -3,7 +3,7 @@ # bsd.port.mk - 940820 Jordan K. Hubbard. # This file is in the public domain. # -# $Id: bsd.port.mk,v 1.165 1995/06/06 10:56:34 asami Exp $ +# $Id: bsd.port.mk,v 1.166 1995/06/24 10:27:23 asami Exp $ # # Please view me with 4 column tabs! @@ -74,6 +74,9 @@ # PKG_DBDIR - Where package installation is recorded (default: /var/db/pkg) # FORCE_PKG_REGISTER - If set, it will overwrite any existing package # registration information in ${PKG_DBDIR}/${PKGNAME}. +# NO_MTREE - If set, will not invoke mtree from bsd.port.mk from +# the "install" target. This is the default if +# USE_IMAKE or USE_X11 is set. # # NO_EXTRACT - Use a dummy (do-nothing) extract target. # NO_CONFIGURE - Use a dummy (do-nothing) configure target. @@ -251,6 +254,9 @@ MTREE_LOCAL= /etc/mtree/BSD.local.dist .endif MTREE_CMD?= mtree MTREE_ARGS?= -U -f ${MTREE_LOCAL} -d -e -p +.if defined(USE_X11) || defined(USE_IMAKE) || !defined(MTREE_LOCAL) +NO_MTREE= yes +.endif # The user can override the NO_PACKAGE by specifying this from # the make command line @@ -768,7 +774,7 @@ install: build ${INSTALL_COOKIE} ${INSTALL_COOKIE}: @${ECHO_MSG} "===> Installing for ${PKGNAME}" -.if !defined(USE_X11) && !defined(USE_IMAKE) && defined(MTREE_LOCAL) +.if !defined(NO_MTREE) @${MTREE_CMD} ${MTREE_ARGS} ${PREFIX}/; .endif .if target(pre-install) |