MASTER_SITE_OVERRIDE

Boris Samorodov bsam at ipt.ru
Wed Mar 28 10:44:09 EDT 2007


On Wed, 28 Mar 2007 15:52:14 +1000 Alexander Logvinov wrote:

>   Sorry for stupid question but how can I set MASTER_SITE_OVERRIDE for every build? 
>   build.env with "export MASTER_SITE_OVERRIDE=http://host/distfiles/$(DIST_SUBDIR)/" line helps, but it doesn't recognize $(DIST_SUBDIR) of course. Is there any way of doing this without creating /etc/make.conf?

May be that helps:
$ cat portstree.env 
export MASTER_SITE_BACKUP="ftp://srv.sem.ipt.ru/pub/FreeBSD/ports/distfiles/${DIST_SUBDIR}/ ftp://ftp.ipt.ru/pub/FreeBSD/ports/distfiles/${DIST_SUBDIR}/ ftp://tinderbox.amd64.ipt.ru/pub/FreeBSD/ports/distfiles/${DIST_SUBDIR}/ ftp://ftp.ipt.ru/pub/download/"
export MASTER_SITE_OVERRIDE="${MASTER_SITE_BACKUP}"

And the result at the log file:
-----
====================<phase 1: make checksum>====================
=> cogito-0.17.2.tar.bz2 doesn't seem to exist in /tmp/distfiles/.
=> Attempting to fetch from file:///distcache//.
fetch: file:///distcache//cogito-0.17.2.tar.bz2: No such file or directory
=> Attempting to fetch from ftp://srv.sem.ipt.ru/pub/FreeBSD/ports/distfiles//.
fetch: ftp://srv.sem.ipt.ru/pub/FreeBSD/ports/distfiles//cogito-0.17.2.tar.bz2: File unavailable (e.g., file not found, no access)
=> Attempting to fetch from ftp://ftp.ipt.ru/pub/FreeBSD/ports/distfiles//.
fetch: ftp://ftp.ipt.ru/pub/FreeBSD/ports/distfiles//cogito-0.17.2.tar.bz2: File unavailable (e.g., file not found, no access)
=> Attempting to fetch from ftp://tinderbox.amd64.ipt.ru/pub/FreeBSD/ports/distfiles//.
fetch: ftp://tinderbox.amd64.ipt.ru/pub/FreeBSD/ports/distfiles//cogito-0.17.2.tar.bz2: File unavailable (e.g., file not found, no access)
=> Attempting to fetch from ftp://ftp.ipt.ru/pub/download/.
fetch: ftp://ftp.ipt.ru/pub/download/cogito-0.17.2.tar.bz2: File unavailable (e.g., file not found, no access)
=> Attempting to fetch from http://www.kernel.org/pub/software/scm/cogito/.
cogito-0.17.2.tar.bz2                                   93 kB   71 kBps
=> MD5 Checksum OK for cogito-0.17.2.tar.bz2.
=> SHA256 Checksum OK for cogito-0.17.2.tar.bz2.
-----

WBR
-- 
Boris Samorodov (bsam)
Research Engineer, http://www.ipt.ru Telephone & Internet SP
FreeBSD committer, http://www.FreeBSD.org The Power To Serve


More information about the tinderbox-list mailing list