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 21:57:38
Module Name:	pkgsrc
Committed By:	jlam
Date:		Sun Jan 23 21:57:38 UTC 2005

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

Log Message:
Rearrange the register-pkg and post-install-fake-pkg code.  All of
the meta-data files are generated and stored in ${PKG_DB_TMPDIR} by
the *-install-fake-pkg targets, and then all of the contents of that
directory are simply copied into ${PKG_DBDIR}/${PKGNAME} by register-pkg.

This is intended to make (DE)INSTALL scripts be more powerful.
Currently, they have no way to keep state on their own.  Now, they
can keep state in the current working directory.  When invoked by
pkg_add(1), the current working directory is ${PKG_DBDIR}/${PKGNAME},
so the state files are already stored in the correct place.  When
invoked by bsd.pkg.mk, the current working directory is ${PKG_DB_TMPDIR},
and any state files generated by the (DE)INSTALL scripts are copied
into the correct place by the register-pkg target.


To generate a diff of this commit:
cvs rdiff -r1.1565 -r1.1566 pkgsrc/mk/bsd.pkg.mk

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