diff options
author | jlam <jlam@pkgsrc.org> | 2001-11-19 16:17:51 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2001-11-19 16:17:51 +0000 |
commit | 014a83ae0f4570b0f6917cb8545ebc2d1bc8b231 (patch) | |
tree | b6481131e8675c6d05058b7eebf0c67e8be57c9e /mk/defs.NetBSD.mk | |
parent | b046604a946e4d69aeb7bffe71626b263485ad83 (diff) | |
download | pkgsrc-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/defs.NetBSD.mk')
-rw-r--r-- | mk/defs.NetBSD.mk | 14 |
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 |