Subject: Re: Accessing a local distfiles directory?
To: Simon Burge <>
From: Markus Illenseer <>
List: tech-pkg
Date: 10/13/1998 06:40:30
> [ I hope this is a tech-pkg and not a current-users question ]

 It's fine here.

> 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.

 Can you NFS-mount the remote directory /ftp/pub/NetBSD/package/distfiles
to the local directory /usr/pkgsrc/distfiles? If you have mounted the
directory somewhere else already, try a "mount -t null /somehwere/distfiles
/usr/pkgsrc/distfiles" instead.

 This must work - unless a package is missing, and it works for me.
A symlink is probably a bad idea. When /usr/pkgsrc/distfiles/ is filled
with files, it must work fine.
Markus Illenseer
NetBSD 1.3.2 CD-ROM "Gateway! Vol. 3" now shipping!  See: