[csw-maintainers] GAR: when the master site is github or similar

Ben Walton bwalton at opencsw.org
Tue Jul 10 20:06:19 CEST 2012


Excerpts from Peter FELECAN's message of Tue Jul 10 13:58:28 -0400 2012:

> Well, maybe for some very small projects I can put the relevant stuff in
> the files directory. What do you think?

If you can avoid it, it'd be better in the long run.  Does your github
project have the 'zip' download link?  I just checked one that I keep
an eye on and found:

https://github.com/karelzak/util-linux/zipball/stable/v2.21


That would break down to:

https://github.com/$(GITHUB_USER)/$(GARNAME)/zipball/$(GITHUB_BRANCH)

If you define the GITHUB_* variables in your recipe, GAR could easily
be extended to have something like:

MASTERSITES += $(GITHUB_SITES)

to match SF_MIRRORS, GNU_MIRRORS, etc that do essentially the same
thing albeit with fewer variables in most cases.

We're going to run into this more and more often, I suspect so it
wouldn't hurt to spend the effort.

Thoughts?

Thanks
-Ben
--
Ben Walton
Systems Programmer - CHASS
University of Toronto
C:416.407.5610 | W:416.978.4302



More information about the maintainers mailing list