Index: bsd.port.mk =================================================================== RCS file: /home/pcvs/ports/Mk/bsd.port.mk,v retrieving revision 1.644 diff -u -r1.644 bsd.port.mk --- bsd.port.mk 20 Aug 2010 12:15:02 -0000 1.644 +++ bsd.port.mk 14 Sep 2010 00:47:10 -0000 @@ -2385,6 +2385,7 @@ # Determine whether or not we can use rootly owner/group functions. .if !defined(UID) UID!= ${ID} -u +USER!= ${ID} -un .endif .if ${UID} == 0 _BINOWNGRP= -o ${BINOWN} -g ${BINGRP} @@ -2394,6 +2395,8 @@ _BINOWNGRP= _SHROWNGRP= _MANOWNGRP= +# The following are for ports directly using them. +MAKE_ENV+= BINOWN=${USER} BINGRP=${USER} MANOWN=${USER} MANGRP=${USER} .endif # A few aliases for *-install targets