aboutsummaryrefslogtreecommitdiffstats
path: root/net/syncthing
diff options
context:
space:
mode:
authorswills <swills@FreeBSD.org>2014-11-04 09:59:37 +0800
committerswills <swills@FreeBSD.org>2014-11-04 09:59:37 +0800
commit6993bfbaf687f7fc74fc81659b822f884f86bbad (patch)
tree99e0ae67cfe8db4684e3ccd3ab596d32322b0475 /net/syncthing
parent92136d3d25fecaa612c7881db1071710e2c1abb9 (diff)
downloadfreebsd-ports-gnome-6993bfbaf687f7fc74fc81659b822f884f86bbad.tar.gz
freebsd-ports-gnome-6993bfbaf687f7fc74fc81659b822f884f86bbad.tar.zst
freebsd-ports-gnome-6993bfbaf687f7fc74fc81659b822f884f86bbad.zip
net/syncthing: update to 0.10.4
Diffstat (limited to 'net/syncthing')
-rw-r--r--net/syncthing/Makefile20
-rw-r--r--net/syncthing/distinfo4
-rw-r--r--net/syncthing/files/patch-build.go30
3 files changed, 34 insertions, 20 deletions
diff --git a/net/syncthing/Makefile b/net/syncthing/Makefile
index 237514e387df..a9a9aa6e47e9 100644
--- a/net/syncthing/Makefile
+++ b/net/syncthing/Makefile
@@ -2,11 +2,9 @@
# $FreeBSD$
PORTNAME= syncthing
-PORTVERSION= 0.10.1
-PORTREVISION= 1
+PORTVERSION= 0.10.4
CATEGORIES= net
MASTER_SITES= https://github.com/${PORTNAME}/${PORTNAME}/archive/v${PORTVERSION}.tar.gz?dummy=/
-DISTNAME= ${PORTNAME}-${PORTVERSION}
MAINTAINER= swills@FreeBSD.org
COMMENT= Encrypted file sync tool
@@ -21,20 +19,22 @@ USERS= syncthing
GROUPS= syncthing
post-patch:
- cd ${WRKSRC} ; ${MKDIR} src/github.com/${PORTNAME}/${PORTNAME} ; \
- ${MV} .gitignore CONTRIBUTING.md CONTRIBUTORS Godeps LICENSE \
- README.md assets build.go build.sh check-contrib.sh cmd gui \
- internal protocol test src/github.com/${PORTNAME}/${PORTNAME}
+ @cd ${WRKSRC} ; ${MKDIR} src/github.com/${PORTNAME}/${PORTNAME} ; \
+ ${MV} CONTRIBUTORS Godeps LICENSE README.md build.go build.sh \
+ assets cmd gui internal protocol src/github.com/${PORTNAME}/${PORTNAME}
do-build:
# timestamp here refers to source, not build time
- cd ${WRKSRC}/src/github.com/${PORTNAME}/${PORTNAME} ; ${SETENV} GOPATH=${WRKSRC} go run build.go
+ cd ${WRKSRC}/src/github.com/${PORTNAME}/${PORTNAME} ; \
+ ${SETENV} GOPATH=${WRKSRC} go run build.go
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/src/github.com/${PORTNAME}/${PORTNAME}/bin/syncthing ${STAGEDIR}${PREFIX}/bin/
+ ${INSTALL_PROGRAM} ${WRKSRC}/src/github.com/${PORTNAME}/${PORTNAME}/bin/syncthing \
+ ${STAGEDIR}${PREFIX}/bin/
${MKDIR} ${STAGEDIR}${DOCSDIR}
.for x in CONTRIBUTORS LICENSE README.md
- ${INSTALL_MAN} ${WRKSRC}/src/github.com/${PORTNAME}/${PORTNAME}/${x} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_MAN} ${WRKSRC}/src/github.com/${PORTNAME}/${PORTNAME}/${x} \
+ ${STAGEDIR}${DOCSDIR}
.endfor
.include <bsd.port.mk>
diff --git a/net/syncthing/distinfo b/net/syncthing/distinfo
index 62c73794e895..f47bc21fe5bf 100644
--- a/net/syncthing/distinfo
+++ b/net/syncthing/distinfo
@@ -1,2 +1,2 @@
-SHA256 (syncthing-0.10.1.tar.gz) = 464a8459c097b6a8dcf67454ecaf2b49e9570cb7a41ec38752cbf9b06cf7d68f
-SIZE (syncthing-0.10.1.tar.gz) = 2954077
+SHA256 (syncthing-0.10.4.tar.gz) = aff9a358fd9021254afc5c8ec1fd92618eadf622c9dba240666ff41abba3ec00
+SIZE (syncthing-0.10.4.tar.gz) = 2996470
diff --git a/net/syncthing/files/patch-build.go b/net/syncthing/files/patch-build.go
index 5e1a923be4b2..92e5db778da6 100644
--- a/net/syncthing/files/patch-build.go
+++ b/net/syncthing/files/patch-build.go
@@ -1,23 +1,37 @@
---- build.go.orig 2014-10-10 03:17:54.000000000 +0000
-+++ build.go 2014-10-10 03:21:21.000000000 +0000
-@@ -299,18 +299,11 @@
+--- build.go.orig 2014-10-24 08:27:14.000000000 +0000
++++ build.go 2014-10-25 12:42:18.706050568 +0000
+@@ -35,7 +35,6 @@
+ "runtime"
+ "strconv"
+ "strings"
+- "time"
+ )
+
+ var (
+@@ -302,24 +301,11 @@
}
- func version() string {
-- v := run("git", "describe", "--always", "--dirty")
+ func getVersion() string {
+- v, err := runError("git", "describe", "--always", "--dirty")
+- if err != nil {
+- return "unknown-dev"
+- }
- v = versionRe.ReplaceAllFunc(v, func(s []byte) []byte {
- s[0] = '+'
- return s
- })
- return string(v)
-+ return string("v0.10.1")
++ return string("v0.10.4")
}
func buildStamp() int64 {
-- bs := run("git", "show", "-s", "--format=%ct")
+- bs, err := runError("git", "show", "-s", "--format=%ct")
+- if err != nil {
+- return time.Now().Unix()
+- }
- s, _ := strconv.ParseInt(string(bs), 10, 64)
- return s
-+ return 1413115780
++ return 1414418716
}
func buildUser() string {