[RFC] New ports idea: github / gitorious / bitbucket direct support.

Shaun Amott shaun at FreeBSD.org
Fri Sep 9 15:45:11 UTC 2011


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?
> 
> Yes. But for good reasons, Mk/bsd.ports.mk contains the line
> 
> FETCH_ARGS?=    -AFpr
> 
> 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.

-- 
Shaun Amott // PGP: 0x6B387A9A
"A foolish consistency is the hobgoblin
of little minds." - Ralph Waldo Emerson
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20110909/a4e0cf63/attachment.pgp


More information about the freebsd-ports mailing list