mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-29 01:13:08 +00:00
27 lines
528 B
Makefile
27 lines
528 B
Makefile
# $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)
|
|
_INCLUDE_USES_UIDFIX_MK= yes
|
|
.if ${UID} != 0
|
|
.if !defined(GID)
|
|
GID!= id -g
|
|
.endif
|
|
MAKE_ENV+= BINOWN=${UID} SHAREOWN=${UID} CONFOWN=${UID}
|
|
MAKE_ENV+= BINGRP=${GID} SHAREGRP=${GID} CONFGRP=${GID}
|
|
BINOWN= ${UID}
|
|
SHAREOWN= ${UID}
|
|
WWWOWN= ${UID}
|
|
BINGRP= ${GID}
|
|
SHAREGRP= ${GID}
|
|
WWWGRP= ${GID}
|
|
.endif
|
|
.endif
|