Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Jul 2010 11:55:26 -0500
From:      Ade Lovett <ade@FreeBSD.org>
To:        ports@FreeBSD.org
Subject:   Re: MASTER_SITE defined by google search result
Message-ID:  <28ED498D-30A4-4F5D-8EF7-232FDB97DE0B@FreeBSD.org>
In-Reply-To: <20100722153230.GA97685@libertas.local.camdensoftware.com>
References:  <20100722121731.34b47a2a.ehaupt@FreeBSD.org> <20100722153230.GA97685@libertas.local.camdensoftware.com>

next in thread | previous in thread | raw e-mail | index | archive | help

On Jul 22, 2010, at 10:32 , Chip Camden wrote:

> Quoth Emanuel Haupt on Thursday, 22 July 2010:
>>=20
>> http://people.freebsd.org/~ehaupt/distfile-search/distfile-search
>>=20
>> Adding the following make magic to /etc/make.conf
>>=20
>> # distfile search
>> .if defined(DISTFILE_SEARCH_BACKUP)
>> pre-fetch-script:
>> MASTER_SITE_BACKUP+=3D    `/root/bin/distfile-search ${ALLFILES}`
>> .elif defined(DISTFILE_SEARCH_OVERRIDE)
>> pre-fetch-script:
>> MASTER_SITE_OVERRIDE=3D   `/root/bin/distfile-search ${ALLFILES}`
>> .endif

This is likely worthy of a bit of cleanup, adding the code somewhere =
under ports/Tools/scripts, finding a suitable usage variable, and =
hooking it into bsd.port.mk  (or bsd.fetch.mk, whenever someone[tm]) =
gets around to splitting out all the fetching stuff from bsd.port.mk ;)

-aDe




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?28ED498D-30A4-4F5D-8EF7-232FDB97DE0B>