1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-01 01:17:02 +00:00
freebsd-ports/Mk/Uses/uidfix.mk
Tobias C. Berner aa25396790 framework: cleanup conditional-indentations in Mk/
Run Tools/scripts/indent_make_if.pl on all of Mk.

These white space changes contribute greatly to the readability of those files.
As we have a version control system, finding out the reasons for the changes
prior to these white space changes is still easily possible

Differential Revision:	https://reviews.freebsd.org/D35024
Reviewed by:		portmgr (rene, bapt)
2022-04-24 12:00:20 +02:00

30 lines
652 B
Makefile

# 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