Subject: CVS commit: pkgsrc/mk
To: None <pkgsrc-changes@NetBSD.org>
From: Johnny C. Lam <jlam@netbsd.org>
List: pkgsrc-changes
Date: 01/23/2005 20:45:22
Module Name:	pkgsrc
Committed By:	jlam
Date:		Sun Jan 23 20:45:22 UTC 2005

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

Log Message:
Rework the way that packages are registered during a "make install".  We
split the fake-pkg target into three smaller pieces:

pre-install-fake-pkg - Create files in ${WRKSRC}/.pkgdb meant to be
	installed into ${PKG_DBDIR}/${PKGNAME} that don't depend on
	the installed files.

post-install-fake-pkg - Create files in ${WRKSRC}/.pkgdb meant to be
	installed into ${PKG_DBDIR}/${PKGNAME} that may depend on the
	installed files.

register-pkg - Copy the files in ${WRKSRC}/.pkgdb and create a few
	additional meta-files in ${PKG_DBDIR}/${PKGNAME}.

The idea is that ${WRKSRC}/.pkgdb contains as much of the state as
possible that will be copied into ${PKG_DBDIR}/${PKGNAME}.

The INSTALL and DEINSTALL scripts generated by bsd.pkg.install.mk are
now invoked with ${WRKSRC}/.pkgdb as the working directory, so the
scripts may use the working directory to store temporary files,
regardless of whether they're invoked from bsd.pkg.mk or by pkg_add.


To generate a diff of this commit:
cvs rdiff -r1.69 -r1.70 pkgsrc/mk/bsd.pkg.install.mk
cvs rdiff -r1.1564 -r1.1565 pkgsrc/mk/bsd.pkg.mk

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