summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authortv <tv>2004-10-29 14:53:39 +0000
committertv <tv>2004-10-29 14:53:39 +0000
commit55d74f2e4b6bb882277bc203c7be884826ac712f (patch)
treee469da9e25f0560f3356d9548c6134c9ce197b11 /mk
parentb6edd9d515b7f3892681b877def2957d8943c6ac (diff)
downloadpkgsrc-55d74f2e4b6bb882277bc203c7be884826ac712f.tar.gz
Collapse ROOT_CMD a little; it's possible to make all invocations do the
$(id -un ...) dance for canonical naming.
Diffstat (limited to 'mk')
-rw-r--r--mk/platform/Interix.mk11
1 files changed, 3 insertions, 8 deletions
diff --git a/mk/platform/Interix.mk b/mk/platform/Interix.mk
index 05ea8c99153..9e1c3dda665 100644
--- a/mk/platform/Interix.mk
+++ b/mk/platform/Interix.mk
@@ -1,4 +1,4 @@
-# $NetBSD: Interix.mk,v 1.7 2004/10/13 17:50:01 tv Exp $
+# $NetBSD: Interix.mk,v 1.8 2004/10/29 14:53:39 tv Exp $
#
# Variable definitions for the Interix operating system.
@@ -96,13 +96,8 @@ MOTIF_TYPE_DEFAULT?= openmotif # default 2.0 compatible libs type
NOLOGIN?= /bin/false
PKG_TOOLS_BIN?= ${LOCALBASE}/sbin
PKGDIRMODE?= 775
-.if ${BINOWN} == 197108
-# If Administrator, BINOWN is exactly this numeric value, so transform it to
-# a locale-specific name. (pkgsrc/bootstrap sets all other users to names.)
-ROOT_CMD?= ${SU} - "$$(id -un 197108)" -c
-.else
-ROOT_CMD?= ${SU} - ${ROOT_USER} -c
-.endif
+# ROOT_USER might be numeric in the special case of Administrator; canonify it:
+ROOT_CMD?= ${SU} - "$$(id -un ${ROOT_USER})" -c
ROOT_USER?= ${BINOWN}
ROOT_GROUP?= 131616 # +Administrators or native language equivalent
TOUCH_FLAGS?=