Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Aug 2014 02:22:02 +0000 (UTC)
From:      Steve Wills <swills@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r364880 - in head/net: . syncthing-cli syncthing-cli/files
Message-ID:  <201408150222.s7F2M2a8054159@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: swills
Date: Fri Aug 15 02:22:01 2014
New Revision: 364880
URL: http://svnweb.freebsd.org/changeset/ports/364880
QAT: https://qat.redports.org/buildarchive/r364880/

Log:
  net/syncthing-cli: add command line interface to syncthing

Added:
  head/net/syncthing-cli/
  head/net/syncthing-cli/Makefile   (contents, props changed)
  head/net/syncthing-cli/distinfo   (contents, props changed)
  head/net/syncthing-cli/files/
  head/net/syncthing-cli/files/patch-cmd_options.go   (contents, props changed)
  head/net/syncthing-cli/pkg-descr   (contents, props changed)
Modified:
  head/net/Makefile

Modified: head/net/Makefile
==============================================================================
--- head/net/Makefile	Fri Aug 15 02:03:52 2014	(r364879)
+++ head/net/Makefile	Fri Aug 15 02:22:01 2014	(r364880)
@@ -1151,6 +1151,7 @@
     SUBDIR += sup
     SUBDIR += svnup
     SUBDIR += syncthing
+    SUBDIR += syncthing-cli
     SUBDIR += tableutil
     SUBDIR += tac_plus-libradius
     SUBDIR += tac_plus4

Added: head/net/syncthing-cli/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/syncthing-cli/Makefile	Fri Aug 15 02:22:01 2014	(r364880)
@@ -0,0 +1,60 @@
+# Created by: Steve Wills <swills@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME=	syncthing-cli
+PORTVERSION=	0.0.0.2014081401
+CATEGORIES=	net
+MASTER_SITES=	https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/archive/${GH_TAGNAME}.tar.gz?dummy=/:group1 \
+		https://codeload.github.com/AudriusButkevicius/cli/legacy.tar.gz/7f561c7?dummy=/:group2 \
+		https://github.com/syncthing/syncthing/archive/v0.9.4.tar.gz?dummy=/:group3 \
+		LOCAL/swills:group4 \
+		LOCAL/swills:group5 \
+		https://codeload.github.com/bkaradzic/go-lz4/legacy.tar.gz/77e2ba8?dummy=/:group6 \
+		https://codeload.github.com/calmh/xdr/legacy.tar.gz/e1714bb?dummy=/:group7
+DISTFILES=	syncthing-cli-0.0.0.2014081401.tar.gz:group1 \
+		AudriusButkevicius-cli-7f561c7${EXTACT_SUFX}:group2 \
+		syncthing-0.9.4${EXTRACT_SUFX}:group3 \
+		crypto.go-f3cebac2bd11${EXTRACT_SUFX}:group4 \
+		text.go-d65bffbc88a1${EXTRACT_SUFX}:group5 \
+		bkaradzic-go-lz4-77e2ba8${EXTRACT_SUFX}:group6 \
+		calmh-xdr-e1714bb${EXTRACT_SUFX}:group7
+
+MAINTAINER=	swills@FreeBSD.org
+COMMENT=	Syncthing CLI
+
+BUILD_DEPENDS=	${LOCALBASE}/bin/go:${PORTSDIR}/lang/go
+
+GH_ACCOUNT=	syncthing
+GH_PROJECT=	syncthing-cli
+GH_COMMIT=	7dab84f
+GH_TAGNAME=	${GH_COMMIT}
+
+WRKSRC=		${WRKDIR}/${PORTNAME}-7dab84f6edfbd873c5addac1c564fa1f64d0ff29
+
+PLIST_FILES=	bin/syncthing-cli
+
+post-patch:
+	cd ${WRKSRC} ; \
+		${MKDIR} src/github.com/AudriusButkevicius ; \
+		${MKDIR} src/github.com/syncthing/syncthing ; \
+		${MKDIR} src/github.com/bkaradzic ; \
+		${MKDIR} src/github.com/calmh ; \
+		${MKDIR} src/code.google.com/p ; \
+		${MV} ${WRKDIR}/AudriusButkevicius-cli-7f561c7 src/github.com/AudriusButkevicius/cli ; \
+		${MV} ${WRKDIR}/syncthing-0.9.4/config src/github.com/syncthing/syncthing/config ; \
+		${MV} ${WRKDIR}/syncthing-0.9.4/protocol src/github.com/syncthing/syncthing/protocol ; \
+		${MV} ${WRKDIR}/crypto.go-f3cebac2bd11 src/code.google.com/p/go.crypto ; \
+		${MV} ${WRKDIR}/text.go-d65bffbc88a1/ src/code.google.com/p/go.text ; \
+		${MV} ${WRKDIR}/bkaradzic-go-lz4-77e2ba8 src/github.com/bkaradzic/go-lz4 ; \
+		${MV} ${WRKDIR}/syncthing-0.9.4/logger src/github.com/syncthing/syncthing ; \
+		${MV} ${WRKDIR}/syncthing-0.9.4/luhn src/github.com/syncthing/syncthing ; \
+		${MV} ${WRKDIR}/calmh-xdr-e1714bb src/github.com/calmh/xdr
+
+do-build:
+	cd ${WRKSRC} ; ${SETENV} GOPATH=${WRKSRC} go build
+	${MV} ${WRKSRC}/syncthing-cli-7dab84f6edfbd873c5addac1c564fa1f64d0ff29 ${WRKSRC}/syncthing-cli
+
+do-install:
+	${INSTALL_PROGRAM} ${WRKSRC}/syncthing-cli ${STAGEDIR}${PREFIX}/bin/
+
+.include <bsd.port.mk>

Added: head/net/syncthing-cli/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/syncthing-cli/distinfo	Fri Aug 15 02:22:01 2014	(r364880)
@@ -0,0 +1,14 @@
+SHA256 (syncthing-cli-0.0.0.2014081401.tar.gz) = 556ae864df96dc1a1987a43ddd0d1552a7b269f6a763a7f8dd11cede4030e742
+SIZE (syncthing-cli-0.0.0.2014081401.tar.gz) = 8308
+SHA256 (AudriusButkevicius-cli-7f561c7) = ad64f151c314333f714ef600f65a4fb512ce7242bc2100074775581a56ad439a
+SIZE (AudriusButkevicius-cli-7f561c7) = 14736
+SHA256 (syncthing-0.9.4.tar.gz) = e1cfbc3055ca26662d9f3664bd236357f84f6523360cc2aa4c3e83fcd74fcfad
+SIZE (syncthing-0.9.4.tar.gz) = 1814400
+SHA256 (crypto.go-f3cebac2bd11.tar.gz) = 9de8c02f5f4b29db4ec31e772acc5b2b75323d5a20f58bfadfe1d10300256f37
+SIZE (crypto.go-f3cebac2bd11.tar.gz) = 326871
+SHA256 (text.go-d65bffbc88a1.tar.gz) = 5b87e4dddc48c363bf190982a0d229ed5c9b57793ae4ec68004dc1c2f2a31309
+SIZE (text.go-d65bffbc88a1.tar.gz) = 3231005
+SHA256 (bkaradzic-go-lz4-77e2ba8.tar.gz) = 8d6a3f73bb2e21a64292d14af1a8466707c14f71b70d48fde317746cd2ac8d0e
+SIZE (bkaradzic-go-lz4-77e2ba8.tar.gz) = 232876
+SHA256 (calmh-xdr-e1714bb.tar.gz) = 354133594fc70dac499a44ffd6d857f1f730345f8db3d07def4e38daec5ec791
+SIZE (calmh-xdr-e1714bb.tar.gz) = 9250

Added: head/net/syncthing-cli/files/patch-cmd_options.go
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/syncthing-cli/files/patch-cmd_options.go	Fri Aug 15 02:22:01 2014	(r364880)
@@ -0,0 +1,28 @@
+--- cmd_options.go.orig	2014-08-14 20:00:24.000000000 +0000
++++ cmd_options.go	2014-08-14 20:00:35.000000000 +0000
+@@ -46,7 +46,6 @@
+ 	fmt.Fprintln(writer, "Local discovery port:\t", cfg.LocalAnnPort, "\t(localannport)")
+ 
+ 	fmt.Fprintln(writer, "Maximum outstanding requests:\t", cfg.ParallelRequests, "\t(requests)")
+-	fmt.Fprintln(writer, "Maximum file change rate in KiB/s:\t", cfg.MaxChangeKbps, "\t(maxchange)")
+ 	fmt.Fprintln(writer, "Outgoing rate limit in KiB/s:\t", cfg.MaxSendKbps, "\t(maxsend)")
+ 	fmt.Fprintln(writer, "Rescan interval in seconds:\t", cfg.RescanIntervalS, "\t(rescan)")
+ 	fmt.Fprintln(writer, "Reconnect interval in seconds:\t", cfg.ReconnectIntervalS, "\t(reconnect)")
+@@ -85,8 +84,6 @@
+ 		fmt.Println(cfg.ParallelRequests)
+ 	case "maxsend":
+ 		fmt.Println(cfg.MaxSendKbps)
+-	case "maxchange":
+-		fmt.Println(cfg.MaxChangeKbps)
+ 	case "rescan":
+ 		fmt.Println(cfg.RescanIntervalS)
+ 	case "reconnect":
+@@ -134,8 +131,6 @@
+ 		config.Options.ParallelRequests = parseUint(val)
+ 	case "maxsend":
+ 		config.Options.MaxSendKbps = parseUint(val)
+-	case "maxchange":
+-		config.Options.MaxChangeKbps = parseUint(val)
+ 	case "rescan":
+ 		config.Options.RescanIntervalS = parseUint(val)
+ 	case "reconnect":

Added: head/net/syncthing-cli/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/syncthing-cli/pkg-descr	Fri Aug 15 02:22:01 2014	(r364880)
@@ -0,0 +1,3 @@
+Command line interface to syncthing
+
+WWW: http://syncthing.net/



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