Date: Tue, 31 Jul 2012 11:59:48 -0500 From: Bryan Drewery <bryan@shatow.net> Cc: "freebsd-ports@FreeBSD.ORG" <freebsd-ports@FreeBSD.ORG> Subject: Re: How to fetch files from GitHub? Message-ID: <50180F04.3070708@shatow.net> In-Reply-To: <5011F708.1010501@aldan.algebra.com> References: <5011B9C2.6070700@aldan.algebra.com> <48C4313E-F1FA-4428-83C1-FFEC14F28B9D@shatow.net> <5011F708.1010501@aldan.algebra.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 7/26/2012 9:03 PM, Mikhail T. wrote: > On 26.07.2012 19:41, Bryan Drewery wrote: >> Check out ports-mgmt/portupgrade-devel for an example. >> >> It uses a known hash, but you can use tags as well. > Thanks for the pointer! Yes, that's it... The port uses a separate > variable (GITVERSION) instead of just calling it DISTVERSION -- no > doubt, to appease portlint, which complains, when DISTVERSION and > PORTVERSION are specified at the same time. This work-around > necessitates two extra lines in the Makefile without being otherwise > useful... > > I think, I'll just call the hash "DISTVERSION" and also explicitly set > the PORTVERSION -- to 0.20120726. (The 0.-prefix may help in the future, > when the upstream finally release version 1.0 :-) > >> You'll need to override FETCH_ARGS as seen there too. > Yes, that works, thank you! > > -mi I should mention that github forces https/ssl usage. Not all users have SSL support compiled in. So it's a good idea to add a fallback mirror as well. -- Regards, Bryan Drewery bdrewery@freenode/EFNet
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?50180F04.3070708>