summaryrefslogtreecommitdiff
path: root/mk/bsd.pkg.defaults.mk
diff options
context:
space:
mode:
authorsalo <salo@pkgsrc.org>2002-11-17 08:58:49 +0000
committersalo <salo@pkgsrc.org>2002-11-17 08:58:49 +0000
commit1fde293f32677222b26f56dfb47daa804eca44a0 (patch)
tree3e155d5246ed236de0b61794dce3b642fff4045a /mk/bsd.pkg.defaults.mk
parentce99281f43679c6be322687c35f85d16217f630d (diff)
downloadpkgsrc-1fde293f32677222b26f56dfb47daa804eca44a0.tar.gz
Introduce new framework which unifies registering packages providing login
shells to /etc/shells. This feature can be disabled by setting PKG_REGISTER_SHELLS to NO in /etc/mk.conf. An excerpt from Packages.txt, section 10.28: 10.28 Packages providing login shells ===================================== If the purpose of the package is to provide a login shell, the variable PKG_SHELL should contain the full pathname of the shell executable installed by this package. The package Makefile also must include "../../mk/bsd.pkg.install.mk" prior to the inclusion of bsd.pkg.mk to use the automatically generated INSTALL/DEINSTALL scripts. An example taken from shells/zsh: PKG_SHELL= ${PREFIX}/bin/zsh .include "../../mk/bsd.pkg.install.mk" The shell is registered into /etc/shells file automatically in the post-install target by the INSTALL script generated by bsd.pkg.install.mk and removed in the deinstall target by the DEINSTALL script.
Diffstat (limited to 'mk/bsd.pkg.defaults.mk')
-rw-r--r--mk/bsd.pkg.defaults.mk7
1 files changed, 6 insertions, 1 deletions
diff --git a/mk/bsd.pkg.defaults.mk b/mk/bsd.pkg.defaults.mk
index ee7e476bebf..f2853d1a8d9 100644
--- a/mk/bsd.pkg.defaults.mk
+++ b/mk/bsd.pkg.defaults.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.defaults.mk,v 1.106 2002/11/16 05:26:28 uebayasi Exp $
+# $NetBSD: bsd.pkg.defaults.mk,v 1.107 2002/11/17 08:58:49 salo Exp $
#
# A file providing defaults for pkgsrc and the packages collection.
@@ -66,6 +66,11 @@ PKGSRC_SLEEPSECS?= 5
# Possible: defined, not defined
# Default: not defined
+#PKG_REGISTER_SHELLS= YES
+# Automatically register shells in /etc/shells
+# Possible: YES, NO
+# Default: YES
+
PKGSRC_RUN_TEST?= no
# Run test target before install
# Possible: yes, no