Subject: CVS commit: pkgsrc/mk
To: None <pkgsrc-changes@netbsd.org>
From: Alistair G. Crooks <agc@netbsd.org>
List: pkgsrc-changes
Date: 03/04/2002 13:56:56
Module Name:	pkgsrc
Committed By:	agc
Date:		Mon Mar  4 11:56:55 UTC 2002

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

Log Message:
Add two new EXPERIMENTAL targets:

replace - this target updates a package in place, fixing up references
to and from other packages to the updated package.

undo-replace - undoes all the work of the previous replace operation.
For this target to work, the ${WRKDIR} must be preserved.

The replace target first makes a binary package of the existing
installed package, then a copy of the +REQUIRED_BY file is taken, if
it exists, and then the existing package is deleted.  The new package
is installed, and the preserved +REQUIRED_BY file is copied back into
place, using its contents to modify the +CONTENTS files of all the
packages which require it.  The undo-replace shares code with the
replace target, and does the same operation, but in reverse.

Warnings are displayed when either of these targets is used, since
they are experimental targets right now.


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

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