MASTER_SITE defined by google search result
Ade Lovett
ade at FreeBSD.org
Thu Jul 22 16:55:29 UTC 2010
On Jul 22, 2010, at 10:32 , Chip Camden wrote:
> Quoth Emanuel Haupt on Thursday, 22 July 2010:
>>
>> http://people.freebsd.org/~ehaupt/distfile-search/distfile-search
>>
>> Adding the following make magic to /etc/make.conf
>>
>> # distfile search
>> .if defined(DISTFILE_SEARCH_BACKUP)
>> pre-fetch-script:
>> MASTER_SITE_BACKUP+= `/root/bin/distfile-search ${ALLFILES}`
>> .elif defined(DISTFILE_SEARCH_OVERRIDE)
>> pre-fetch-script:
>> MASTER_SITE_OVERRIDE= `/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
More information about the freebsd-ports
mailing list