From owner-freebsd-ports@FreeBSD.ORG Thu Jul 26 23:41:40 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 CB6B1106564A for ; Thu, 26 Jul 2012 23:41:40 +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 726288FC08 for ; Thu, 26 Jul 2012 23:41:40 +0000 (UTC) DomainKey-Signature: a=rsa-sha1; c=nofws; d=shatow.net; h=references :in-reply-to:mime-version:content-transfer-encoding:content-type :message-id:cc:from:subject:date:to; q=dns; s=sweb; b=jEWt4ZWRW9 KCK+XfjKWlkm1ef4BRp02/3YeVMaGyRDVEDqaaAIIkIX5qioLfEpZRywqfI9LjIG Kx7El1OLGXlrLYRyycSARY9IEbOg5c9j5NHRS5QW+eZK6aVLcjzhDeZbyfOT1uk9 26A/GKFPPt1UEcPXHeI6jHrvxBw7YpPy0= DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=shatow.net; h=references :in-reply-to:mime-version:content-transfer-encoding:content-type :message-id:cc:from:subject:date:to; s=sweb; bh=gxFNYa86/TtaLFIM W0aeg60ZjZlf2eQ0l8oHgO9xH00=; b=2x9K2WxmZh6zWP3I4tP0/hkfmrJjNYVF b8lnemB76BKgQ0p2gSZ2NTCswKqmL+3GZOKL0N/+rcS80taUD0d5xYrOg7w9+MBY TOKjo/gCFIRLsH+8gUTMsINFbRquyAY1FNezIzQXSpOTZziElWaSF7N5MPxbZqgt qJF+v050LRE= Received: (qmail 95031 invoked from network); 26 Jul 2012 18:41:33 -0500 Received: from unknown (HELO ?10.10.0.124?) (bryan@shatow.net@10.10.0.124) by sweb.xzibition.com with ESMTPA; 26 Jul 2012 18:41:33 -0500 References: <5011B9C2.6070700@aldan.algebra.com> In-Reply-To: <5011B9C2.6070700@aldan.algebra.com> Mime-Version: 1.0 (1.0) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Message-Id: <48C4313E-F1FA-4428-83C1-FFEC14F28B9D@shatow.net> X-Mailer: iPhone Mail (9B206) From: Bryan Drewery Date: Thu, 26 Jul 2012 18:41:31 -0500 To: "Mikhail T." 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: Thu, 26 Jul 2012 23:41:40 -0000 On Jul 26, 2012, at 16:42, "Mikhail T." wrote: > Hello! >=20 > I've created a port of bittorrent-libutp -- a piece of software, that has n= ot been officially "released" yet. It is in use by a number of other project= s (like net-p2p/transmission/). The not-yet-committed port can be found at: >=20 > http://aldan.algebra.com/~mi/port-stuff/libutp.shar >=20 > The vendor's code is hosted on GitHub, which allows downloading the entire= directory as a single tarball. However, to download sources as of particula= r date/time, one has to use a hash of the version one cares for. >=20 > For example, the current version's tag is d4685a3. If you attempt to downl= oad the tar.gz from the https://github.com/bittorrent/libutp/downloads, you w= ill get a file named: bittorrent-libutp-d4685a3.tar.gz. >=20 > Setting MASTER_SITES to https://github.com/bittorrent/libutp/tarball/d4685= a3/ works, but the download is a redirect... >=20 > The port builds fine, but has two nasty problems: >=20 > 1. The DISTVERSION being simply the first 7 characters of some hash will n= ot be > sequential -- the next release of the sources may have a hash, that will= > sort below the current one, necessitating an ugly PORT_EPOCH bump. The > PORTVERSION ends up being "d4685.a3", which is not at all useful, but > forcing one's own PORTVERSION (something like 0.20120726) is not allowed= ... > 2. Fetching the code requires forceful removal of the -A option from fetch= (1)'s > arguments. >=20 > Would anyone care to play with the port as posted and offer suggestions on= how to best resolve the two problems (other than hosting the tarball on my o= wn)? Check out ports-mgmt/portupgrade-devel for an example. It uses a known hash, but you can use tags as well. You'll need to override = FETCH_ARGS as seen there too. >=20 > Thanks! Yours, >=20 > -mi Regards, Bryan Drewery=20 >=20 > _______________________________________________ > freebsd-ports@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org"