1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-11 02:50:24 +00:00
freebsd-ports/Mk/Uses/uidfix.mk
Gerald Pfeifer 5b4f2ad658 Move MAINTAINER lines to the end of the initial comment block and
make things a bit more consistent.

Approved by:	portmgr (bapt)
2014-03-15 10:31:54 +00:00

29 lines
585 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 ${UID} != 0
.if !defined(GID)
GID!= id -g
.endif
MAKE_ENV+= BINOWN=${UID} SHAREOWN=${UID} CONFOWN=${UID} LIBOWN=${UID}
MAKE_ENV+= BINGRP=${GID} SHAREGRP=${GID} CONFGRP=${GID} LIBGRP=${GID}
BINOWN= ${UID}
LIBOWN= ${UID}
SHAREOWN= ${UID}
WWWOWN= ${UID}
BINGRP= ${GID}
LIBGRP= ${GID}
SHAREGRP= ${GID}
WWWGRP= ${GID}
.endif
.endif