Ade Lovett <a...@freebsd.org> wrote:
> 
> 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 ;)

That was my first thought but then I thought I first present the idea.
A lot more is possible such as adding other search engines. Develop
some optional "quality feedback" mechanism for maintainers having ports
that required a distfile to be looked up.

Also, the script pulls in a lot of p5- dependencies. Makeing the actual
script a port and have ports/Mk/* provide the necessary hooks could be
a solution.

Emanuel

_______________________________________________
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"

Reply via email to