Subject: CVS commit: pkgsrc/mk
To: None <>
From: Frederick Bruckman <>
List: pkgsrc-changes
Date: 01/06/2002 22:03:24
Module Name:	pkgsrc
Committed By:	fredb
Date:		Sun Jan  6 20:03:24 UTC 2002

Modified Files:

Log Message:
Re-work the fetch target(s), as discussed on "tech-pkg". The primary
motivation is to make the order that sites are hit more sane, and
especially to prevent hitting sites that aren't ever expected to have
the sought after file.

Now, ${MASTER_SITE_OVERRIDE} is always hit first. If that fails, then
the sites designated for that file, then ${MASTER_SITE_BACKUP}, are hit
(by default), but with the order subject to ${MASTER_SORT_REGEX} and
${MASTER_SORT_AWK}. The "designated sites" are usually ${MASTER_SITES}
for files in ${DISTFILES}, and ${PATCH_SITES} for files in ${PATCH_FILES}.
However, defining a variable `${SITES_foo}' in the package "Makefile"
overrides that for file "foo". [The use of ${MASTER_SITES_foo} and
${PATCH_SITES_foo}, which is currently only used by a couple of packages
for the same purpose, is deprecated, and will be shortly unsupported.]

Also eliminate redundancy in the do-fetch and fetch-list-one-pkg targets,
by making them use a single, common macro (escaped with `:Q' in the
fetch-list-one-pkg case), so "make fetch-list-one-pkg | sh" now does
exactly the same thing as "make do-fetch".

To generate a diff of this commit:
cvs rdiff -r1.894 -r1.895 pkgsrc/mk/

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