Skip to content

Instantly share code, notes, and snippets.

@swills
Created December 20, 2014 22:33
Show Gist options
  • Save swills/b0e82f844b420c4995ba to your computer and use it in GitHub Desktop.
Save swills/b0e82f844b420c4995ba to your computer and use it in GitHub Desktop.
Index: Makefile
===================================================================
--- Makefile (revision 374938)
+++ Makefile (working copy)
@@ -2,9 +2,10 @@
# $FreeBSD$
PORTNAME= syncthing
-PORTVERSION= 0.10.12
+PORTVERSION= 0.10.13
CATEGORIES= net
-MASTER_SITES= https://github.com/${PORTNAME}/${PORTNAME}/archive/v${PORTVERSION}.tar.gz?dummy=/
+MASTER_SITES= GHR
+DISTVERSIONPREFIX= v
MAINTAINER= swills@FreeBSD.org
COMMENT= Encrypted file sync tool
@@ -11,6 +12,7 @@
BUILD_DEPENDS= ${LOCALBASE}/bin/go:${PORTSDIR}/lang/go
+USE_GITHUB= yes
USE_RC_SUBR= syncthing
PLIST_FILES= bin/syncthing
PORTDOCS= *
@@ -18,6 +20,8 @@
USERS= syncthing
GROUPS= syncthing
+WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
+
STRIP= # stripping can break go binaries
post-patch:
Index: distinfo
===================================================================
--- distinfo (revision 374938)
+++ distinfo (working copy)
@@ -1,2 +1,2 @@
-SHA256 (syncthing-0.10.12.tar.gz) = f575286ee36aa9fb2fd75d3ad04322c9dca15c26a3b5a1a3cba2020fa8844190
-SIZE (syncthing-0.10.12.tar.gz) = 3111221
+SHA256 (syncthing-v0.10.13.tar.gz) = 19d0d72eac7af99714c047677d892559a8d4c96c73ef5ba50a48cec44a03def2
+SIZE (syncthing-v0.10.13.tar.gz) = 3090508
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment