Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Jan 2013 22:33:54 +0000 (UTC)
From:      Adam Weinberger <adamw@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r310906 - head/Mk
Message-ID:  <201301232233.r0NMXs5A079590@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adamw
Date: Wed Jan 23 22:33:53 2013
New Revision: 310906
URL: http://svnweb.freebsd.org/changeset/ports/310906

Log:
  GitHub is such a nightmare for distfile fetching.
  
  I added a comment showing an easy way to fetch a distfile from GitHub.
  Using this method, you don't need to track the 7-digit commit at all.
  In fact, the distfile name and its contents behave like a normal, sane
  distfile would.

Modified:
  head/Mk/bsd.sites.mk

Modified: head/Mk/bsd.sites.mk
==============================================================================
--- head/Mk/bsd.sites.mk	Wed Jan 23 22:20:00 2013	(r310905)
+++ head/Mk/bsd.sites.mk	Wed Jan 23 22:33:53 2013	(r310906)
@@ -530,6 +530,13 @@ GH_PROJECT?=	${PORTNAME}
 GH_TAGNAME?=	${DISTVERSION}
 .endif
 .endif
+#
+# Another way to simplify distfile fetching from GitHub, eliminating the need
+# to track 7-digit commits for each distfile, is to use the following:
+# 
+# MASTER_SITES=	https://github.com/GH_ACCOUNT/${PORTNAME}/archive/${DISTVERSION}.tar.gz?dummy=/
+# FETCH_ARGS=	-prR
+#
 
 .if !defined(IGNORE_MASTER_SITE_GNOME)
 MASTER_SITE_GNOME+= \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201301232233.r0NMXs5A079590>