svn commit: r310906 - head/Mk

Adam Weinberger adamw at FreeBSD.org
Wed Jan 23 22:33:54 UTC 2013


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+= \


More information about the svn-ports-head mailing list