summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2001-11-19 16:17:51 +0000
committerjlam <jlam@pkgsrc.org>2001-11-19 16:17:51 +0000
commit014a83ae0f4570b0f6917cb8545ebc2d1bc8b231 (patch)
treeb6481131e8675c6d05058b7eebf0c67e8be57c9e /mk
parentb046604a946e4d69aeb7bffe71626b263485ad83 (diff)
downloadpkgsrc-014a83ae0f4570b0f6917cb8545ebc2d1bc8b231.tar.gz
Add definitions for USERADD and GROUPADD, used to create new users and
groups. These commands follow the basic interface of the NetBSD/Solaris useradd and groupadd programs. For platforms on which these commands don't exist, either sysutils/user is added as a dependency, or these are set to ${FALSE}, and the package admin is responsible for creating them himself prior to the installation of a package.
Diffstat (limited to 'mk')
-rw-r--r--mk/defs.Darwin.mk6
-rw-r--r--mk/defs.Linux.mk6
-rw-r--r--mk/defs.NetBSD.mk14
-rw-r--r--mk/defs.SunOS.mk6
4 files changed, 28 insertions, 4 deletions
diff --git a/mk/defs.Darwin.mk b/mk/defs.Darwin.mk
index d32f177df22..c3cfb2e3f36 100644
--- a/mk/defs.Darwin.mk
+++ b/mk/defs.Darwin.mk
@@ -1,4 +1,4 @@
-# $NetBSD: defs.Darwin.mk,v 1.2 2001/11/15 12:17:19 agc Exp $
+# $NetBSD: defs.Darwin.mk,v 1.3 2001/11/19 16:17:51 jlam Exp $
#
# Variable definitions for the Darwin operating system.
@@ -50,3 +50,7 @@ TRUE?= true # Shell builtin
TYPE?= type # Shell builtin
WC?= /usr/bin/wc
XARGS?= /usr/bin/xargs
+
+USERADD?= ${FALSE} # XXX - Fix me!
+GROUPADD?= ${FALSE} # XXX - Fix me!
+NOLOGIN?= ${FALSE}
diff --git a/mk/defs.Linux.mk b/mk/defs.Linux.mk
index 06c236a0725..00e75567403 100644
--- a/mk/defs.Linux.mk
+++ b/mk/defs.Linux.mk
@@ -1,4 +1,4 @@
-# $NetBSD: defs.Linux.mk,v 1.8 2001/08/23 16:54:09 abs Exp $
+# $NetBSD: defs.Linux.mk,v 1.9 2001/11/19 16:17:51 jlam Exp $
#
# Variable definitions for the Linux operating system.
@@ -54,3 +54,7 @@ TRUE?= /bin/true
TYPE?= type
WC?= /usr/bin/wc
XARGS?= /usr/bin/xargs -r
+
+USERADD?= /usr/sbin/useradd
+GROUPADD?= /usr/sbin/groupadd
+NOLOGIN?= ${FALSE}
diff --git a/mk/defs.NetBSD.mk b/mk/defs.NetBSD.mk
index 5d7f5c7bb25..a954a815bf0 100644
--- a/mk/defs.NetBSD.mk
+++ b/mk/defs.NetBSD.mk
@@ -1,4 +1,4 @@
-# $NetBSD: defs.NetBSD.mk,v 1.5 2001/07/15 12:40:03 jlam Exp $
+# $NetBSD: defs.NetBSD.mk,v 1.6 2001/11/19 16:17:51 jlam Exp $
#
# Variable definitions for the NetBSD operating system.
@@ -50,3 +50,15 @@ TRUE?= true # Shell builtin
TYPE?= type # Shell builtin
WC?= /usr/bin/wc
XARGS?= /usr/bin/xargs
+
+.if exists(/usr/sbin/user)
+USERADD?= /usr/sbin/useradd
+GROUPADD?= /usr/sbin/groupadd
+.else
+USERADD?= ${LOCALBASE}/sbin/useradd
+GROUPADD?= ${LOCALBASE}/sbin/groupadd
+.endif
+.if defined(USE_USERADD) || defined(USE_GROUPADD)
+DEPENDS+= user>=20000313:../../sysutils/user
+.endif
+NOLOGIN?= /sbin/nologin
diff --git a/mk/defs.SunOS.mk b/mk/defs.SunOS.mk
index 84648c6a077..6d5fcf79f63 100644
--- a/mk/defs.SunOS.mk
+++ b/mk/defs.SunOS.mk
@@ -1,4 +1,4 @@
-# $NetBSD: defs.SunOS.mk,v 1.5 2001/07/15 12:40:03 jlam Exp $
+# $NetBSD: defs.SunOS.mk,v 1.6 2001/11/19 16:17:51 jlam Exp $
#
# Variable definitions for the SunOS/Solaris operating system.
@@ -61,3 +61,7 @@ TRUE?= /usr/bin/true
TYPE?= /usr/bin/type
WC?= /usr/bin/wc
XARGS?= /usr/bin/xargs
+
+USERADD?= /usr/sbin/useradd
+GROUPADD?= /usr/sbin/groupadd
+NOLOGIN?= ${FALSE}