svn commit: r328024 - head/Mk
Baptiste Daroussin
bapt at FreeBSD.org
Mon Sep 23 16:52:57 UTC 2013
Author: bapt
Date: Mon Sep 23 16:52:56 2013
New Revision: 328024
URL: http://svnweb.freebsd.org/changeset/ports/328024
Log:
Do not require root credential for make clean if the stage cookie is not present
Requested by: sunpoet
Modified:
head/Mk/bsd.port.mk
Modified: head/Mk/bsd.port.mk
==============================================================================
--- head/Mk/bsd.port.mk Mon Sep 23 16:48:22 2013 (r328023)
+++ head/Mk/bsd.port.mk Mon Sep 23 16:52:56 2013 (r328024)
@@ -4563,7 +4563,7 @@ deinstall-all:
.if !target(do-clean)
do-clean:
-.if !defined(NO_STAGE) && ${UID} != 0 && !defined(INSTALL_AS_USER)
+.if !defined(NO_STAGE) && ${UID} != 0 && !defined(INSTALL_AS_USER) && exists(${STAGE_COOKIE})
@${ECHO_MSG} "===> Switching to root credentials for '${.TARGET}' target"
@cd ${.CURDIR} && \
${SU_CMD} "${MAKE} ${.TARGET}"
More information about the svn-ports-all
mailing list