summaryrefslogtreecommitdiff
path: root/mk/bsd.pkg.install.mk
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2002-06-22 02:48:35 +0000
committerjlam <jlam@pkgsrc.org>2002-06-22 02:48:35 +0000
commit063b3c32e8adcd017a383a78ee17c4584f92d3ae (patch)
tree1f43bde483824893a84970061dbb80c33ea28c4f /mk/bsd.pkg.install.mk
parent6fcfc63b9168f7009e589aca2a3226cae0eaf193 (diff)
downloadpkgsrc-063b3c32e8adcd017a383a78ee17c4584f92d3ae.tar.gz
Change PKG_CREATE_USERGROUP and PKG_CONFIG so that their values are merely
defaults for the INSTALL/DEINSTALL scripts. The environment variables of the same name take precedence during installation of a binary package.
Diffstat (limited to 'mk/bsd.pkg.install.mk')
-rw-r--r--mk/bsd.pkg.install.mk20
1 files changed, 19 insertions, 1 deletions
diff --git a/mk/bsd.pkg.install.mk b/mk/bsd.pkg.install.mk
index 49b8d965103..fe5415d0c22 100644
--- a/mk/bsd.pkg.install.mk
+++ b/mk/bsd.pkg.install.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.install.mk,v 1.19 2002/06/20 20:15:47 jlam Exp $
+# $NetBSD: bsd.pkg.install.mk,v 1.20 2002/06/22 02:48:35 jlam Exp $
#
# This Makefile fragment is included by package Makefiles to use the common
# INSTALL/DEINSTALL scripts. To use this Makefile fragment, simply:
@@ -153,6 +153,24 @@ FILES_SUBST+= MAKE_DIRS_PERMS=${MAKE_DIRS_PERMS:Q}
FILES_SUBST+= OWN_DIRS=${OWN_DIRS:Q}
FILES_SUBST+= OWN_DIRS_PERMS=${OWN_DIRS_PERMS:Q}
+# PKG_CREATE_USERGROUP indicates whether the INSTALL script should
+# automatically add any needed users/groups to the system using
+# useradd/groupadd. It is either YES or NO and defaults to YES.
+#
+# PKG_CONFIG indicates whether the INSTALL/DEINSTALL scripts should do
+# automatic config file and directory handling, or if it should
+# merely inform the admin of the list of required files and
+# directories needed to use the package. It is either YES or NO
+# and defaults to YES.
+#
+# These values merely set the defaults for INSTALL/DEINSTALL scripts, but
+# they may be overridden by resetting them in the environment.
+#
+PKG_CREATE_USERGROUP?= YES
+PKG_CONFIG?= YES
+FILES_SUBST+= PKG_CREATE_USERGROUP=${PKG_CREATE_USERGROUP}
+FILES_SUBST+= PKG_CONFIG=${PKG_CONFIG}
+
# Substitute for various programs used in the DEINSTALL/INSTALL scripts.
FILES_SUBST+= AWK=${AWK:Q}
FILES_SUBST+= BASENAME=${BASENAME:Q}