Subject: Re: correct override for MASTER_SITES?
To: None <current-users@NetBSD.ORG>
From: Matthias Scheler <tron@lyssa.owl.de>
List: current-users
Date: 03/07/1998 19:42:36
In article <199803071752.MAA29812@ghost.whirlpool.com>,
	Andrew Gillham <gillhaa@ghost.whirlpool.com> writes:
> What is the correct way to override MASTER_SITES in /etc/mk.conf?

Don't override it, ...

> I have a local ftp server with all of pkgsrc/distfiles, ...

... use a special fetch script. Mine looks like this:

tron@lyssa:~>cat $FETCH_CMD 
#!/bin/sh
FTPDIRS="/ftp/pub/unix /ftp/cdrom/*"
. /etc/proxy

for URL
do
 FILENAME=`basename $URL`
 LOCAL=`find $FTPDIRS -type f -name $FILENAME | head -1`
 if [ "$LOCAL" = "" ]
 then
  /usr/bin/ftp $URL
 else
  echo "Using local file \"$LOCAL\"."
  ln -s $LOCAL
 fi
done

-- 
Matthias Scheler                                http://home.owl.de/~tron/