From owner-freebsd-ports@FreeBSD.ORG Tue Jul 31 16:59:42 2012 Return-Path: Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B80FA1065670 for ; Tue, 31 Jul 2012 16:59:42 +0000 (UTC) (envelope-from bryan@shatow.net) Received: from secure.xzibition.com (secure.xzibition.com [173.160.118.92]) by mx1.freebsd.org (Postfix) with ESMTP id 5DE988FC17 for ; Tue, 31 Jul 2012 16:59:42 +0000 (UTC) DomainKey-Signature: a=rsa-sha1; c=nofws; d=shatow.net; h=message-id :date:from:mime-version:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; q=dns; s=sweb; b=bL7mJC yoI1Zx+AHzaidhoBAPbiz4e73JacJR27tYoxgoTqkVho+F5tgB5cHc6JqmP1Ep4I lGk1xDfD3nC556ktQlVm9pSwn3H7dGcf8rk/JMHi7lndld2YQLsg7gcWYQi8sDPc UJl33c3JTGBFRkFASSw8/SuspOVBAPfkfb2QM= DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=shatow.net; h=message-id :date:from:mime-version:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; s=sweb; bh=rj/do9WN8EOp mxNB3RHm2cU9ws9Kxs60BTgXWc4RqJ8=; b=QRrOd9uJ0OdqIZ8LAORrm3MNwMcu VTP5XdxRQVp6LHTivok/ESsrx05fL5gTZVaHvSxlEEanmK0Zf9+pb86BgeWfVkfL fBkdVXrkfae1BY01KIAkMUPnlhHEuaszm2Pc90BME8jgAFxgMtwaR4uE8sBnFq44 s/aT9mqQKRM/ynI= Received: (qmail 70424 invoked from network); 31 Jul 2012 11:59:41 -0500 Received: from unknown (HELO ?192.168.0.74?) (bryan@shatow.net@74.94.87.209) by sweb.xzibition.com with ESMTPA; 31 Jul 2012 11:59:41 -0500 Message-ID: <50180F04.3070708@shatow.net> Date: Tue, 31 Jul 2012 11:59:48 -0500 From: Bryan Drewery User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Gecko/20120713 Thunderbird/14.0 MIME-Version: 1.0 References: <5011B9C2.6070700@aldan.algebra.com> <48C4313E-F1FA-4428-83C1-FFEC14F28B9D@shatow.net> <5011F708.1010501@aldan.algebra.com> In-Reply-To: <5011F708.1010501@aldan.algebra.com> X-Enigmail-Version: 1.4.3 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: "freebsd-ports@FreeBSD.ORG" Subject: Re: How to fetch files from GitHub? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Jul 2012 16:59:42 -0000 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