Subject: Accessing a local distfiles directory?
To: None <tech-pkg@netbsd.org>
From: Simon Burge <simonb@telstra.com.au>
List: tech-pkg
Date: 10/13/1998 13:59:44
[ I hope this is a tech-pkg and not a current-users question ]

I'd like to have the package system get files from a local NetBSD mirror
site that lives inside our nice little firewalled-off corporate network.
The mirror read-only NFS exports it's ftp area, so I can mount that from
any NetBSD boxes I have.  What I'd like to do is get the package system
to look in the local directory /ftp/pub/NetBSD/package/distfiles (which
seems to contain that source for just about all the packages I want).
Just creating a symlink from /usr/pkgsrc/distfiles to the right area
didn't work - it still wanted to get the files from an FTP site.

I've fudged things for now by pointing MASTER_SITE_BACKUP and
MASTER_SITE_LOCAL to the local mirror and it'll happily grab the bits
and pieces from there, but since I can NFS mount the stuff I may as well
not duplicate it (/usr/pkgsrc and /ftp are mounted off the same machine
anyway :-).

Looking through /usr/pkgsrc/mk/* and the tech-pkg archives didn't give
any obvious clues.  Any ideas?

Simon.