Date: Wed, 17 Jun 2015 04:09:29 +0200 From: Jan Beich <jbeich@vfemail.net> To: kpneal@pobox.com Cc: freebsd-ports@freebsd.org, Xin Li <delphij@delphij.net>, d@delphij.net Subject: Re: Any ports that download whole trees with git? Message-ID: <a8vz-dr1i-wny@vfemail.net> References: <20150616233346.GA42565@neutralgood.org> <5580B750.9000108@delphij.net>
next in thread | previous in thread | raw e-mail | index | archive | help
(a few points on top of Xin's) Xin Li <delphij@delphij.net> 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!
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?a8vz-dr1i-wny>