Subject: Re: Packages with dynamic download sites
To: Frederick Bruckman <fredb@immanent.net>
From: David Brownlee <abs@netbsd.org>
List: tech-pkg
Date: 12/28/2001 12:41:56
On Fri, 21 Dec 2001, Frederick Bruckman wrote:
> On Fri, 21 Dec 2001, David Brownlee wrote:
>
> > Thanks! - rather than try the getsites.sh for every package would
> > it be reasonable to have a DYNAMIC_MASTER_SITES variable which
> > could be set to point to the package specific 'MASTER_SITES'
> > outputting script?
>
> I was thinking something like that myself. I was leaning towards
> passing the uri (${DYNAMIC_MASTER_SITES_URI}, or so) and ${DISTFILES}
> to the script through it's environment, and triggering an alternative
> to that whole block of shell code on `.ifdef DYNAMIC_MASTER_SITES_URI',
> even though only the "sites" line is different, rather than doing the
> switch within the shell code. That all still assumes that the script
> gets a reserved name, like "patch-*", "distinfo" are reserved names.
>
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.
--
David/absolute -- www.netbsd.org: No hype required --