22d02d6b3e
PKG_USERS represents the users to create for the package. It is a space-separated list of elements of the form user:group[:[userid][:[descr][:[home][:shell]]]] Only the user and group are required; everything else is optional, but the colons must be in the right places when specifying optional bits. Note that if the description contains spaces, then spaces should be double backslash-escaped, e.g. foo:foogrp::The\\ Foomister PKG_GROUPS represents the groups to create for the package. It is a space-separated list of elements of the form group[:groupid] Only the group is required; the groupid is optional. This solves the problem of what to do when there is more than one user or group needed for a package, e.g. qmail. Also add a bit more error-checking to the INSTALL/DEINSTALL scripts.
59 lines
939 B
Text
59 lines
939 B
Text
#!@SH@
|
|
#
|
|
# start of header
|
|
#
|
|
# $NetBSD: header,v 1.6 2001/11/26 20:37:39 jlam Exp $
|
|
|
|
PKGNAME=$1
|
|
STAGE=$2
|
|
|
|
AWK="@AWK@"
|
|
BASENAME="@BASENAME@"
|
|
CAT="@CAT@"
|
|
CHGRP="@CHGRP@"
|
|
CHMOD="@CHMOD@"
|
|
CHOWN="@CHOWN@"
|
|
CMP="@CMP@"
|
|
CP="@CP@"
|
|
DIRNAME="@DIRNAME@"
|
|
ECHO="@ECHO@"
|
|
EGREP="@EGREP@"
|
|
FALSE="@FALSE@"
|
|
GROUPADD="@GROUPADD@"
|
|
ID="@ID@"
|
|
LN="@LN@"
|
|
MKDIR="@MKDIR@"
|
|
MV="@MV@"
|
|
RM="@RM@"
|
|
RMDIR="@RMDIR@"
|
|
SED="@SED@"
|
|
SORT="@SORT@"
|
|
TOUCH="@TOUCH@"
|
|
TR="@TR@"
|
|
TRUE="@TRUE@"
|
|
USERADD="@USERADD@"
|
|
|
|
PKGBASE="@PKGBASE@"
|
|
|
|
PKG_USERS="@PKG_USERS@"
|
|
PKG_GROUPS="@PKG_GROUPS@"
|
|
|
|
CONF_FILES="@CONF_FILES@"
|
|
CONF_FILES_PERMS="@CONF_FILES_PERMS@"
|
|
SUPPORT_FILES="@SUPPORT_FILES@"
|
|
SUPPORT_FILES_PERMS="@SUPPORT_FILES_PERMS@"
|
|
RCD_SCRIPTS="@RCD_SCRIPTS@"
|
|
RCD_SCRIPTS_DIR="@RCD_SCRIPTS_DIR@"
|
|
|
|
MAKE_DIRS="@MAKE_DIRS@"
|
|
MAKE_DIRS_PERMS="@MAKE_DIRS_PERMS@"
|
|
OWN_DIRS="@OWN_DIRS@"
|
|
OWN_DIRS_PERMS="@OWN_DIRS_PERMS@"
|
|
|
|
ALL_USERS=
|
|
ALL_GROUPS=
|
|
ALL_FILES=
|
|
ALL_MAKE_DIRS=
|
|
ALL_DIRS=
|
|
|
|
# end of header
|