Subject: Re: pkgsrc/distfiles retreivement from local /opt/ftp/pub/NetBSD/packages/distfiles..?
To: User Noud <noud@knot.nl>
From: None <mcmahill@mtl.mit.edu>
List: tech-pkg
Date: 08/10/2000 09:10:12
quoting from /usr/pkgsrc/mk/mk.conf.example:


#DISTDIR=       ${PKGSRCDIR}/distfiles
# Directory where original distribution
# files are stored.
# Possible: any path you like
# Default: /usr/pkgsrc/distfiles

#DIST_PATH=     /cdrom/0/distfiles:${HOME}/distfiles
# colon-delimited list of directories in which to search for
# ${DISTFILES} and ${PATCHFILES}.  If the requested file is not in any
# of the directories in ${DIST_PATH}, it will be downloaded into
# ${DISTDIR}.  If the requested file is in one of the directories in
# ${DIST_PATH}, a symbolic link will be made to it from ${DISTDIR}. 
# ${DIST_PATH} directories will will be searched before ${DISTDIR},
# letting a CD hold the main distfiles archive, and local ${DISTDIR}
# hold any updated distfiles, for example.
# Possible:  any directories
# Default: none


so it looks like the right thing to do is in /etc/mk.conf:

DIST_PATH=	/opt/ftp/pub/NetBSD/packages/distfiles


-Dan

On Thu, 10 Aug 2000, User Noud wrote:

> hi all, question again..
> 
> i have a large collection of *.tar.gz's in
> /opt/ftp/pub/NetBSD/packages/distfiles
> 
> i edit /usr/pkgsrc/mk/bsd.pkg.mk this way:
> 
> --- bsd.pkg.mk  Thu Aug 10 05:20:07 2000
> +++ bsd.pkg.mk.new      Thu Aug 10 05:19:51 2000
> @@ -555,6 +555,8 @@
>  
>  # The primary backup site.
>  MASTER_SITE_BACKUP?=   \
> +       ftp://localhost/pub/NetBSD/packages/distfiles/${DIST_SUBDIR}/ \
> +       ftp://localhost/pub/NetBSD/packages/distfiles/NOUD_PORTS/ \
>         ftp://ftp.netbsd.org/pub/NetBSD/packages/distfiles/${DIST_SUBDIR}/ \
>         ftp://ftp.freebsd.org/pub/FreeBSD/distfiles/${DIST_SUBDIR}/
>  
> dev# 
> 
> deattach the network cable and build a few /usr/pkgsrc/meta-pkgs,
> using some pkg-tar.gz's i mirror in my /opt/ftp.
> 
> how do i get the same effect w/o deattaching the networkcable,
> nor edit my routing table, my name server or use squid/squirm ??
> is there some defined thingy in /usr/pkgsrc/mk?
> 
> (i'm not regular on these lists, an e-mail responce to me as well would be
> nice)
> thanx,
> ~n
>