summaryrefslogtreecommitdiff
path: root/mk/install
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2004-12-27 06:41:50 +0000
committerjlam <jlam@pkgsrc.org>2004-12-27 06:41:50 +0000
commit25b81680beab3016c878ab754d8135911cd66e57 (patch)
tree652a8b6305260ff589456126c6b6ddc26201c1e8 /mk/install
parent34a211b1e3516b3b164281be72140c0d1a288913 (diff)
downloadpkgsrc-25b81680beab3016c878ab754d8135911cd66e57.tar.gz
Remove USERADD and GROUPADD definitions from OSes where the useradd
and groupadd commands won't follow the calling conventions of the NetBSD useradd/groupadd. Modify the INSTALL scripts to *never* create users or groups if there is no available ${USERADD} or ${GROUPADD} command, but will warn the user of users and groups that need to be created before the package can be installed.
Diffstat (limited to 'mk/install')
-rw-r--r--mk/install/header5
1 files changed, 4 insertions, 1 deletions
diff --git a/mk/install/header b/mk/install/header
index a81d0cad664..17d41cbd972 100644
--- a/mk/install/header
+++ b/mk/install/header
@@ -2,7 +2,7 @@
#
# start of header
#
-# $NetBSD: header,v 1.26 2004/04/27 18:31:08 tv Exp $
+# $NetBSD: header,v 1.27 2004/12/27 06:41:50 jlam Exp $
PKGNAME=$1
STAGE=$2
@@ -112,6 +112,9 @@ case "${PKG_CREATE_USERGROUP:-@PKG_CREATE_USERGROUP@}" in
_PKG_CREATE_USERGROUP=NO
;;
esac
+if [ -z "${USERADD}" -o -z "${GROUPADD}" ]; then
+ _PKG_CREATE_USERGROUP=NO
+fi
case "${PKG_CONFIG:-@PKG_CONFIG@}" in
[Yy][Ee][Ss]|[Tt][Rr][Uu][Ee]|[Oo][Nn]|1)