summaryrefslogtreecommitdiff
path: root/mk/bsd.pkg.install.mk
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/bsd.pkg.install.mk
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/bsd.pkg.install.mk')
-rw-r--r--mk/bsd.pkg.install.mk9
1 files changed, 3 insertions, 6 deletions
diff --git a/mk/bsd.pkg.install.mk b/mk/bsd.pkg.install.mk
index d18a141bda7..6e9d4fba8d2 100644
--- a/mk/bsd.pkg.install.mk
+++ b/mk/bsd.pkg.install.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.install.mk,v 1.65 2004/10/11 22:04:19 reed Exp $
+# $NetBSD: bsd.pkg.install.mk,v 1.66 2004/12/27 06:41:50 jlam Exp $
#
# This Makefile fragment is included by bsd.pkg.mk to use the common
# INSTALL/DEINSTALL scripts. To use this Makefile fragment, simply:
@@ -118,11 +118,8 @@ BROKEN:= "User and group '${user:C/:.*//}' cannot have the same name on Interix
. endfor
.endif
-.if !empty(PKG_USERS)
-USE_USERADD= YES
-.endif
-.if !empty(PKG_GROUPS)
-USE_GROUPADD= YES
+.if !empty(PKG_USERS) || !empty(PKG_GROUPS)
+DEPENDS+= ${_USER_DEPENDS}
.endif
# SPECIAL_PERMS are lists that look like: