Date: Thu, 22 Jul 2010 20:11:15 +0200 From: Emanuel Haupt <ehaupt@FreeBSD.org> To: Ade Lovett <ade@FreeBSD.org> Cc: ports@FreeBSD.org Subject: Re: MASTER_SITE defined by google search result Message-ID: <20100722201115.db8184a5.ehaupt@FreeBSD.org> In-Reply-To: <28ED498D-30A4-4F5D-8EF7-232FDB97DE0B@FreeBSD.org> References: <20100722121731.34b47a2a.ehaupt@FreeBSD.org> <20100722153230.GA97685@libertas.local.camdensoftware.com> <28ED498D-30A4-4F5D-8EF7-232FDB97DE0B@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Ade Lovett <ade@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100722201115.db8184a5.ehaupt>