summaryrefslogtreecommitdiff
path: root/parallel/glunix/INSTALL
blob: d47a10a8b01afc128299044798703fdd8b3369e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# $NetBSD: INSTALL,v 1.1 2001/10/31 22:58:15 zuntum Exp $
#

if [ "$2" != "PRE-INSTALL" ]; then
    exit 0
fi

if [ -f /usr/sbin/user ]
then
    USER_CMD=/usr/sbin/user
    GROUP_CMD=/usr/sbin/group
else
    if [ -f ${PKG_PREFIX}/sbin/user ]
    then
	USER_CMD=${PKG_PREFIX}/sbin/user
	GROUP_CMD=${PKG_PREFIX}/sbin/group
    else
	echo
	echo Please install the sysutils/user first!
	echo
	exit 0
    fi
fi

if `${GROUP_CMD} info -e glunix` ; then \
	${ECHO} Group \'glunix\' already exists.; \
else \
	${GROUP_CMD} add glunix; \
fi
if `${USER_CMD} info -e glunix` ; then \
	${ECHO} User \'glunix\' already exists.; \
else \
	${USER_CMD} add -g glunix -d /nonexistent -s \
		${PKG_PREFIX}/now/bin/glush glunix; \
fi