How to fetch files from GitHub?
Bryan Drewery
bryan at shatow.net
Tue Jul 31 16:59:42 UTC 2012
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 at freenode/EFNet
More information about the freebsd-ports
mailing list