diff options
author | salo <salo@pkgsrc.org> | 2002-11-17 08:58:49 +0000 |
---|---|---|
committer | salo <salo@pkgsrc.org> | 2002-11-17 08:58:49 +0000 |
commit | 1fde293f32677222b26f56dfb47daa804eca44a0 (patch) | |
tree | 3e155d5246ed236de0b61794dce3b642fff4045a /mk/bsd.pkg.install.mk | |
parent | ce99281f43679c6be322687c35f85d16217f630d (diff) | |
download | pkgsrc-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.install.mk')
-rw-r--r-- | mk/bsd.pkg.install.mk | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/mk/bsd.pkg.install.mk b/mk/bsd.pkg.install.mk index 69a4a125784..bebf84a57df 100644 --- a/mk/bsd.pkg.install.mk +++ b/mk/bsd.pkg.install.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.install.mk,v 1.38 2002/10/23 17:43:16 jlam Exp $ +# $NetBSD: bsd.pkg.install.mk,v 1.39 2002/11/17 08:58:50 salo Exp $ # # This Makefile fragment is included by package Makefiles to use the common # INSTALL/DEINSTALL scripts. To use this Makefile fragment, simply: @@ -213,6 +213,17 @@ FILES_SUBST+= PKG_CREATE_USERGROUP=${PKG_CREATE_USERGROUP} FILES_SUBST+= PKG_CONFIG=${PKG_CONFIG} FILES_SUBST+= PKG_RCD_SCRIPTS=${PKG_RCD_SCRIPTS} +# PKG_REGISTER_SHELLS indicates whether to automatically register shells +# in /etc/shells. It is either YES or NO and defaults to YES. +# +# PKG_SHELL contains the full pathname of the shell being installed. +# + +PKG_REGISTER_SHELLS?= YES +PKG_SHELL?= # empty +FILES_SUBST+= PKG_REGISTER_SHELLS=${PKG_REGISTER_SHELLS} +FILES_SUBST+= PKG_SHELL=${PKG_SHELL:Q} + # Substitute for various programs used in the DEINSTALL/INSTALL scripts and # in the rc.d scripts. # |