aboutsummaryrefslogtreecommitdiff
path: root/Mk
diff options
context:
space:
mode:
authorBryan Drewery <bdrewery@FreeBSD.org>2013-07-05 12:29:35 +0000
committerBryan Drewery <bdrewery@FreeBSD.org>2013-07-05 12:29:35 +0000
commit9584952370413562cd0d46973f6de9ec9653e759 (patch)
tree6de9c4edd734250f5c888c26abe818d2f5c9000c /Mk
parentc78100319ac546b7f150b169b34481f6f5cf074b (diff)
Notes
Diffstat (limited to 'Mk')
-rw-r--r--Mk/bsd.pkgng.mk8
1 files changed, 1 insertions, 7 deletions
diff --git a/Mk/bsd.pkgng.mk b/Mk/bsd.pkgng.mk
index 5b709ef8371f..17a69fb28ef5 100644
--- a/Mk/bsd.pkgng.mk
+++ b/Mk/bsd.pkgng.mk
@@ -36,12 +36,6 @@ ACTUAL-PACKAGE-DEPENDS?= \
${PKG_QUERY} "%dn: {origin: %do, version: \"%dv\"}" " " ${_LIB_RUN_DEPENDS:C,[^:]*:([^:]*):?.*,\1,:C,${PORTSDIR}/,,} 2>/dev/null || : ; \
fi
-# Redefine. pkg2ng calls directly 'make -f bsd.pkgng.mk' which needs UID to be defined
-
-.if !defined(UID)
-UID!= ${ID} -u
-.endif
-
.if !target(fake-pkg)
fake-pkg:
.if !defined(NO_PKG_REGISTER)
@@ -267,7 +261,7 @@ check-already-installed:
.if !target(deinstall)
deinstall:
-.if ${UID} != 0 && !defined(INSTALL_AS_USER)
+.if defined(UID) && ${UID} != 0 && !defined(INSTALL_AS_USER)
@${ECHO_MSG} "===> Switching to root credentials for '${.TARGET}' target"
@cd ${.CURDIR} && \
${SU_CMD} "${MAKE} ${.TARGET}"