mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
Stop looking up the same id(1) results in sub-makes.
Sponsored by: EMC / Isilon Storage Division
This commit is contained in:
parent
5a0d38b3aa
commit
cf10dd450d
1 changed files with 12 additions and 1 deletions
|
|
@ -133,12 +133,23 @@ CTFCONVERT_CMD= @:
|
|||
.endif
|
||||
|
||||
.if ${MK_INSTALL_AS_USER} != "no"
|
||||
.if !defined(_uid)
|
||||
_uid!= id -u
|
||||
.export _uid
|
||||
.endif
|
||||
.if ${_uid} != 0
|
||||
.if !defined(USER)
|
||||
USER!= id -un
|
||||
# Avoid exporting USER
|
||||
.if !defined(_USER)
|
||||
_USER!= id -un
|
||||
.export _USER
|
||||
.endif
|
||||
USER= ${_USER}
|
||||
.endif
|
||||
.if !defined(_gid)
|
||||
_gid!= id -g
|
||||
.export _gid
|
||||
.endif
|
||||
.for x in BIN CONF DOC DTB INFO KMOD LIB MAN NLS SHARE
|
||||
$xOWN= ${USER}
|
||||
$xGRP= ${_gid}
|
||||
|
|
|
|||
Loading…
Reference in a new issue