From 358875200d6f0a1971e66d4531945cce0797bc06 Mon Sep 17 00:00:00 2001 From: Max Khon Date: Wed, 30 Jul 2003 08:53:49 +0000 Subject: Convert ${SU} to ${SU_CMD}. This allows to use sudo instead of su by defining 'SU_CMD=/usr/local/bin/sudo sh -c'. Provide an example of using sudo instead of su as well. Approved by: kris, des --- Mk/bsd.port.mk | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Mk') diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk index 06dd008ace08..0846d16c42da 100644 --- a/Mk/bsd.port.mk +++ b/Mk/bsd.port.mk @@ -795,7 +795,8 @@ SED?= /usr/bin/sed SETENV?= /usr/bin/env SH?= /bin/sh STRIP_CMD?= /usr/bin/strip -SU?= /usr/bin/su +SU_CMD?= /usr/bin/su root -c +#SU_CMD?= /usr/local/bin/sudo su -c TAIL?= /usr/bin/tail TEST?= test # Shell builtin TR?= /usr/bin/tr @@ -3258,7 +3259,7 @@ ${${target:U}_COOKIE}: ${_${target:U}_DEP} ${_${target:U}_SEQ} .endif @echo "===> Switching to root credentials for '${target}' target" @cd ${.CURDIR} && \ - ${SU} root -c "${MAKE} ${__softMAKEFLAGS} ${_${target:U}_SUSEQ}" + ${SU_CMD} "${MAKE} ${__softMAKEFLAGS} ${_${target:U}_SUSEQ}" @echo "===> Returning to user credentials" @${TOUCH} ${TOUCH_FLAGS} ${.TARGET} .elif defined(USE_SUBMAKE) -- cgit v1.2.3