diff options
author | obache <obache> | 2013-02-22 13:39:31 +0000 |
---|---|---|
committer | obache <obache> | 2013-02-22 13:39:31 +0000 |
commit | 9ba6d0a1b26bbd308b5dac3c0c29b11cf24fb3cd (patch) | |
tree | 109eb1f379cf9b6d5b9125e372b2f2b3a7a639a6 /mk/platform | |
parent | cdf1301d25900cad0222352a41cfd528dea577f1 (diff) | |
download | pkgsrc-9ba6d0a1b26bbd308b5dac3c0c29b11cf24fb3cd.tar.gz |
Fix ROOT_USER/ROOT_GROUP for Cygwin to Administrators/Administrators (not using
its UID/GID), and sync platform privilege check with bootstrap script.
Diffstat (limited to 'mk/platform')
-rw-r--r-- | mk/platform/Cygwin.mk | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mk/platform/Cygwin.mk b/mk/platform/Cygwin.mk index ae24bfc7e54..1836b8158c5 100644 --- a/mk/platform/Cygwin.mk +++ b/mk/platform/Cygwin.mk @@ -1,4 +1,4 @@ -# $NetBSD: Cygwin.mk,v 1.5 2013/02/21 11:19:27 obache Exp $ +# $NetBSD: Cygwin.mk,v 1.6 2013/02/22 13:39:31 obache Exp $ # # Variable definitions for the Windows with Cygwin. @@ -54,7 +54,8 @@ PKGDIRMODE?= 775 # 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?= ${:!${ID} -g Administrators!} +ROOT_GROUP?= Administrators +_IS_ROOT_CMD?= ( ${ID} -nG | ${GREP} -q 'Administrators' ) TOUCH_FLAGS?= ULIMIT_CMD_datasize?= ulimit -d `ulimit -H -d` ULIMIT_CMD_stacksize?= ulimit -s `ulimit -H -s` |