Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Sep 2011 16:26:58 +0100
From:      Shaun Amott <shaun@FreeBSD.org>
To:        "Klaus T. Aehlig" <aehlig@linta.de>
Cc:        Lev Serebryakov <lev@FreeBSD.org>, freebsd-ports@FreeBSD.org
Subject:   Re: [RFC] New ports idea: github / gitorious / bitbucket direct support.
Message-ID:  <20110909152657.GA76229@charon.picobyte.net>
In-Reply-To: <20110909140542.GB71621@kta1c10.sesnet.soton.ac.uk>
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>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110909152657.GA76229>