Delivering .tar.gz from Github tags
Please note that githubredir is nowadays considered to be obsolete. Github now provides a clean way to query for the tags: A human-facing interface:
And a more machine-oriented interface:
A suitable debian/watch for this project would be:
In a not too distant future, this service will be no longer provided.
There is quite a bit of software whose upstream authors decide that, as they are already using Git for development, the main distribution channel should be GitHub - This allows, yes, for quite a bit of flexibility, which many authors have taken advantage of.
Specifically, what does this redirector make? Given that GitHub allows for downloading as a .zip or as a .tar.gz any given commit, it suddenly becomes enough to git tag with a version number, and GitHub magically makes that version available for download. Which is sweet!
Sometimes it is a bit problematic, though, to follow their format. Github gives a listing of the tags for each particular prooject, and each of those tags has a download page, with both archiving formats.
I won't go into too much detail here - Thing is, going over several pages becomes painful for Debian's uscan, widely used for various of our QA processes. There are other implemented redirectors, such as the one used for SourceForge.
This redirector is mainly meant to be consumed by uscan. Anybody who finds this system useful can freely use it, although you might be better served by the rich, official GitHub.com interface. If source code is your thing, grab the source here.
Get the GitHub project name and the author you want to follow. And just create a simple URL:
That means, if you want to track, say, mislav's excellent will_paginate Ruby library:
But, of course, you want to include it in your debian/watch, right? Ok, so, again for Mislav's will_paginate:
version=3 http://githubredir.debian.net/github/mislav/will_paginate/ (.*).tar.gz
Please note tags can follow just about any format - I am using (.*) as a simple pattern. You might need some more stuff if the project's author is more... Baroque? :-}
For any further questions regarding this script, please contact Gunnar Wolf.