Gentoo Archives: gentoo-commits

From: Marek Szuba <marecki@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-p2p/syncthing/
Date: Tue, 05 Nov 2019 12:37:48
Message-Id: 1572957445.cd574032e68d7048784e59a8bb27b26146e751c5.marecki@gentoo
1 commit: cd574032e68d7048784e59a8bb27b26146e751c5
2 Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
3 AuthorDate: Tue Nov 5 12:34:45 2019 +0000
4 Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
5 CommitDate: Tue Nov 5 12:37:25 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cd574032
7
8 net-p2p/syncthing: bump to 1.3.1
9
10 Package-Manager: Portage-2.3.76, Repoman-2.3.16
11 Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>
12
13 net-p2p/syncthing/Manifest | 1 +
14 net-p2p/syncthing/syncthing-1.3.1.ebuild | 162 +++++++++++++++++++++++++++++++
15 2 files changed, 163 insertions(+)
16
17 diff --git a/net-p2p/syncthing/Manifest b/net-p2p/syncthing/Manifest
18 index f1fe155af84..d814b433b4f 100644
19 --- a/net-p2p/syncthing/Manifest
20 +++ b/net-p2p/syncthing/Manifest
21 @@ -103,3 +103,4 @@ DIST github.com-vitrun-qart-bf64b92db6b05651d6c25a3dabf2d543b360c0aa.tar.gz 2397
22 DIST syncthing-1.1.4.tar.gz 4700261 BLAKE2B bf766d7d3701ac66d0d4ac266d9b4a9f02b2f97a6fa320b192f3e46fbe9055091ea5ae71bf405ccce4a9665efdf41477098af3b98562ea06bf0c4f828653bd51 SHA512 cb57cdf6bbab0147a700f72e800cddff0855835280a176883089e5e1dc06352e0dacf615569a35b16f98a857651f534c915f369c46bb592d416d7a01efe5b5ba
23 DIST syncthing-1.2.1.tar.gz 4740427 BLAKE2B 2f102100030f646f069a51c5af7c5ab448ea59fa0629d78b14432e32cbfbe90f1b95c49cc3d5812b8cd228ef0454ba5d95f9ddf5910492370018234bc1c66438 SHA512 226386af38c3e99434496f24aa571bd1edd3d1e0528dac06c08b4148b2c63b898b67261728cc6c92dbd0496c24b32f0b1189571d03f6ab5dd592e78f2a5beb3b
24 DIST syncthing-1.3.0.tar.gz 4753744 BLAKE2B 1fb731ca41fa2c703af7cc6cccdf7fabbee3972a6146f8f92cc8f5a2635083956134c46396f9b64e3b67d8377e4e74b59cfdde98cc4f92741f638f5b48e431c0 SHA512 aea1f979f3441e81c10dfbf0a5c22080814486a16999eabf7179928c6ea960c0f49d6684ea8626ffb2e2431777231e30c5de326fc500f17ee9c51e74cb1b3d5a
25 +DIST syncthing-1.3.1.tar.gz 4753853 BLAKE2B b0e4a3b435ba08718203b7009586f5c360dbeac110fc2a9755ac5202bc689c634fb0e31c861e16f401326ec7e99aa2fecb671943e5da27202173f6d70616bafa SHA512 a5f5de85d719379c6d312fa1051d6a0761e3ed73014c8e5b95b26bb0ab264a48f114d210a46f0e990b0535494873a5997284a6acaa0337d1f082bbcd847ab664
26
27 diff --git a/net-p2p/syncthing/syncthing-1.3.1.ebuild b/net-p2p/syncthing/syncthing-1.3.1.ebuild
28 new file mode 100644
29 index 00000000000..25a84914f7b
30 --- /dev/null
31 +++ b/net-p2p/syncthing/syncthing-1.3.1.ebuild
32 @@ -0,0 +1,162 @@
33 +# Copyright 1999-2019 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +EGO_PN="github.com/${PN}/${PN}"
39 +
40 +EGO_VENDOR=(
41 + "github.com/AudriusButkevicius/go-nat-pmp 452c97607362b2ab5a7839b8d1704f0396b640ca"
42 + "github.com/AudriusButkevicius/pfilter 0.0.5"
43 + "github.com/AudriusButkevicius/recli v0.0.5"
44 + "github.com/bkaradzic/go-lz4 7224d8d8f27ef618c0a95f1ae69dbb0488abc33a"
45 + "github.com/calmh/xdr v1.1.0"
46 + "github.com/ccding/go-stun be486d185f3d"
47 + "github.com/certifi/gocertifi a5e0173ced67"
48 + "github.com/cheekybits/genny v1.0.0"
49 + "github.com/chmduquesne/rollinghash a60f8e7142b536ea61bb5d84014171189eeaaa81"
50 + "github.com/d4l3k/messagediff v1.2.1"
51 + "github.com/davecgh/go-spew v1.1.1"
52 + "github.com/flynn-archive/go-shlex 3f9db97f856818214da2e1057f8ad84803971cff"
53 + "github.com/getsentry/raven-go v0.2.0"
54 + "github.com/gobwas/glob v0.2.3"
55 + "github.com/gogo/protobuf v1.3.0"
56 + "github.com/golang/groupcache 869f871628b6"
57 + "github.com/golang/snappy v0.0.1"
58 + "github.com/jackpal/gateway v1.0.5"
59 + "github.com/kballard/go-shellquote 95032a82bc51"
60 + "github.com/kr/pretty v0.1.0"
61 + "github.com/lib/pq v1.2.0"
62 + "github.com/lucas-clemente/quic-go v0.12.0"
63 + "github.com/marten-seemann/qtls v0.3.2"
64 + "github.com/maruel/panicparse v1.3.0"
65 + "github.com/mattn/go-isatty v0.0.9"
66 + "github.com/minio/sha256-simd v0.1.0"
67 + "github.com/onsi/ginkgo v1.9.0"
68 + "github.com/onsi/gomega v1.6.0"
69 + "github.com/oschwald/geoip2-golang v1.3.0"
70 + "github.com/oschwald/maxminddb-golang v1.4.0"
71 + "github.com/petermattis/goid b0b1615b78e5"
72 + "github.com/pkg/errors v0.8.1"
73 + "github.com/pmezard/go-difflib v1.0.0"
74 + "github.com/prometheus/client_golang v1.1.0"
75 + "github.com/rcrowley/go-metrics cac0b30c2563"
76 + "github.com/shirou/gopsutil 47ef3260b6bf"
77 + "github.com/sasha-s/go-deadlock v0.2.0"
78 + "github.com/stretchr/testify v1.3.0"
79 + "github.com/syncthing/notify 69c7a957d3e2"
80 + "github.com/syndtr/goleveldb c3a204f8e965"
81 + "github.com/thejerf/suture v3.0.2"
82 + "github.com/urfave/cli v1.21.0"
83 + "github.com/vitrun/qart bf64b92db6b05651d6c25a3dabf2d543b360c0aa"
84 + "golang.org/x/crypto 9756ffdc2472 github.com/golang/crypto"
85 + "golang.org/x/net ba9fcec4b297 github.com/golang/net"
86 + "golang.org/x/sys 749cb33beabd github.com/golang/sys"
87 + "golang.org/x/text v0.3.2 github.com/golang/text"
88 + "golang.org/x/time 9d24e82272b4 github.com/golang/time"
89 + "gopkg.in/asn1-ber.v1 v1.2 github.com/go-asn1-ber/asn1-ber"
90 + "gopkg.in/check.v1 788fd78401277ebd861206a03c884797c6ec5541 github.com/go-check/check"
91 + "gopkg.in/ldap.v2 v2.5.1 github.com/go-ldap/ldap"
92 + "gopkg.in/yaml.v2 v2.2.2 github.com/go-yaml/yaml"
93 + # These are only used by the test suite but conditional vendoring is messy
94 + "github.com/beorn7/perks v1.0.1"
95 + "github.com/golang/protobuf v1.3.2"
96 + "github.com/matttproud/golang_protobuf_extensions v1.0.1"
97 + "github.com/prometheus/client_model 14fe0d1b01d4"
98 + "github.com/prometheus/common v0.6.0"
99 + "github.com/prometheus/procfs v0.0.4"
100 +)
101 +
102 +inherit golang-vcs-snapshot systemd xdg-utils
103 +
104 +DESCRIPTION="Open Source Continuous File Synchronization"
105 +HOMEPAGE="https://syncthing.net"
106 +SRC_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
107 + ${EGO_VENDOR_URI}"
108 +
109 +LICENSE="Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0 Unlicense"
110 +SLOT="0"
111 +KEYWORDS="~amd64 ~arm ~x86"
112 +IUSE="selinux tools"
113 +
114 +RDEPEND="acct-group/syncthing
115 + acct-user/syncthing
116 + tools? ( acct-group/stdiscosrv
117 + acct-group/strelaysrv
118 + acct-user/stdiscosrv
119 + acct-user/strelaysrv )
120 + selinux? ( sec-policy/selinux-syncthing )"
121 +
122 +DOCS=( README.md AUTHORS CONTRIBUTING.md )
123 +
124 +src_prepare() {
125 + # Bug #679280
126 + xdg_environment_reset
127 +
128 + default
129 + sed -i \
130 + 's|^ExecStart=.*|ExecStart=/usr/libexec/syncthing/strelaysrv|' \
131 + src/${EGO_PN}/cmd/strelaysrv/etc/linux-systemd/strelaysrv.service \
132 + || die
133 +
134 + # As of 1.3.1, stupgrades fails to compile. This command was not present
135 + # in releases older than 1.3.0, is not compiled in by default (USE=tools
136 + # must be set) an in any case we do not really need this, therefore just
137 + # get rid of the offending code until upstream has fixed it.
138 + rm -rf src/${EGO_PN}/cmd/stupgrades
139 +}
140 +
141 +src_compile() {
142 + export GOPATH="${S}:$(get_golibdir_gopath)"
143 + cd src/${EGO_PN} || die
144 + go run build.go -version "v${PV}" -no-upgrade install \
145 + $(usex tools "all" "") || die "build failed"
146 +}
147 +
148 +src_test() {
149 + cd src/${EGO_PN} || die
150 + go run build.go test || die "test failed"
151 +}
152 +
153 +src_install() {
154 + pushd src/${EGO_PN} >& /dev/null || die
155 + doman man/*.[157]
156 + einstalldocs
157 +
158 + dobin bin/syncthing
159 + if use tools ; then
160 + exeinto /usr/libexec/syncthing
161 + local exe
162 + for exe in bin/* ; do
163 + [[ "${exe}" == "bin/syncthing" ]] || doexe "${exe}"
164 + done
165 + fi
166 + popd >& /dev/null || die
167 +
168 + # openrc and systemd service files
169 + systemd_dounit src/${EGO_PN}/etc/linux-systemd/system/${PN}{@,-resume}.service
170 + systemd_douserunit src/${EGO_PN}/etc/linux-systemd/user/${PN}.service
171 + newconfd "${FILESDIR}/${PN}.confd" ${PN}
172 + newinitd "${FILESDIR}/${PN}.initd" ${PN}
173 +
174 + keepdir /var/{lib,log}/${PN}
175 + fowners ${PN}:${PN} /var/{lib,log}/${PN}
176 + insinto /etc/logrotate.d
177 + newins "${FILESDIR}/${PN}.logrotate" ${PN}
178 +
179 + if use tools ; then
180 + # openrc and systemd service files
181 +
182 + systemd_dounit "${FILESDIR}/stdiscosrv.service"
183 + newconfd "${FILESDIR}/stdiscosrv.confd" stdiscosrv
184 + newinitd "${FILESDIR}/stdiscosrv.initd" stdiscosrv
185 +
186 + systemd_dounit src/${EGO_PN}/cmd/strelaysrv/etc/linux-systemd/strelaysrv.service
187 + newconfd "${FILESDIR}/strelaysrv.confd" strelaysrv
188 + newinitd "${FILESDIR}/strelaysrv.initd" strelaysrv
189 +
190 + insinto /etc/logrotate.d
191 + newins "${FILESDIR}/stdiscosrv.logrotate" strelaysrv
192 + newins "${FILESDIR}/strelaysrv.logrotate" strelaysrv
193 + fi
194 +}