From owner-freebsd-ports@FreeBSD.ORG Fri Jul 23 17:51:36 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 D1886106566C for ; Fri, 23 Jul 2010 17:51:36 +0000 (UTC) (envelope-from shaun@FreeBSD.org) Received: from dione.picobyte.net (81-86-230-94.dsl.pipex.com [81.86.230.94]) by mx1.freebsd.org (Postfix) with SMTP id 58F6D8FC0C for ; Fri, 23 Jul 2010 17:51:35 +0000 (UTC) Received: from charon.picobyte.net (charon.picobyte.net [IPv6:2001:770:15d::fe03]) by dione.picobyte.net (Postfix) with ESMTP id AD9AFB839; Fri, 23 Jul 2010 18:46:19 +0100 (BST) Date: Fri, 23 Jul 2010 18:46:19 +0100 From: Shaun Amott To: Emanuel Haupt Message-ID: <20100723174618.GA80046@charon.picobyte.net> References: <20100722121731.34b47a2a.ehaupt@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <20100722121731.34b47a2a.ehaupt@FreeBSD.org> User-Agent: Mutt/1.5.20 (FreeBSD i386) 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: Fri, 23 Jul 2010 17:51:36 -0000 On Thu, Jul 22, 2010 at 12:17:31PM +0200, Emanuel Haupt wrote: > > Usually when I find that a port can't fetch the according distfile I > simply google for the distfile with the following search string (e.g. > for rsync): > > intitle:"index of" rsync-3.0.7.tar.gz > > This approach almost always delivers plenty of results. I then manually > download one of the results into my DISTDIR and restart the normal > build process which then automatically takes care of the integrity > (checksum, size) of the distfile(s). > > I thought, why not automate this and I came up with a simple perl > script (requires www/p5-Google-Search): > > http://people.freebsd.org/~ehaupt/distfile-search/distfile-search > Very cool and wonderfully efficient! One possible enhancement might be to also (conditionally?) search for the size from distinfo; this is particularly useful when dealing with distfiles which lack a version number. -- Shaun Amott // PGP: 0x6B387A9A "A foolish consistency is the hobgoblin of little minds." - Ralph Waldo Emerson