Subject: CVS commit: pkgsrc/mk
To: None <pkgsrc-changes@netbsd.org>
From: Lubomir Sedlacik <salo@netbsd.org>
List: pkgsrc-changes
Date: 11/17/2002 10:58:51
Module Name:	pkgsrc
Committed By:	salo
Date:		Sun Nov 17 08:58:51 UTC 2002

Modified Files:
	pkgsrc/mk: bsd.pkg.defaults.mk bsd.pkg.install.mk
	pkgsrc/mk/install: deinstall header install

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -r1.106 -r1.107 pkgsrc/mk/bsd.pkg.defaults.mk
cvs rdiff -r1.38 -r1.39 pkgsrc/mk/bsd.pkg.install.mk
cvs rdiff -r1.14 -r1.15 pkgsrc/mk/install/deinstall
cvs rdiff -r1.16 -r1.17 pkgsrc/mk/install/header pkgsrc/mk/install/install

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.