From owner-freebsd-ports@FreeBSD.ORG Thu Jul 22 18:11:20 2010 Return-Path: Delivered-To: ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5F1691065672; Thu, 22 Jul 2010 18:11:20 +0000 (UTC) (envelope-from ehaupt@FreeBSD.org) Received: from mx.critical.ch (cl-8.zrh-02.ch.sixxs.net [IPv6:2001:1620:f00:7::2]) by mx1.freebsd.org (Postfix) with ESMTP id E70128FC15; Thu, 22 Jul 2010 18:11:19 +0000 (UTC) Received: from beaver.home.critical.ch (80-218-148-45.dclient.hispeed.ch [80.218.148.45]) (authenticated bits=0) by mx.critical.ch (8.14.3/8.14.3/critical-1.0) with ESMTP id o6MIBIlL055423; Thu, 22 Jul 2010 20:11:19 +0200 (CEST) (envelope-from ehaupt@FreeBSD.org) Date: Thu, 22 Jul 2010 20:11:15 +0200 From: Emanuel Haupt To: Ade Lovett 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> X-Mailer: Sylpheed 3.0.3 (GTK+ 2.20.1; amd64-portbld-freebsd8.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: ports@FreeBSD.org Subject: Re: MASTER_SITE defined by google search result X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jul 2010 18:11:20 -0000 Ade Lovett 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