Subject: CVS commit: pkgsrc/mk
To: None <pkgsrc-changes@NetBSD.org>
From: Johnny C. Lam <jlam@netbsd.org>
List: pkgsrc-changes
Date: 08/19/2005 22:24:10
Module Name:	pkgsrc
Committed By:	jlam
Date:		Fri Aug 19 22:24:10 UTC 2005

Modified Files:
	pkgsrc/mk: bsd.pkg.check.mk
	pkgsrc/mk/install: bsd.pkginstall.mk deinstall dirs files header
	    install shell usergroup

Log Message:
Define new variables for package Makefile use:

	REQD_FILES, REQD_FILES_PERMS, REQD_FILES_MODE
	REQD_DIRS, REQD_DIRS_PERMS

These are the same as the CONF_* variables, except the files and
directories listed in REQD_* are always copied over, created or removed
(taking into account if there are user modifications from the originals,
etc.) regardless of the value of PKG_CONFIG.

The implementation involved pushing the knowledge of PKG_CONFIG,
PKG_RCD_SCRIPTS, PKG_CREATE_USERGROUP, and PKG_REGISTER_SHELLS into
the individual helper scripts.  The helper scripts are now always
invoked by the +INSTALL and +DEINSTALL scripts.  The +DIRS and +FILES
script have been enhanced to understand a new "f" flag that means
"force" to ignore the value of PKG_CONFIG and PKG_RCD_SCRIPTS.

Lastly, the +FILES script has been taught a new "r" flag just for rc.d
scripts and the +RCD_SCRIPTS script is now unnecessary.


To generate a diff of this commit:
cvs rdiff -r1.11 -r1.12 pkgsrc/mk/bsd.pkg.check.mk
cvs rdiff -r1.11 -r1.12 pkgsrc/mk/install/bsd.pkginstall.mk
cvs rdiff -r1.35 -r1.36 pkgsrc/mk/install/deinstall
cvs rdiff -r1.7 -r1.8 pkgsrc/mk/install/dirs pkgsrc/mk/install/files
cvs rdiff -r1.33 -r1.34 pkgsrc/mk/install/header
cvs rdiff -r1.40 -r1.41 pkgsrc/mk/install/install
cvs rdiff -r1.1 -r1.2 pkgsrc/mk/install/shell
cvs rdiff -r1.9 -r1.10 pkgsrc/mk/install/usergroup

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