Subject: CVS commit: pkgsrc/mk
To: None <pkgsrc-changes@netbsd.org>
From: Johnny C. Lam <jlam@netbsd.org>
List: pkgsrc-changes
Date: 11/26/2001 22:37:39
Module Name:	pkgsrc
Committed By:	jlam
Date:		Mon Nov 26 20:37:39 UTC 2001

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

Log Message:
Replace PKG_{USER,GROUP} with PKG_USERS and PKG_GROUPS:

PKG_USERS represents the users to create for the package.  It is a
	space-separated list of elements of the form

		user:group[:[userid][:[descr][:[home][:shell]]]]

	Only the user and group are required; everything else is optional,
	but the colons must be in the right places when specifying optional
	bits.  Note that if the description contains spaces, then spaces
	should be double backslash-escaped, e.g.

		foo:foogrp::The\\ Foomister

PKG_GROUPS represents the groups to create for the package.  It is a
	space-separated list of elements of the form

		group[:groupid]

	Only the group is required; the groupid is optional.

This solves the problem of what to do when there is more than one user or
group needed for a package, e.g. qmail.  Also add a bit more error-checking
to the INSTALL/DEINSTALL scripts.


To generate a diff of this commit:
cvs rdiff -r1.6 -r1.7 pkgsrc/mk/bsd.pkg.install.mk
cvs rdiff -r1.7 -r1.8 pkgsrc/mk/install/deinstall
cvs rdiff -r1.5 -r1.6 pkgsrc/mk/install/header
cvs rdiff -r1.4 -r1.5 pkgsrc/mk/install/install

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