From owner-freebsd-ports@FreeBSD.ORG Wed Jun 17 02:10:00 2015 Return-Path: Delivered-To: freebsd-ports@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C896A8EE for ; Wed, 17 Jun 2015 02:10:00 +0000 (UTC) (envelope-from jbeich@vfemail.net) Received: from vfemail.net (ninezero.vfemail.net [96.30.253.190]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8A635B89 for ; Wed, 17 Jun 2015 02:09:59 +0000 (UTC) (envelope-from jbeich@vfemail.net) Received: (qmail 7496 invoked by uid 89); 17 Jun 2015 02:09:50 -0000 Received: from localhost (HELO freequeue.vfemail.net) (127.0.0.1) by localhost with (DHE-RSA-AES256-SHA encrypted) SMTP; 17 Jun 2015 02:09:50 -0000 Received: (qmail 7449 invoked by uid 89); 17 Jun 2015 02:09:33 -0000 Received: by simscan 1.3.1 ppid: 7441, pid: 7445, t: 0.1017s scanners:none Received: from unknown (HELO smtp102-2.vfemail.net) (172.16.100.62) by FreeQueue with SMTP; 17 Jun 2015 02:09:33 -0000 Received: (qmail 23504 invoked by uid 89); 17 Jun 2015 02:09:33 -0000 Received: by simscan 1.4.0 ppid: 23480, pid: 23492, t: 0.4165s scanners:none Received: from unknown (HELO nil) (amJlaWNoQHZmZW1haWwubmV0@172.16.100.27) by 172.16.100.62 with ESMTPA; 17 Jun 2015 02:09:32 -0000 From: Jan Beich To: kpneal@pobox.com Cc: freebsd-ports@freebsd.org, Xin Li , d@delphij.net Subject: Re: Any ports that download whole trees with git? References: <20150616233346.GA42565@neutralgood.org> <5580B750.9000108@delphij.net> Date: Wed, 17 Jun 2015 04:09:29 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Jun 2015 02:10:00 -0000 (a few points on top of Xin's) Xin Li writes: > On 06/16/15 16:33, kpneal@pobox.com wrote: > >> Are there any ports that download entire source trees using git? Fetching over VCS without generating intermediate distfile would bypass our mirroring infrastructure. Also, the package cluster uses distfile cache to speed up build on many release/architecture combinations. >> I'm looking at doing a port, but the only source for the source is >> a tree in git. Are there any examples I can crib from? > > You would have to export the tree and upload it to somewhere that can > host it if it's not already done by the Git service provider. To maintain consistency in distfile naming/contents and help yourself snapshot generation is probably better be automated. See devel/llvm-devel or www/calendarserver as examples though they're for subversion. > For instance, services like github already have download services when > a tag or SHA1 hash is specified, see code blocks related to USE_GITHUB > in ports/Mk/bsd.sites.mk for additional details. Keep in mind such a service should generate distfile with consistent checksum. It's not rare when checksum varies due to volatile timestamps of the files within (e.g. android.googlesource.com). GitHub is well-supported, so creating a mirror there can be an option if you have nowhere to host a snapshot. You'd only need to sync or re-create the mirror when updating the port. ------------------------------------------------- ONLY AT VFEmail! - Use our Metadata Mitigator to keep your email out of the NSA's hands! $24.95 ONETIME Lifetime accounts with Privacy Features! 15GB disk! No bandwidth quotas! Commercial and Bulk Mail Options!