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