Subject: Re: CVS commit: pkgsrc
To: None <agc@netbsd.org>
From: Simon Burge <simonb@netbsd.org>
List: tech-pkg
Date: 08/22/1999 17:52:36
"Alistair G. Crooks" wrote:

> Module Name:	pkgsrc
> Committed By:	agc
> Date:		Wed Jul 28 10:14:57 UTC 1999
> 
> Modified Files:
> 
> 	pkgsrc/mk: mk.conf.example
> 
> Log Message:
> 
> Document the DIST_PATH definition which accidentally got committed
> yesterday.
> 
> #DIST_PATH=    /cdrom/0/distfiles:${HOME}/distfiles
> 
> (DIST_PATH allows multiple directories for distfiles to be defined,
> although distfiles will still be downloaded into DISTDIR.  For
> example, this allows a CD to be used as a basic repository for
> distfiles, with additional distfiles to be found in other directories,
> and, if the distfile is not found in any of these, it will be
> downloaded into DISTDIR.  A symbolic link is created in DISTDIR,
> pointing to the local distfile.)

Is it possible to extend this so that DISTDIR doesn't need to be
written to (for the symlink)?  My machines read-only nfs mount a
mirror of ftp.netbsd.org - it'd be great to say:

	DISTDIR=/ftp/pub/NetBSD/packages/distfiles
	DIST_PATH=${DISTDIR}/LOCAL_PORTS:/some/other/dir

in mk.conf.

I couldn't see a simple way of doing this looking at bsd.pkg.mk.

Simon.