Subject: CVS commit: pkgsrc/pkgtools/pbulk/files/pbulk/scripts
To: None <pkgsrc-changes@NetBSD.org>
From: Roland Illig <rillig@netbsd.org>
List: pkgsrc-changes
Date: 09/21/2007 13:42:55
Module Name:	pkgsrc
Committed By:	rillig
Date:		Fri Sep 21 13:42:55 UTC 2007

Modified Files:
	pkgsrc/pkgtools/pbulk/files/pbulk/scripts: client-clean pkg-build
	    pre-build

Log Message:
Removed code duplication by calling the client-clean script.

Before removing prefix, fix the permissions. Everything inside that
directory must be writable and all directories must be searchable.
NetBSD's chmod has an option -P which I would have liked to use, but
POSIX requires only -R to be implemented. Therefore, it is possible that
permissions of files outside the prefix are changed due to symlinks.

The client-clean program promises to clean $prefix, so fail if that is
not possible. A common cause for this is that some files inside have
their flags set (see chflags(1) on NetBSD).

When installing the bootstrap kit, the source may be either a regular
file (which is then assumed to be a tar archive) or a directory (which
is copied directly). The latter option is new and allows for easier
changes of files once the bulk build has started.


To generate a diff of this commit:
cvs rdiff -r1.3 -r1.4 pkgsrc/pkgtools/pbulk/files/pbulk/scripts/client-clean \
    pkgsrc/pkgtools/pbulk/files/pbulk/scripts/pre-build
cvs rdiff -r1.6 -r1.7 pkgsrc/pkgtools/pbulk/files/pbulk/scripts/pkg-build

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