From owner-freebsd-ports@FreeBSD.ORG Tue Feb 5 13:57:21 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 71D9CB83 for ; Tue, 5 Feb 2013 13:57:21 +0000 (UTC) (envelope-from wxs@atarininja.org) Received: from syn.atarininja.org (syn.csh.rit.edu [129.21.49.45]) by mx1.freebsd.org (Postfix) with ESMTP id 518B4A5C for ; Tue, 5 Feb 2013 13:57:20 +0000 (UTC) Received: by syn.atarininja.org (Postfix, from userid 1001) id 187845C3A; Tue, 5 Feb 2013 08:57:20 -0500 (EST) Date: Tue, 5 Feb 2013 08:57:20 -0500 From: Wesley Shields To: Shane Ambler Subject: Re: I need help with git Message-ID: <20130205135720.GB4031@atarininja.org> References: <39A84EC03A29CF90A1609C44@utd71538.campus.ad.utdallas.edu> <511059BB.5000203@ShaneWare.Biz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <511059BB.5000203@ShaneWare.Biz> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: Paul Schmehl , Micheas Herman , FreeBSD Ports List X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Feb 2013 13:57:21 -0000 On Tue, Feb 05, 2013 at 11:30:43AM +1030, Shane Ambler wrote: > > > > >> GH_COMMIT= 4dfdc80 > > > > Probably not needed if you specify a tag other than master. > > >> If I pull master, I get commit f57e464. That's not what I want. > >> Why doesn't this thing pull the commit I'm telling it to pull? > > I think the thing most people miss here is that GH_COMMIT doesn't > effect what gets downloaded, it's not used like an svn rev number > - it is only used to define WRKSRC > > When a github tarball gets extracted GH_COMMIT is part of the dir name. > > Which is why it is mandatory and needs to match the tag. It is just > needed to work with the way github creates tarballs. It is inconvenient > but github is only setup to let you download tarballs of specific tags > not specific commits. If the main devs don't tag the specific points you > want the only option is to fork and create your own tags. I don't know if we have a way to express this in the ports framework but you absolutely can grab a tarball of a repo at any specific commit on github even if it is not tagged. This is the URL to grab ironbee/libhtp at 234fd5bab1225e483ea263a5a15faebed0bd61b9: https://github.com/ironbee/libhtp/archive/234fd5bab1225e483ea263a5a15faebed0bd61b9.tar.gz -- WXS