Subject: Re: override MASTER_SITES and using local directory
To: Jeremy C. Reed <reed@reedmedia.net>
From: Todd Vierling <tv@duh.org>
List: tech-pkg
Date: 08/25/2005 00:04:54
On Wed, 24 Aug 2005, Jeremy C. Reed wrote:
> Is there any way to override the MASTER_SITES (such as on a one-time basis)
> without editing Makefile?
>
> I'd like to set something like:
> OVERRIDE_MASTER_SITES=ftp://ftp.example.foo/..../distfiles/
>
> Or is there any way to make it always use MASTER_SITE_BACKUP?
For external sites, MASTER_SORT works. I have in my mk.conf:
MASTER_SITE_BACKUP= http://ftp.ale.org/pub/NetBSD/packages/distfiles/ \
ftp://ftp.netbsd.org/pub/NetBSD/packages/distfiles/
followed later by (trimmed to only the relative entries):
MASTER_SORT= ftp.ale.org
which will put ftp.ale.org at the top of the list to try first *always*,
regardless of what the package's MASTER_SITES says.
(Incidentally, I actually have ".duh.org" at the top of my MASTER_SORT,
allowing me to add an internal http server for cached distfiles for machines
other than where the cache lives.)
--
-- Todd Vierling <tv@duh.org> <tv@pobox.com> <todd@vierling.name>