Add -DWITH_INSTALL_AS_USER to the source build (naming matches the
same functionality of The Ports Collection). This sets BINOWN, BINGRP, etc... to match current user. This this allows 'install', as used in 'make install', to succeed (assuming user has write permissions). Submitted by: Simon J Gerraty <sjg@juniper.net> Discussed on: freebsd-arch
This commit is contained in:
parent
f6d1a69477
commit
bd43c5e6d6
@ -427,6 +427,7 @@ __DEFAULT_NO_OPTIONS = \
|
||||
HESIOD \
|
||||
ICONV \
|
||||
IDEA \
|
||||
INSTALL_AS_USER \
|
||||
LIBCPLUSPLUS \
|
||||
NAND \
|
||||
OFED \
|
||||
@ -645,6 +646,17 @@ CTFCONVERT_CMD=
|
||||
CTFCONVERT_CMD= @:
|
||||
.endif
|
||||
|
||||
.if ${MK_INSTALL_AS_USER} != "no"
|
||||
_uid!= id -un
|
||||
.if ${_uid} != 0
|
||||
_gid!= id -gn
|
||||
.for x in BIN CONF DOC INFO KMOD LIB MAN NLS SHARE
|
||||
$xOWN= ${_uid}
|
||||
$xGRP= ${_gid}
|
||||
.endfor
|
||||
.endif
|
||||
.endif
|
||||
|
||||
.endif # !_WITHOUT_SRCCONF
|
||||
|
||||
.endif # !target(__<bsd.own.mk>__)
|
||||
|
Loading…
Reference in New Issue
Block a user