summaryrefslogtreecommitdiff
path: root/net-p2p/syncthing
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2019-06-02 21:45:28 +0100
committerV3n3RiX <venerix@redcorelinux.org>2019-06-02 21:45:28 +0100
commit2018227e9344edb9da15fc6a4a8298086cc2aa77 (patch)
treec18e1c09e605e94e2a1e93345ad25746cc9e14b9 /net-p2p/syncthing
parent6f8038813c460b4f0572d5ef595cdfa94af3a94d (diff)
gentoo resync : 02.06.2019
Diffstat (limited to 'net-p2p/syncthing')
-rw-r--r--net-p2p/syncthing/Manifest7
-rw-r--r--net-p2p/syncthing/files/stdiscosrv.confd3
-rw-r--r--net-p2p/syncthing/files/stdiscosrv.initd30
-rw-r--r--net-p2p/syncthing/files/stdiscosrv.logrotate6
-rw-r--r--net-p2p/syncthing/files/stdiscosrv.service17
-rw-r--r--net-p2p/syncthing/syncthing-1.1.0-r1.ebuild163
-rw-r--r--net-p2p/syncthing/syncthing-1.1.3.ebuild163
7 files changed, 389 insertions, 0 deletions
diff --git a/net-p2p/syncthing/Manifest b/net-p2p/syncthing/Manifest
index 585d5961c494..a5852ef797a7 100644
--- a/net-p2p/syncthing/Manifest
+++ b/net-p2p/syncthing/Manifest
@@ -1,3 +1,7 @@
+AUX stdiscosrv.confd 107 BLAKE2B 8bf3beb78bac5a50cf4b036dcbc9e43106e9a6d52193dab63f80d1c0575f376061b72eb331199c4be14037b572a06aeddcfca6fc9c0e3e13a4ef26ae967b0095 SHA512 1bdbc7a4d86c6286b6859916e13de8fb196874ca5f27829bce586481a9bda535758f627890ab78b0a1e7eebf30ef209b9433a75ea60a4a69c3f18e2afbd0feed
+AUX stdiscosrv.initd 730 BLAKE2B 55d60be02d28b8c995105d0f68ece809b0fc1c5314ed6eb1c3a926f2d2a7a5b3edff7d096fcb6dc3d79224ffa888f0c23834872427c26bb162ce3609037abc5a SHA512 a854aa0655803b7f15571d774514125fe3e97dea8da8d449ac4768edb86a4e57840e2c83bbf4d6fc0c0a9a26b8eeb6dd3e2648dd415e33c3ef1f4f1438e98517
+AUX stdiscosrv.logrotate 102 BLAKE2B c4670214a411fdc0ccfabcc0b1f7692e910cb0b2f465006b61d9f67f3ab1a41bc72fb831d2a261efeedfb585a774c1659bc3c8b2183582ce6a329390a2cc70a0 SHA512 cef815a68906851a594214a9bc8a437591b4928c02fdb2fa982898d51b2cc2cd083f2a6093830a5319f1b4d7ab446f3f31a6831fa1ae946c6bdf149afb1dd539
+AUX stdiscosrv.service 304 BLAKE2B 2caaeb4ca9e3cf2cd202b4d3542d7069697cfa057759ef12e387c08e3e3c72d349dffe52ffe1fa6b369045d829c3688c8f2ecfe866379a49f00bf0391c2f8ff3 SHA512 2d12e4de4675d0ef3bb5f55d5c393b223531bec5d0b4d6f752be3f90b82e93a31db899dea5ee954d727d8a535e46047be6547ae30528052c371993d264c22582
AUX strelaysrv.confd 107 BLAKE2B d7a8bf341826c8e3f343d8e39a1e527e8284695fb51324546452c2f5ce8d78034d5e7145a28fc08fff9443af37e263b243f2fe4c580b01a979a6409f0c0c93ee SHA512 67ca4b8a1c9197e0d5876073ccc89d34866e493c66f7691716f1f2b81defd74a79e7aeae9ce42d852e9cb32d7f0df4ffb43b53ae61ec1b4944e63cc0b470e9c5
AUX strelaysrv.initd 729 BLAKE2B 5a9d55a604604ff1d8ade89ece5a1ff29d75f882a431e06f7f926cd457d1e3db0eebd90c336a848d254de9571385d0ba577a97687809b36fdd0ece301e857c26 SHA512 364ff18453da1a3a76a5bec26403728872ea5f8c551762ac7c091293cd76e01bf9e2fa100dcedf12004e84b5a023e556b713b0e9db0f540062cb4a44562b02e0
AUX strelaysrv.logrotate 102 BLAKE2B 3d19a7dcade5878e7b7f275572ab2d5232ea3d043b720fa17c208dca456c3e82b5d5158df6633c6fd15d16aa0680bb2a642ba0daf440754fab281e94e69f327d SHA512 2f94be8af78b1beb567a7e6b7177aaa6451cd1ae63ef2842369879cc2e8e0cc2c615f68ce26d7031fbb7268788f7c210c03c33de52ff064b48ca42231613be85
@@ -57,7 +61,10 @@ DIST github.com-vitrun-qart-bf64b92db6b05651d6c25a3dabf2d543b360c0aa.tar.gz 2397
DIST syncthing-0.14.52.tar.gz 10583112 BLAKE2B cceaf0aba9dff96df0551d7aab855cb716be3d252fd677b82e20560f0a2e9eabf513ca7c7acdf4f1a3b4d3d8f6409692df7d2e92b86b1be1753bdd8913e06952 SHA512 cff48ea1d1286c8b1fe971b00423ad64ef10c9b0555f0cae6e008efc07a21698d54d402fe1a0ac3161c0b5180e5ca0099a0a302fd7e7c5da0f227bdb7e2853ce
DIST syncthing-1.0.1.tar.gz 7114455 BLAKE2B 71c80afaab5a546551e8e72e63272ab277df33645d4de19005376de599d8fe0bad9d4a1e7758321d116f8c46cd73067a770f641a0c736ad678a09579716f44a8 SHA512 7f9fd48e00fae2f0913eb9eeddadaad1d5d7559164a24020706e70411f8ec43420192c4c9422699be6faa1641a382d5b8627038ca9a5dad38ee0e189970efbb7
DIST syncthing-1.1.0.tar.gz 4658059 BLAKE2B 7b145d0299eada05662f500269d15bee078d00a16ea1cd621fcae0179e6ffc0180741867be33b3736392bb850bf82770a245002d735ba518a48574a11c5c2c07 SHA512 9fd3b7b29fc5842ec0764a274d8695772c1dc23d9c971c4741ea4fba93f93afbdc0df6e743345ebe83a26556e2a693b808a409190d6cc6c61d8d6b9850e5e998
+DIST syncthing-1.1.3.tar.gz 4686497 BLAKE2B d80718bc084212657cb7f1c3a4b5c41f22e43ddbba6923d1daf20328789135fcfca8a0f40adaedd68c1a3c29b891eaed39b0fac2099777999a1e2ed3f980c676 SHA512 43dff52336c19a9a8ce39413a9288d0f500d633589e0f3ff3989ad38d9c6fe6af5b01b27b3143e6beb0841e1e6bc6c590f4859530720e2730cdf214130c99a3a
EBUILD syncthing-0.14.52.ebuild 3519 BLAKE2B 16e32b0870241dda338ae5d189f417794d1c0d631c20e8a5898fafe362020ed0bb478e19eb2c46bdef9cced55da00ad5e272fc316ef775699ec1cf195c8d3e54 SHA512 66218c53a968625f6350de72d225c2a5a1a5b6fe707599c207bda1a05a3d03fd11c901d8c5433da3f59913bbd67d014d3c7277db2f236d54f437a4dbee59fa7c
EBUILD syncthing-1.0.1.ebuild 2405 BLAKE2B b86f9fd630a2b4c3dbd41cb8176ec040c27e956b46fefdf252f81e69b5f6448136830ccaad91d5a02e3c41c3583d9f2e0e1a6eafb09f2ce6d952f2917476c615 SHA512 58bfa070682a0037376da86054c456657f2ee9c7723a0d6198972516b0c8077a86acbe715c633c52556fe9cfc1bbb0f36b0e016baa113720e090258184f40e96
+EBUILD syncthing-1.1.0-r1.ebuild 5939 BLAKE2B ac39d2404143e578aaea91a0ae24272aca65016b02b92d066cb0a3aebc56e9aba3fcd7929e186ac10b8a94bee338fe41fd84506f74ffa92db10bd52e3b506622 SHA512 a5c8e3a31ffd008c59cea2bc1cf6281abc9474a686c9aad26ce8af469db7dfcbe9912d33db785fcc7fc10fec424c778591952ffe1abdcd3ac51e22e965c02efa
EBUILD syncthing-1.1.0.ebuild 5518 BLAKE2B f317a927182f47e49263bef2b42dc4ab0241d18f1dab59b5a851a5745c242aee751ae134e85915a18a83febf990513f865e7081f208123f8917a51157b4d2fdb SHA512 22501deac7b557c74e2167d9233e445f19f6c6b40bafdb7f21d679cf6720346b6ba73fcd84d09411af916a849b0d9869c1244f86161bf3448ae1b2810dceeac9
+EBUILD syncthing-1.1.3.ebuild 5939 BLAKE2B ac39d2404143e578aaea91a0ae24272aca65016b02b92d066cb0a3aebc56e9aba3fcd7929e186ac10b8a94bee338fe41fd84506f74ffa92db10bd52e3b506622 SHA512 a5c8e3a31ffd008c59cea2bc1cf6281abc9474a686c9aad26ce8af469db7dfcbe9912d33db785fcc7fc10fec424c778591952ffe1abdcd3ac51e22e965c02efa
MISC metadata.xml 869 BLAKE2B e59a433fd94dda05e06eca9017cf4f35aa4d9897adcc76d5dc503d5ae90e90bf5c23b859c4b7abe9af86cd7f327dad99a7a1a095015330a105debeb1a428052c SHA512 f58ce3a33241a316a81ba94318cd8fa1ea8a9954cd3721ae6f78f96df08b38a6ee5ea214483dc92aa4301a2252bc712a65c196da4c871962d76d17d5ba2b7238
diff --git a/net-p2p/syncthing/files/stdiscosrv.confd b/net-p2p/syncthing/files/stdiscosrv.confd
new file mode 100644
index 000000000000..e40a4b931db7
--- /dev/null
+++ b/net-p2p/syncthing/files/stdiscosrv.confd
@@ -0,0 +1,3 @@
+# Options to pass to discosrv
+# see /usr/libexec/syncthing/stdiscosrv --help for more information
+SD_OPTS=
diff --git a/net-p2p/syncthing/files/stdiscosrv.initd b/net-p2p/syncthing/files/stdiscosrv.initd
new file mode 100644
index 000000000000..333b980897b3
--- /dev/null
+++ b/net-p2p/syncthing/files/stdiscosrv.initd
@@ -0,0 +1,30 @@
+#!/sbin/openrc-run
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+SD_USER=stdiscosrv
+SD_GROUP=stdiscosrv
+SD_HOMEDIR=/var/lib/stdiscosrv
+SD_LOGFILE=/var/log/syncthing/stdiscosrv.log
+
+
+description="Discovery service for syncthing"
+command="/usr/libexec/syncthing/stdiscosrv"
+command_args="${SD_OPTS}"
+pidfile="/run/stdiscosrv.pid"
+start_stop_daemon_args="--background
+ --user ${SD_USER}
+ --group ${SD_GROUP}
+ --chdir \"${SD_HOMEDIR}\"
+ --make-pidfile
+ --stdout \"${SD_LOGFILE}\"
+ --stderr \"${SD_LOGFILE}\"
+ "
+
+depend() {
+ need net
+}
+
+start_pre() {
+ checkpath -q -d -o ${SD_USER}:${SD_GROUP} ${SD_HOMEDIR}
+ checkpath -q -f -o ${SD_USER}:${SD_GROUP} ${SD_LOGFILE}
+}
diff --git a/net-p2p/syncthing/files/stdiscosrv.logrotate b/net-p2p/syncthing/files/stdiscosrv.logrotate
new file mode 100644
index 000000000000..406a1122a240
--- /dev/null
+++ b/net-p2p/syncthing/files/stdiscosrv.logrotate
@@ -0,0 +1,6 @@
+/var/log/syncthing/stdiscosrv.log {
+ missingok
+ notifempty
+ sharedscripts
+ copytruncate
+}
diff --git a/net-p2p/syncthing/files/stdiscosrv.service b/net-p2p/syncthing/files/stdiscosrv.service
new file mode 100644
index 000000000000..4011c7d4c5bd
--- /dev/null
+++ b/net-p2p/syncthing/files/stdiscosrv.service
@@ -0,0 +1,17 @@
+[Unit]
+Description=Syncthing discovery server
+After=network.target
+
+[Service]
+User=stdiscosrv
+Group=stdiscosrv
+ExecStart=/usr/libexec/syncthing/stdiscosrv
+WorkingDirectory=/var/lib/stdiscosrv
+
+PrivateTmp=true
+ProtectSystem=full
+ProtectHome=true
+NoNewPrivileges=true
+
+[Install]
+WantedBy=multi-user.target
diff --git a/net-p2p/syncthing/syncthing-1.1.0-r1.ebuild b/net-p2p/syncthing/syncthing-1.1.0-r1.ebuild
new file mode 100644
index 000000000000..b03fd9fcd02e
--- /dev/null
+++ b/net-p2p/syncthing/syncthing-1.1.0-r1.ebuild
@@ -0,0 +1,163 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+EGO_PN="github.com/${PN}/${PN}"
+
+EGO_VENDOR=(
+ "github.com/AudriusButkevicius/go-nat-pmp 452c97607362b2ab5a7839b8d1704f0396b640ca"
+ "github.com/AudriusButkevicius/recli v0.0.5"
+ "github.com/bkaradzic/go-lz4 7224d8d8f27ef618c0a95f1ae69dbb0488abc33a"
+ "github.com/calmh/du v1.0.1"
+ "github.com/calmh/xdr v1.1.0"
+ "github.com/chmduquesne/rollinghash a60f8e7142b536ea61bb5d84014171189eeaaa81"
+ "github.com/d4l3k/messagediff v1.2.1"
+ "github.com/davecgh/go-spew v1.1.1"
+ "github.com/flynn-archive/go-shlex 3f9db97f856818214da2e1057f8ad84803971cff"
+ "github.com/gobwas/glob 51eb1ee00b6d931c66d229ceeb7c31b985563420"
+ "github.com/gogo/protobuf v1.2.0"
+ "github.com/golang/groupcache 84a468cf14b4376def5d68c722b139b881c450a4"
+ "github.com/golang/snappy 553a641470496b2327abcac10b36396bd98e45c9"
+ "github.com/jackpal/gateway 5795ac81146e01d3fab7bcf21c043c3d6a32b006"
+ "github.com/kballard/go-shellquote cd60e84ee657ff3dc51de0b4f55dd299a3e136f2"
+ "github.com/kr/pretty v0.1.0"
+ "github.com/lib/pq v1.0.0"
+ "github.com/mattn/go-isatty v0.0.4"
+ "github.com/minio/sha256-simd cc1980cb03383b1d46f518232672584432d7532d"
+ "github.com/onsi/ginkgo 6c46eb8334b30dc55b42f1a1c725d5ce97375390"
+ "github.com/onsi/gomega ba3724c94e4dd5d5690d37c190f1c54b2c1b4e64"
+ "github.com/oschwald/geoip2-golang v1.1.0"
+ "github.com/oschwald/maxminddb-golang 26fe5ace1c706491c2936119e1dc69c1a9c04d7f"
+ "github.com/petermattis/goid 3db12ebb2a599ba4a96bea1c17b61c2f78a40e02"
+ "github.com/pkg/errors v0.8.1"
+ "github.com/pmezard/go-difflib v1.0.0"
+ "github.com/prometheus/client_golang v0.9.2"
+ "github.com/rcrowley/go-metrics e181e095bae94582363434144c61a9653aff6e50"
+ "github.com/sasha-s/go-deadlock v0.2.0"
+ "github.com/stretchr/testify v1.2.2"
+ "github.com/syncthing/notify 4e389ea6c0d84e6195eb585ffaf62c8c143306ae"
+ "github.com/syndtr/goleveldb 34011bf325bce385408353a30b101fe5e923eb6e"
+ "github.com/thejerf/suture v3.0.2"
+ "github.com/urfave/cli v1.20.0"
+ "github.com/vitrun/qart bf64b92db6b05651d6c25a3dabf2d543b360c0aa"
+ "golang.org/x/crypto 0fcca4842a8d74bfddc2c96a073bd2a4d2a7a2e8 github.com/golang/crypto"
+ "golang.org/x/net 351d144fa1fc0bd934e2408202be0c29f25e35a0 github.com/golang/net"
+ "golang.org/x/sys 4d1cda033e0619309c606fc686de3adcf599539e github.com/golang/sys"
+ "golang.org/x/text e19ae1496984b1c655b8044a65c0300a3c878dd3 github.com/golang/text"
+ "golang.org/x/time 6dc17368e09b0e8634d71cac8168d853e869a0c7 github.com/golang/time"
+ "gopkg.in/asn1-ber.v1 v1.2 github.com/go-asn1-ber/asn1-ber"
+ "gopkg.in/check.v1 788fd78401277ebd861206a03c884797c6ec5541 github.com/go-check/check"
+ "gopkg.in/ldap.v2 v2.5.1 github.com/go-ldap/ldap"
+ "gopkg.in/yaml.v2 v2.0.0 github.com/go-yaml/yaml"
+ # These are only used by the test suite but conditional vendoring is messy
+ "github.com/beorn7/perks 3a771d992973f24aa725d07868b467d1ddfceafb"
+ "github.com/golang/protobuf v1.2.0"
+ "github.com/matttproud/golang_protobuf_extensions v1.0.1"
+ "github.com/prometheus/client_model 5c3871d89910bfb32f5fcab2aa4b9ec68e65a99f"
+ "github.com/prometheus/common v0.1.0"
+ "github.com/prometheus/procfs 1dc9a6cbc91aacc3e8b2d63db4d2e957a5394ac4"
+)
+
+inherit golang-vcs-snapshot systemd user xdg-utils
+
+DESCRIPTION="Open Source Continuous File Synchronization"
+HOMEPAGE="https://syncthing.net"
+SRC_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
+ ${EGO_VENDOR_URI}"
+
+LICENSE="MPL-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE="selinux tools"
+
+BDEPEND=">=dev-lang/go-1.12"
+RDEPEND="selinux? ( sec-policy/selinux-syncthing )"
+
+DOCS=( README.md AUTHORS CONTRIBUTING.md )
+
+pkg_setup() {
+ enewgroup ${PN}
+ enewuser ${PN} -1 -1 /var/lib/${PN} ${PN}
+
+ if use tools ; then
+ # separate user for the discovery server
+ enewgroup stdiscosrv
+ enewuser stdiscosrv -1 -1 /var/lib/stdiscosrv stdiscosrv
+ keepdir /var/lib/stdiscosrv
+ fowners stdiscosrv:stdiscosrv /var/lib/stdiscosrv
+
+ # separate user for the relay server
+ enewgroup strelaysrv
+ enewuser strelaysrv -1 -1 /var/lib/strelaysrv strelaysrv
+ # and his home folder
+ keepdir /var/lib/strelaysrv
+ fowners strelaysrv:strelaysrv /var/lib/strelaysrv
+ fi
+}
+
+src_prepare() {
+ # Bug #679280
+ xdg_environment_reset
+
+ default
+ sed -i \
+ 's|^ExecStart=.*|ExecStart=/usr/libexec/syncthing/strelaysrv|' \
+ src/${EGO_PN}/cmd/strelaysrv/etc/linux-systemd/strelaysrv.service \
+ || die
+}
+
+src_compile() {
+ export GOPATH="${S}:$(get_golibdir_gopath)"
+ cd src/${EGO_PN} || die
+ go run build.go -version "v${PV}" -no-upgrade install \
+ $(usex tools "all" "") || die "build failed"
+}
+
+src_test() {
+ cd src/${EGO_PN} || die
+ go run build.go test || die "test failed"
+}
+
+src_install() {
+ pushd src/${EGO_PN} >& /dev/null || die
+ doman man/*.[157]
+ einstalldocs
+
+ dobin bin/syncthing
+ if use tools ; then
+ exeinto /usr/libexec/syncthing
+ local exe
+ for exe in bin/* ; do
+ [[ "${exe}" == "bin/syncthing" ]] || doexe "${exe}"
+ done
+ fi
+ popd >& /dev/null || die
+
+ # openrc and systemd service files
+ systemd_dounit src/${EGO_PN}/etc/linux-systemd/system/${PN}{@,-resume}.service
+ systemd_douserunit src/${EGO_PN}/etc/linux-systemd/user/${PN}.service
+ newconfd "${FILESDIR}/${PN}.confd" ${PN}
+ newinitd "${FILESDIR}/${PN}.initd" ${PN}
+
+ keepdir /var/{lib,log}/${PN}
+ fowners ${PN}:${PN} /var/{lib,log}/${PN}
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}/${PN}.logrotate" ${PN}
+
+ if use tools ; then
+ # openrc and systemd service files
+
+ systemd_dounit "${FILESDIR}/stdiscosrv.service"
+ newconfd "${FILESDIR}/stdiscosrv.confd" stdiscosrv
+ newinitd "${FILESDIR}/stdiscosrv.initd" stdiscosrv
+
+ systemd_dounit src/${EGO_PN}/cmd/strelaysrv/etc/linux-systemd/strelaysrv.service
+ newconfd "${FILESDIR}/strelaysrv.confd" strelaysrv
+ newinitd "${FILESDIR}/strelaysrv.initd" strelaysrv
+
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}/stdiscosrv.logrotate" strelaysrv
+ newins "${FILESDIR}/strelaysrv.logrotate" strelaysrv
+ fi
+}
diff --git a/net-p2p/syncthing/syncthing-1.1.3.ebuild b/net-p2p/syncthing/syncthing-1.1.3.ebuild
new file mode 100644
index 000000000000..b03fd9fcd02e
--- /dev/null
+++ b/net-p2p/syncthing/syncthing-1.1.3.ebuild
@@ -0,0 +1,163 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+EGO_PN="github.com/${PN}/${PN}"
+
+EGO_VENDOR=(
+ "github.com/AudriusButkevicius/go-nat-pmp 452c97607362b2ab5a7839b8d1704f0396b640ca"
+ "github.com/AudriusButkevicius/recli v0.0.5"
+ "github.com/bkaradzic/go-lz4 7224d8d8f27ef618c0a95f1ae69dbb0488abc33a"
+ "github.com/calmh/du v1.0.1"
+ "github.com/calmh/xdr v1.1.0"
+ "github.com/chmduquesne/rollinghash a60f8e7142b536ea61bb5d84014171189eeaaa81"
+ "github.com/d4l3k/messagediff v1.2.1"
+ "github.com/davecgh/go-spew v1.1.1"
+ "github.com/flynn-archive/go-shlex 3f9db97f856818214da2e1057f8ad84803971cff"
+ "github.com/gobwas/glob 51eb1ee00b6d931c66d229ceeb7c31b985563420"
+ "github.com/gogo/protobuf v1.2.0"
+ "github.com/golang/groupcache 84a468cf14b4376def5d68c722b139b881c450a4"
+ "github.com/golang/snappy 553a641470496b2327abcac10b36396bd98e45c9"
+ "github.com/jackpal/gateway 5795ac81146e01d3fab7bcf21c043c3d6a32b006"
+ "github.com/kballard/go-shellquote cd60e84ee657ff3dc51de0b4f55dd299a3e136f2"
+ "github.com/kr/pretty v0.1.0"
+ "github.com/lib/pq v1.0.0"
+ "github.com/mattn/go-isatty v0.0.4"
+ "github.com/minio/sha256-simd cc1980cb03383b1d46f518232672584432d7532d"
+ "github.com/onsi/ginkgo 6c46eb8334b30dc55b42f1a1c725d5ce97375390"
+ "github.com/onsi/gomega ba3724c94e4dd5d5690d37c190f1c54b2c1b4e64"
+ "github.com/oschwald/geoip2-golang v1.1.0"
+ "github.com/oschwald/maxminddb-golang 26fe5ace1c706491c2936119e1dc69c1a9c04d7f"
+ "github.com/petermattis/goid 3db12ebb2a599ba4a96bea1c17b61c2f78a40e02"
+ "github.com/pkg/errors v0.8.1"
+ "github.com/pmezard/go-difflib v1.0.0"
+ "github.com/prometheus/client_golang v0.9.2"
+ "github.com/rcrowley/go-metrics e181e095bae94582363434144c61a9653aff6e50"
+ "github.com/sasha-s/go-deadlock v0.2.0"
+ "github.com/stretchr/testify v1.2.2"
+ "github.com/syncthing/notify 4e389ea6c0d84e6195eb585ffaf62c8c143306ae"
+ "github.com/syndtr/goleveldb 34011bf325bce385408353a30b101fe5e923eb6e"
+ "github.com/thejerf/suture v3.0.2"
+ "github.com/urfave/cli v1.20.0"
+ "github.com/vitrun/qart bf64b92db6b05651d6c25a3dabf2d543b360c0aa"
+ "golang.org/x/crypto 0fcca4842a8d74bfddc2c96a073bd2a4d2a7a2e8 github.com/golang/crypto"
+ "golang.org/x/net 351d144fa1fc0bd934e2408202be0c29f25e35a0 github.com/golang/net"
+ "golang.org/x/sys 4d1cda033e0619309c606fc686de3adcf599539e github.com/golang/sys"
+ "golang.org/x/text e19ae1496984b1c655b8044a65c0300a3c878dd3 github.com/golang/text"
+ "golang.org/x/time 6dc17368e09b0e8634d71cac8168d853e869a0c7 github.com/golang/time"
+ "gopkg.in/asn1-ber.v1 v1.2 github.com/go-asn1-ber/asn1-ber"
+ "gopkg.in/check.v1 788fd78401277ebd861206a03c884797c6ec5541 github.com/go-check/check"
+ "gopkg.in/ldap.v2 v2.5.1 github.com/go-ldap/ldap"
+ "gopkg.in/yaml.v2 v2.0.0 github.com/go-yaml/yaml"
+ # These are only used by the test suite but conditional vendoring is messy
+ "github.com/beorn7/perks 3a771d992973f24aa725d07868b467d1ddfceafb"
+ "github.com/golang/protobuf v1.2.0"
+ "github.com/matttproud/golang_protobuf_extensions v1.0.1"
+ "github.com/prometheus/client_model 5c3871d89910bfb32f5fcab2aa4b9ec68e65a99f"
+ "github.com/prometheus/common v0.1.0"
+ "github.com/prometheus/procfs 1dc9a6cbc91aacc3e8b2d63db4d2e957a5394ac4"
+)
+
+inherit golang-vcs-snapshot systemd user xdg-utils
+
+DESCRIPTION="Open Source Continuous File Synchronization"
+HOMEPAGE="https://syncthing.net"
+SRC_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
+ ${EGO_VENDOR_URI}"
+
+LICENSE="MPL-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE="selinux tools"
+
+BDEPEND=">=dev-lang/go-1.12"
+RDEPEND="selinux? ( sec-policy/selinux-syncthing )"
+
+DOCS=( README.md AUTHORS CONTRIBUTING.md )
+
+pkg_setup() {
+ enewgroup ${PN}
+ enewuser ${PN} -1 -1 /var/lib/${PN} ${PN}
+
+ if use tools ; then
+ # separate user for the discovery server
+ enewgroup stdiscosrv
+ enewuser stdiscosrv -1 -1 /var/lib/stdiscosrv stdiscosrv
+ keepdir /var/lib/stdiscosrv
+ fowners stdiscosrv:stdiscosrv /var/lib/stdiscosrv
+
+ # separate user for the relay server
+ enewgroup strelaysrv
+ enewuser strelaysrv -1 -1 /var/lib/strelaysrv strelaysrv
+ # and his home folder
+ keepdir /var/lib/strelaysrv
+ fowners strelaysrv:strelaysrv /var/lib/strelaysrv
+ fi
+}
+
+src_prepare() {
+ # Bug #679280
+ xdg_environment_reset
+
+ default
+ sed -i \
+ 's|^ExecStart=.*|ExecStart=/usr/libexec/syncthing/strelaysrv|' \
+ src/${EGO_PN}/cmd/strelaysrv/etc/linux-systemd/strelaysrv.service \
+ || die
+}
+
+src_compile() {
+ export GOPATH="${S}:$(get_golibdir_gopath)"
+ cd src/${EGO_PN} || die
+ go run build.go -version "v${PV}" -no-upgrade install \
+ $(usex tools "all" "") || die "build failed"
+}
+
+src_test() {
+ cd src/${EGO_PN} || die
+ go run build.go test || die "test failed"
+}
+
+src_install() {
+ pushd src/${EGO_PN} >& /dev/null || die
+ doman man/*.[157]
+ einstalldocs
+
+ dobin bin/syncthing
+ if use tools ; then
+ exeinto /usr/libexec/syncthing
+ local exe
+ for exe in bin/* ; do
+ [[ "${exe}" == "bin/syncthing" ]] || doexe "${exe}"
+ done
+ fi
+ popd >& /dev/null || die
+
+ # openrc and systemd service files
+ systemd_dounit src/${EGO_PN}/etc/linux-systemd/system/${PN}{@,-resume}.service
+ systemd_douserunit src/${EGO_PN}/etc/linux-systemd/user/${PN}.service
+ newconfd "${FILESDIR}/${PN}.confd" ${PN}
+ newinitd "${FILESDIR}/${PN}.initd" ${PN}
+
+ keepdir /var/{lib,log}/${PN}
+ fowners ${PN}:${PN} /var/{lib,log}/${PN}
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}/${PN}.logrotate" ${PN}
+
+ if use tools ; then
+ # openrc and systemd service files
+
+ systemd_dounit "${FILESDIR}/stdiscosrv.service"
+ newconfd "${FILESDIR}/stdiscosrv.confd" stdiscosrv
+ newinitd "${FILESDIR}/stdiscosrv.initd" stdiscosrv
+
+ systemd_dounit src/${EGO_PN}/cmd/strelaysrv/etc/linux-systemd/strelaysrv.service
+ newconfd "${FILESDIR}/strelaysrv.confd" strelaysrv
+ newinitd "${FILESDIR}/strelaysrv.initd" strelaysrv
+
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}/stdiscosrv.logrotate" strelaysrv
+ newins "${FILESDIR}/strelaysrv.logrotate" strelaysrv
+ fi
+}