1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00
freebsd-ports/Mk/Uses/uidfix.mk
Mikhail Teterin e3d9c3895a Set the user:group for the include-files as well.
PR:		206126
Approved by:	bapt
2016-04-13 12:20:40 +00:00

32 lines
658 B
Makefile

# $FreeBSD$
#
# Changes some default behaviour of build systems to allow installing as user.
#
# Feature: uidfix
# Usage: USES=uidfix
# Valid ARGS: none
#
# MAINTAINER: bapt@FreeBSD.org
.if !defined(_INCLUDE_USES_UIDFIX_MK)
_INCLUDE_USES_UIDFIX_MK= yes
.if !defined(GID)
GID!= id -g
.endif
.if ${UID} != 0
MAKE_ENV+= BINOWN=${UID} SHAREOWN=${UID} CONFOWN=${UID} LIBOWN=${UID}
MAKE_ENV+= BINGRP=${GID} SHAREGRP=${GID} CONFGRP=${GID} LIBGRP=${GID}
MAKE_ENV+= INCSOWN=${UID} INCSGRP=${GID}
BINOWN= ${UID}
LIBOWN= ${UID}
SHAREOWN= ${UID}
WWWOWN= ${UID}
BINGRP= ${GID}
LIBGRP= ${GID}
SHAREGRP= ${GID}
WWWGRP= ${GID}
INCSOWN= ${UID}
INCSGRP= ${GID}
.endif
.endif