From owner-freebsd-ports@FreeBSD.ORG Fri Sep 9 15:45:11 2011 Return-Path: Delivered-To: freebsd-ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D75DD1065670; Fri, 9 Sep 2011 15:45:11 +0000 (UTC) (envelope-from shaun@FreeBSD.org) Received: from alpha.inerd.com (alpha.inerd.com [204.109.56.118]) by mx1.freebsd.org (Postfix) with ESMTP id AA4A68FC14; Fri, 9 Sep 2011 15:45:11 +0000 (UTC) Received: from charon.picobyte.net (localhost [127.0.0.1]) by alpha.inerd.com (Postfix) with ESMTP id 57B97147CD7; Fri, 9 Sep 2011 15:26:57 +0000 (UTC) Date: Fri, 9 Sep 2011 16:26:58 +0100 From: Shaun Amott To: "Klaus T. Aehlig" Message-ID: <20110909152657.GA76229@charon.picobyte.net> References: <765103585.20110909143052@serebryakov.spb.ru> <20110909130458.GO31003@azathoth.lan> <20110909132437.GA66311@kta1c10.sesnet.soton.ac.uk> <151147912.20110909175747@serebryakov.spb.ru> <20110909140542.GB71621@kta1c10.sesnet.soton.ac.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="NzB8fVQJ5HfG6fxh" Content-Disposition: inline In-Reply-To: <20110909140542.GB71621@kta1c10.sesnet.soton.ac.uk> User-Agent: Mutt/1.5.20 (FreeBSD i386) Cc: Lev Serebryakov , freebsd-ports@FreeBSD.org Subject: Re: [RFC] New ports idea: github / gitorious / bitbucket direct support. 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, 09 Sep 2011 15:45:11 -0000 --NzB8fVQJ5HfG6fxh Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Sep 09, 2011 at 03:05:42PM +0100, Klaus T. Aehlig wrote: > > > * due to autogeneration, you're quite likely to get a http-redirect, > > Does fetch support redirects? >=20 > Yes. But for good reasons, Mk/bsd.ports.mk contains the line >=20 > FETCH_ARGS?=3D -AFpr >=20 > Note the -A. Of course, it's no problem to make an exception for github, = but > at least, one should be aware of this. The redirect is often avoidable if you can determine the final URL of the distfile. Github only uses a single hostname for tarball downloads, so there is no issue with maintaining a list of mirrors. Until recently, github required two requests to get a tarball: one to initiate the tarball creation, the other to download it. I was able to work around this in one of my ports, but the hack is no longer needed. --=20 Shaun Amott // PGP: 0x6B387A9A "A foolish consistency is the hobgoblin of little minds." - Ralph Waldo Emerson --NzB8fVQJ5HfG6fxh Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAk5qMEEACgkQkmhdCGs4epqwtwCfQyqLPp16gbHM/RCHLeWr96xw KnwAn3mWga5g/GJMRRNBL+LEWTPSiYfc =CBzv -----END PGP SIGNATURE----- --NzB8fVQJ5HfG6fxh--