diff options
author | schmonz <schmonz@pkgsrc.org> | 2002-07-15 16:24:01 +0000 |
---|---|---|
committer | schmonz <schmonz@pkgsrc.org> | 2002-07-15 16:24:01 +0000 |
commit | a9600197ee81a8955336ca073ffde83eda2e8540 (patch) | |
tree | e21163a338485239e34004e942333f87d167aee1 /mk | |
parent | 8673172a778f7cd612262cda15e948da17f1bbee (diff) | |
download | pkgsrc-a9600197ee81a8955336ca073ffde83eda2e8540.tar.gz |
Provide per-${OPSYS} defaults for how to run a command as root.
Darwin ships with a disabled root account and a working "sudo".
Diffstat (limited to 'mk')
-rw-r--r-- | mk/bsd.pkg.defaults.mk | 4 | ||||
-rw-r--r-- | mk/defs.Darwin.mk | 3 | ||||
-rw-r--r-- | mk/defs.Linux.mk | 3 | ||||
-rw-r--r-- | mk/defs.NetBSD.mk | 3 | ||||
-rw-r--r-- | mk/defs.SunOS.mk | 3 |
5 files changed, 10 insertions, 6 deletions
diff --git a/mk/bsd.pkg.defaults.mk b/mk/bsd.pkg.defaults.mk index 22bfe7c53a5..74b7ac897b2 100644 --- a/mk/bsd.pkg.defaults.mk +++ b/mk/bsd.pkg.defaults.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.defaults.mk,v 1.69 2002/06/30 19:07:27 dmcmahill Exp $ +# $NetBSD: bsd.pkg.defaults.mk,v 1.70 2002/07/15 16:24:01 schmonz Exp $ # # A file providing defaults for pkgsrc and the packages collection. @@ -329,7 +329,7 @@ PRE_ROOT_CMD?= ${TRUE} # Possible: any shell commands # Default: none -SU_CMD?= su - root -c +SU_CMD?= ${ROOT_CMD} # Command to perform before "make install", if the user does not have # an effective uid of 0. A possible substitute is "sudo sh -c" # Possible: su, sudo, or priv, with appropriate arguments diff --git a/mk/defs.Darwin.mk b/mk/defs.Darwin.mk index 5361ea29950..1a40f81ef54 100644 --- a/mk/defs.Darwin.mk +++ b/mk/defs.Darwin.mk @@ -1,4 +1,4 @@ -# $NetBSD: defs.Darwin.mk,v 1.25 2002/06/02 19:44:32 schmonz Exp $ +# $NetBSD: defs.Darwin.mk,v 1.26 2002/07/15 16:24:01 schmonz Exp $ # # Variable definitions for the Darwin operating system. @@ -63,6 +63,7 @@ MOTIF_TYPE_DEFAULT?= openmotif # default 2.0 compatible libs type MOTIF12_TYPE_DEFAULT?= lesstif12 # default 1.2 compatible libs type NOLOGIN?= ${FALSE} PKG_TOOLS_BIN?= ${ZOULARISBASE}/sbin +ROOT_CMD?= sudo sh -c ROOT_GROUP?= wheel ROOT_USER?= root SERIAL_DEVICES?= /dev/null diff --git a/mk/defs.Linux.mk b/mk/defs.Linux.mk index 7e0ff5c7753..a290700bc0f 100644 --- a/mk/defs.Linux.mk +++ b/mk/defs.Linux.mk @@ -1,4 +1,4 @@ -# $NetBSD: defs.Linux.mk,v 1.27 2002/06/21 17:28:44 abs Exp $ +# $NetBSD: defs.Linux.mk,v 1.28 2002/07/15 16:24:01 schmonz Exp $ # # Variable definitions for the Linux operating system. @@ -67,6 +67,7 @@ MOTIF_TYPE_DEFAULT?= openmotif # default 2.0 compatible libs type MOTIF12_TYPE_DEFAULT?= lesstif12 # default 1.2 compatible libs type NOLOGIN?= ${FALSE} PKG_TOOLS_BIN?= ${ZOULARISBASE}/sbin +ROOT_CMD?= ${SU} - root -c ROOT_GROUP?= wheel ROOT_USER?= root SERIAL_DEVICES?= /dev/null diff --git a/mk/defs.NetBSD.mk b/mk/defs.NetBSD.mk index b569565da31..22858ad447d 100644 --- a/mk/defs.NetBSD.mk +++ b/mk/defs.NetBSD.mk @@ -1,4 +1,4 @@ -# $NetBSD: defs.NetBSD.mk,v 1.25 2002/06/02 00:40:19 schmonz Exp $ +# $NetBSD: defs.NetBSD.mk,v 1.26 2002/07/15 16:24:01 schmonz Exp $ # # Variable definitions for the NetBSD operating system. @@ -72,6 +72,7 @@ MOTIF_TYPE_DEFAULT?= openmotif # default 2.0 compatible libs type MOTIF12_TYPE_DEFAULT?= lesstif12 # default 1.2 compatible libs type NOLOGIN?= /sbin/nologin PKG_TOOLS_BIN?= /usr/sbin +ROOT_CMD?= ${SU} - root -c ROOT_USER?= root ROOT_GROUP?= wheel diff --git a/mk/defs.SunOS.mk b/mk/defs.SunOS.mk index f621a2534bd..d19affcea5d 100644 --- a/mk/defs.SunOS.mk +++ b/mk/defs.SunOS.mk @@ -1,4 +1,4 @@ -# $NetBSD: defs.SunOS.mk,v 1.25 2002/07/11 15:52:36 grant Exp $ +# $NetBSD: defs.SunOS.mk,v 1.26 2002/07/15 16:24:01 schmonz Exp $ # # Variable definitions for the SunOS/Solaris operating system. @@ -74,6 +74,7 @@ GROUPADD?= /usr/sbin/groupadd MOTIF_TYPE_DEFAULT?= dt # default 2.0 compatible libs type MOTIF12_TYPE_DEFAULT?= dt # default 1.2 compatible libs type NOLOGIN?= ${FALSE} +ROOT_CMD?= ${SU} - root -c ROOT_GROUP?= root ROOT_USER?= root SERIAL_DEVICES?= /dev/null |