2013-09-24 10:00:08 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
# Changes some default behaviour of build systems to allow installing as user.
|
|
|
|
#
|
|
|
|
# MAINTAINER: bapt@FreeBSD.org
|
|
|
|
#
|
|
|
|
# Feature: uidfix
|
|
|
|
# Usage: USES=uidfix
|
|
|
|
# Valid ARGS: none
|
|
|
|
#
|
|
|
|
.if !defined(_INCLUDE_USES_UIDFIX_MK)
|
2013-10-29 13:14:41 +00:00
|
|
|
_INCLUDE_USES_UIDFIX_MK= yes
|
2013-09-24 10:00:08 +00:00
|
|
|
.if ${UID} != 0
|
2013-11-29 14:57:42 +00:00
|
|
|
.if !defined(GID)
|
|
|
|
GID!= id -g
|
|
|
|
.endif
|
2013-09-24 10:00:08 +00:00
|
|
|
MAKE_ENV+= BINOWN=${UID} SHAREOWN=${UID} CONFOWN=${UID}
|
2013-11-29 14:57:42 +00:00
|
|
|
MAKE_ENV+= BINGRP=${GID} SHAREGRP=${GID} CONFGRP=${GID}
|
2013-09-24 12:47:31 +00:00
|
|
|
BINOWN= ${UID}
|
2013-09-24 13:23:15 +00:00
|
|
|
SHAREOWN= ${UID}
|
2013-09-24 12:47:31 +00:00
|
|
|
WWWOWN= ${UID}
|
2013-11-29 14:57:42 +00:00
|
|
|
BINGRP= ${GID}
|
|
|
|
SHAREGRP= ${GID}
|
|
|
|
WWWGRP= ${GID}
|
2013-09-24 10:00:08 +00:00
|
|
|
.endif
|
|
|
|
.endif
|