summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authordanw <danw@pkgsrc.org>2004-04-01 03:04:13 +0000
committerdanw <danw@pkgsrc.org>2004-04-01 03:04:13 +0000
commit4efcafd78cc1227da090a8f5189ce2ebf7180060 (patch)
tree9330610423807a453afe957203704bbb5139024a /mk
parente0c9413fd45d3688653bab740d4355dfe2c00a0f (diff)
downloadpkgsrc-4efcafd78cc1227da090a8f5189ce2ebf7180060.tar.gz
add USERADD/GROUPADD support via sysutils/user_darwin
Diffstat (limited to 'mk')
-rw-r--r--mk/defs.Darwin.mk12
1 files changed, 8 insertions, 4 deletions
diff --git a/mk/defs.Darwin.mk b/mk/defs.Darwin.mk
index 2fd3b35392a..ea759cdd768 100644
--- a/mk/defs.Darwin.mk
+++ b/mk/defs.Darwin.mk
@@ -1,4 +1,4 @@
-# $NetBSD: defs.Darwin.mk,v 1.67 2004/03/12 16:02:33 danw Exp $
+# $NetBSD: defs.Darwin.mk,v 1.68 2004/04/01 03:04:13 danw Exp $
#
# Variable definitions for the Darwin operating system.
@@ -81,7 +81,6 @@ CPP_PRECOMP_FLAGS?= -no-cpp-precomp # use the GNU cpp, not the OS X cpp
DEF_UMASK?= 0022
DEFAULT_SERIAL_DEVICE?= /dev/null
EXPORT_SYMBOLS_LDFLAGS?= # Don't add symbols to the dynamic symbol table
-GROUPADD?= ${FALSE} # XXX - Fix me!
MOTIF_TYPE_DEFAULT?= openmotif # default 2.0 compatible libs type
MOTIF12_TYPE_DEFAULT?= lesstif12 # default 1.2 compatible libs type
NOLOGIN?= ${FALSE}
@@ -93,9 +92,14 @@ SERIAL_DEVICES?= /dev/null
ULIMIT_CMD_datasize?= ulimit -d `ulimit -H -d`
ULIMIT_CMD_stacksize?= ulimit -s `ulimit -H -s`
ULIMIT_CMD_memorysize?= ulimit -m `ulimit -H -m`
-USERADD?= ${FALSE} # XXX - Fix me!
-PKG_CREATE_USERGROUP?= NO # XXX - Until then
+GROUPADD?= ${LOCALBASE}/sbin/groupadd
+USERADD?= ${LOCALBASE}/sbin/useradd
+_PKG_USER_HOME?= /var/empty # to match other system accounts
+_PKG_USER_SHELL?= /usr/bin/false # to match other system accounts
+.if defined(USE_USERADD) || defined(USE_GROUPADD)
+DEPENDS+= user>=20040331:../../sysutils/user_darwin
+.endif
# imake installs manpages in weird places
# these values from /usr/X11R6/lib/X11/config/Imake.tmpl