summaryrefslogtreecommitdiff
path: root/mk/defs.NetBSD.mk
diff options
context:
space:
mode:
authorjlam <jlam>2001-11-19 16:17:51 +0000
committerjlam <jlam>2001-11-19 16:17:51 +0000
commit658b8b5e80dc765da62b12bdf7431554dd864b66 (patch)
treeb6481131e8675c6d05058b7eebf0c67e8be57c9e /mk/defs.NetBSD.mk
parent47a869f5cd8d21baf12303682af2894c578c42cb (diff)
downloadpkgsrc-658b8b5e80dc765da62b12bdf7431554dd864b66.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/defs.NetBSD.mk')
-rw-r--r--mk/defs.NetBSD.mk14
1 files changed, 13 insertions, 1 deletions
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