a10e91b67f
Reported by: marino (based on a sendmail failure) Pointyhat to: bapt
28 lines
585 B
Makefile
28 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 !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}
|
|
BINOWN= ${UID}
|
|
LIBOWN= ${UID}
|
|
SHAREOWN= ${UID}
|
|
WWWOWN= ${UID}
|
|
BINGRP= ${GID}
|
|
LIBGRP= ${GID}
|
|
SHAREGRP= ${GID}
|
|
WWWGRP= ${GID}
|
|
.endif
|
|
.endif
|