Sun May 18 09:45:40 2014 UTC ()
Haiku has groupadd now.
noticed by diger in pkgsrc-users@.

While here, enable useradd only for the case groupadd exists,
because former useradd is interactive command, not usable with pkgsrc framework.


(obache)
diff -r1.10 -r1.11 pkgsrc/mk/platform/Haiku.mk

cvs diff -r1.10 -r1.11 pkgsrc/mk/platform/Haiku.mk (expand / switch to unified diff)

--- pkgsrc/mk/platform/Haiku.mk 2014/05/18 07:56:21 1.10
+++ pkgsrc/mk/platform/Haiku.mk 2014/05/18 09:45:40 1.11
@@ -1,45 +1,47 @@ @@ -1,45 +1,47 @@
1# $NetBSD: Haiku.mk,v 1.10 2014/05/18 07:56:21 obache Exp $ 1# $NetBSD: Haiku.mk,v 1.11 2014/05/18 09:45:40 obache Exp $
2# 2#
3# Variable definitions for the Haiku operating system. 3# Variable definitions for the Haiku operating system.
4 4
5ECHO_N?= ${ECHO} -n 5ECHO_N?= ${ECHO} -n
6PKGLOCALEDIR?= share 6PKGLOCALEDIR?= share
7PS?= /bin/ps 7PS?= /bin/ps
8# XXX: default from defaults/mk.conf. Verify/correct for this platform 8# XXX: default from defaults/mk.conf. Verify/correct for this platform
9# and remove this comment. 9# and remove this comment.
10SU?= /bin/su 10SU?= /bin/su
11TYPE?= type # Shell builtin 11TYPE?= type # Shell builtin
12  12
13# Use symlink for wrapper in mk/wrapper/bsd.wrapper.mk, 13# Use symlink for wrapper in mk/wrapper/bsd.wrapper.mk,
14# due to lack of hard link support. 14# due to lack of hard link support.
15WRAPPER_USE_SYMLINK= # defined 15WRAPPER_USE_SYMLINK= # defined
16 16
17CPP_PRECOMP_FLAGS?= # unset 17CPP_PRECOMP_FLAGS?= # unset
18DEF_UMASK?= 022 18DEF_UMASK?= 022
19DEFAULT_SERIAL_DEVICE?= /dev/tty 19DEFAULT_SERIAL_DEVICE?= /dev/tty
20EXPORT_SYMBOLS_LDFLAGS?= # Don't add symbols to the dynamic symbol table 20EXPORT_SYMBOLS_LDFLAGS?= # Don't add symbols to the dynamic symbol table
21#GROUPADD?= /bin/groupadd 
22MOTIF_TYPE_DEFAULT?= motif # default 2.0 compatible libs type 21MOTIF_TYPE_DEFAULT?= motif # default 2.0 compatible libs type
23NOLOGIN?= /bin/false 22NOLOGIN?= /bin/false
24PKG_TOOLS_BIN?= ${LOCALBASE}/sbin 23PKG_TOOLS_BIN?= ${LOCALBASE}/sbin
25ROOT_CMD?= ${SU} - root -c 24ROOT_CMD?= ${SU} - root -c
26ROOT_GROUP?= root 25ROOT_GROUP?= root
27ROOT_USER?= user 26ROOT_USER?= user
28SERIAL_DEVICES?= /dev/tty 27SERIAL_DEVICES?= /dev/tty
29ULIMIT_CMD_datasize?= : 28ULIMIT_CMD_datasize?= :
30ULIMIT_CMD_stacksize?= : 29ULIMIT_CMD_stacksize?= :
31ULIMIT_CMD_memorysize?= : 30ULIMIT_CMD_memorysize?= :
 31.if exists(/bin/groupadd)
32USERADD?= /bin/useradd 32USERADD?= /bin/useradd
 33GROUPADD?= /bin/groupadd
 34.endif
33 35
34_OPSYS_SYSTEM_RPATH?= /boot/common/lib:/boot/system/lib 36_OPSYS_SYSTEM_RPATH?= /boot/common/lib:/boot/system/lib
35_OPSYS_LIB_DIRS?= /boot/common/lib /boot/system/lib 37_OPSYS_LIB_DIRS?= /boot/common/lib /boot/system/lib
36_OPSYS_INCLUDE_DIRS?= /boot/common/include \ 38_OPSYS_INCLUDE_DIRS?= /boot/common/include \
37 /boot/develop/headers/posix \ 39 /boot/develop/headers/posix \
38 /boot/develop/headers/3rdparty 40 /boot/develop/headers/3rdparty
39 41
40_OPSYS_HAS_INET6= yes # IPv6 is standard 42_OPSYS_HAS_INET6= yes # IPv6 is standard
41_OPSYS_HAS_JAVA= no # Java is not standard 43_OPSYS_HAS_JAVA= no # Java is not standard
42_OPSYS_HAS_MANZ= no # no MANZ for gzipping of man pages 44_OPSYS_HAS_MANZ= no # no MANZ for gzipping of man pages
43_OPSYS_HAS_OSSAUDIO= no # libossaudio is available 45_OPSYS_HAS_OSSAUDIO= no # libossaudio is available
44_OPSYS_PERL_REQD= # no base version of perl required 46_OPSYS_PERL_REQD= # no base version of perl required
45_OPSYS_PTHREAD_AUTO= no # -lpthread needed for pthreads 47_OPSYS_PTHREAD_AUTO= no # -lpthread needed for pthreads