Subject: Different sites for different distfiles, was Re: Packages with
To: David Brownlee <abs@netbsd.org>
From: Frederick Bruckman <fredb@immanent.net>
List: tech-pkg
Date: 12/28/2001 09:11:09
On Fri, 28 Dec 2001, David Brownlee wrote:

> 	OK - I have it all working based on this, but I'd like to
> 	revert to putting MASTER_SITES_DYNAMIC being a YES/NO and put
> 	the site data in getsites.sh - this would allow for a different
> 	'DYNAMIC_MASTER_SITES_URI' to be used for each DISTFILE.

Sounds reasonable, unless...

It would be a good thing, in general, to be able to specify different
URI's for different distfiles, with everything falling back to
MASTER_SITE_BACKUP. The present thing, where we hammer every site for
every file, even ones we know aren't there, makes me feel like a bad
netizen. I noticed that the FreeBSD imported Makefile for "rsynth"
defined SUPPL_SITES_1, SUPPL_SITES_2. I doubt that that ever worked on
NetBSD, but it's prior art.

We could just define MASTER_SITES_1, MASTER_SITES_2, MASTER_SITES_3, to
be matched with DISTFILES_1, DISTFILES_2, DISTFILES_3, respectively. I
doubt that we'd ever need more than three, and if a package ever did, it
would be easy to follow the pattern to add one (or two, or three).

Frederick