aboutsummaryrefslogtreecommitdiff
path: root/net/syncthing-cli
diff options
context:
space:
mode:
authorMathieu Arnold <mat@FreeBSD.org>2015-05-07 17:26:05 +0000
committerMathieu Arnold <mat@FreeBSD.org>2015-05-07 17:26:05 +0000
commit9d4e763ba0be3ba0f44ce85396e85a1719c06e0a (patch)
treee02c8ff8239303ab6a2e3d529b26e0934364cdcf /net/syncthing-cli
parent390a0c14b8f7b41f0d082c3576347c4858e5d07d (diff)
downloadports-9d4e763ba0be3ba0f44ce85396e85a1719c06e0a.tar.gz
ports-9d4e763ba0be3ba0f44ce85396e85a1719c06e0a.zip
Notes
Diffstat (limited to 'net/syncthing-cli')
-rw-r--r--net/syncthing-cli/Makefile12
-rw-r--r--net/syncthing-cli/distinfo4
2 files changed, 7 insertions, 9 deletions
diff --git a/net/syncthing-cli/Makefile b/net/syncthing-cli/Makefile
index 9d84c0b2a22e..6f45a19eda32 100644
--- a/net/syncthing-cli/Makefile
+++ b/net/syncthing-cli/Makefile
@@ -5,10 +5,10 @@ PORTNAME= syncthing-cli
PORTVERSION= 0.1.0.2015032001
PORTREVISION= 0
CATEGORIES= net
-MASTER_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/archive/${GH_TAGNAME}.tar.gz?dummy=/:group1 \
+MASTER_SITES= GH \
https://github.com/syncthing/syncthing/archive/v${SYNCTHING_VER}.tar.gz?dummy=/:group2 \
https://codeload.github.com/AudriusButkevicius/cli/legacy.tar.gz/7f561c7?dummy=/:group3
-DISTFILES= syncthing-cli-${PORTVERSION}${EXTRACT_SUFX}:group1 \
+DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
syncthing-${SYNCTHING_VER}${EXTRACT_SUFX}:group2 \
AudriusButkevicius-cli-7f561c7${EXTACT_SUFX}:group3
@@ -17,15 +17,13 @@ COMMENT= Syncthing CLI
BUILD_DEPENDS= ${LOCALBASE}/bin/go:${PORTSDIR}/lang/go
+USE_GITHUB= yes
GH_ACCOUNT= syncthing
GH_PROJECT= syncthing-cli
-GH_COMMIT= 144a17a4794470cc61830eeadeb1ad094b90cbde
-GH_TAGNAME= ${GH_COMMIT}
+GH_TAGNAME= 144a17a4794470cc61830eeadeb1ad094b90cbde
SYNCTHING_VER= 0.10.30
-WRKSRC= ${WRKDIR}/syncthing-cli-${GH_COMMIT}
-
PLIST_FILES= bin/syncthing-cli
STRIP= # stripping can break go binaries
@@ -53,7 +51,7 @@ post-patch:
do-build:
@cd ${WRKSRC} ; ${SETENV} GOPATH=${WRKSRC} go build
- @${MV} ${WRKSRC}/syncthing-cli-${GH_COMMIT} ${WRKSRC}/syncthing-cli
+ @${MV} ${WRKSRC}/syncthing-cli-${GH_TAGNAME} ${WRKSRC}/syncthing-cli
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/syncthing-cli ${STAGEDIR}${PREFIX}/bin/
diff --git a/net/syncthing-cli/distinfo b/net/syncthing-cli/distinfo
index 7b7e117191ee..38e99124b5d3 100644
--- a/net/syncthing-cli/distinfo
+++ b/net/syncthing-cli/distinfo
@@ -1,5 +1,5 @@
-SHA256 (syncthing-cli-0.1.0.2015032001.tar.gz) = 089fc9a9a7ceb909cf2722594b83398bba9459062c6028539c1d068a920eb65a
-SIZE (syncthing-cli-0.1.0.2015032001.tar.gz) = 9195
+SHA256 (syncthing-syncthing-cli-0.1.0.2015032001-144a17a4794470cc61830eeadeb1ad094b90cbde_GH0.tar.gz) = 089fc9a9a7ceb909cf2722594b83398bba9459062c6028539c1d068a920eb65a
+SIZE (syncthing-syncthing-cli-0.1.0.2015032001-144a17a4794470cc61830eeadeb1ad094b90cbde_GH0.tar.gz) = 9195
SHA256 (syncthing-0.10.30.tar.gz) = 0358f8b5edacebb0eacfad424e2fbca32587b0747c7f7060c63e961038289880
SIZE (syncthing-0.10.30.tar.gz) = 3029635
SHA256 (AudriusButkevicius-cli-7f561c7) = ad64f151c314333f714ef600f65a4fb512ce7242bc2100074775581a56ad439a