1 |
commit: 224231cbddca4442b921558a4a5633b0e28ec81a |
2 |
Author: Marek Szuba <marecki <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Aug 24 15:26:12 2022 +0000 |
4 |
Commit: Marek Szuba <marecki <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Aug 24 15:36:17 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=224231cb |
7 |
|
8 |
net-p2p/syncthing: add 1.20.4 |
9 |
|
10 |
Signed-off-by: Marek Szuba <marecki <AT> gentoo.org> |
11 |
|
12 |
net-p2p/syncthing/Manifest | 2 + |
13 |
net-p2p/syncthing/syncthing-1.20.4.ebuild | 113 ++++++++++++++++++++++++++++++ |
14 |
2 files changed, 115 insertions(+) |
15 |
|
16 |
diff --git a/net-p2p/syncthing/Manifest b/net-p2p/syncthing/Manifest |
17 |
index 0993fc270020..8a9cf07bedf6 100644 |
18 |
--- a/net-p2p/syncthing/Manifest |
19 |
+++ b/net-p2p/syncthing/Manifest |
20 |
@@ -4,3 +4,5 @@ DIST syncthing-1.20.2-deps.tar.xz 96286888 BLAKE2B ddac0c324dc9fedfebb4e7b261dbe |
21 |
DIST syncthing-1.20.2.tar.gz 6303918 BLAKE2B 4a9786558584ee3d11d7dc278e99d98a57b727dd2b1e61a82357bc4f9be5d025b3e5b003ae0d44e033991c8fe91aa9668dd653a8dedd200e4d385a827c361918 SHA512 f4abf939ce4023df8bd619d8be393dedc657a9e62d99b3793af32ca88a4478ba6640ccecd6b4ae009a06656e74bca3e462bef717ad17a6e9fa6ac00ef77ea137 |
22 |
DIST syncthing-1.20.3-deps.tar.xz 96198124 BLAKE2B 196bffdd1004a00545c046ac3f3f4a2db3f5c779c3e9d0f1fbe1417f8cd27f6b8969a7c4f8c515ad85abad9391b5dbf9b64a6acf949f17b982e6465658d296d2 SHA512 5f8b52af226c2e86be84bb5dfe06a1e76d21f90aaf84cd44d9724cb0c0f918bb80c88fe0fe2c70ff6942626659492ceb5b3d618efa65d401f63eeff8ab6052a0 |
23 |
DIST syncthing-1.20.3.tar.gz 6304903 BLAKE2B 61534220a633c8cf9b99e60a43032834874bdf6f3cfd26c81b578148a22ac0d3443f112e5763e3fb916cfea6d7f55564bdfec967e8fa83f0c9502f1dbbe8689c SHA512 429fb13de8b34459794d7c9dff66abe0e6c12086a27af71d90934c2ac09f2a332a103eaa7149baa0b1920ddb676380ab2c0fbcc025d80d032dd7d8d67284328a |
24 |
+DIST syncthing-1.20.4-deps.tar.xz 95873400 BLAKE2B 79b5ee4cbb36f611530ffcaeb5e9650811f80358c36a51d5362c525d86741ee768baa073a167ca184cd3aa5795b01a7a5f1c6648b9f07ca77c868b9152940de4 SHA512 424cca4aafd18b672e0027cbe4dc3895605009c037fc4005bdb48a1cb06be96d8377477ee77ab910478e24db9833d48b34b1d45f83c4792356ae75f5225bc163 |
25 |
+DIST syncthing-1.20.4.tar.gz 6320013 BLAKE2B 0aefc7470be80af12c349572ca14de3e1eb18f2da5ad804e8ee5899da331e4b3c86c8bcb04c3fcc54a7f944551555d6df7ec5fe8f5ce760faf658e9bfd02650b SHA512 a7af905fedc2bbb709df2b05274e7c584ba340f7f6a2f311291d2650cd656ebf567a106be53453dbe889dabac2620deccc8da49cd80dc41c43f45b8016cec193 |
26 |
|
27 |
diff --git a/net-p2p/syncthing/syncthing-1.20.4.ebuild b/net-p2p/syncthing/syncthing-1.20.4.ebuild |
28 |
new file mode 100644 |
29 |
index 000000000000..5d5f0fcee8c1 |
30 |
--- /dev/null |
31 |
+++ b/net-p2p/syncthing/syncthing-1.20.4.ebuild |
32 |
@@ -0,0 +1,113 @@ |
33 |
+# Copyright 1999-2022 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=8 |
37 |
+ |
38 |
+inherit desktop go-module systemd xdg-utils |
39 |
+ |
40 |
+DESCRIPTION="Open Source Continuous File Synchronization" |
41 |
+HOMEPAGE="https://syncthing.net" |
42 |
+SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz |
43 |
+ https://dev.gentoo.org/~marecki/dists/${CATEGORY}/${PN}/${P}-deps.tar.xz" |
44 |
+ |
45 |
+LICENSE="Apache-2.0 BSD BSD-2 CC0-1.0 ISC MIT MPL-2.0 Unlicense" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" |
48 |
+IUSE="selinux tools" |
49 |
+ |
50 |
+RDEPEND="acct-group/syncthing |
51 |
+ acct-user/syncthing |
52 |
+ tools? ( >=acct-user/stdiscosrv-1 |
53 |
+ >=acct-user/strelaysrv-1 ) |
54 |
+ selinux? ( sec-policy/selinux-syncthing )" |
55 |
+# Bug #863488. Will no longer be needed come 1.21.0. |
56 |
+BDEPEND="<dev-lang/go-1.19" |
57 |
+ |
58 |
+DOCS=( README.md AUTHORS CONTRIBUTING.md ) |
59 |
+ |
60 |
+PATCHES=( |
61 |
+ "${FILESDIR}"/${PN}-1.3.4-TestIssue5063_timeout.patch |
62 |
+ "${FILESDIR}"/${PN}-1.18.4-tool_users.patch |
63 |
+) |
64 |
+ |
65 |
+src_prepare() { |
66 |
+ # Bug #679280 |
67 |
+ xdg_environment_reset |
68 |
+ |
69 |
+ default |
70 |
+ sed -i \ |
71 |
+ 's|^ExecStart=.*|ExecStart=/usr/libexec/syncthing/stdiscosrv|' \ |
72 |
+ cmd/stdiscosrv/etc/linux-systemd/stdiscosrv.service \ |
73 |
+ || die |
74 |
+ sed -i \ |
75 |
+ 's|^ExecStart=.*|ExecStart=/usr/libexec/syncthing/strelaysrv|' \ |
76 |
+ cmd/strelaysrv/etc/linux-systemd/strelaysrv.service \ |
77 |
+ || die |
78 |
+ |
79 |
+ # We do not need this and it sometimes causes build failures |
80 |
+ rm -rf cmd/stupgrades |
81 |
+} |
82 |
+ |
83 |
+src_compile() { |
84 |
+ GOARCH= go run build.go -version "v${PV}" -no-upgrade -build-out=bin/ \ |
85 |
+ ${GOARCH:+-goarch="${GOARCH}"} \ |
86 |
+ build $(usex tools "all" "") || die "build failed" |
87 |
+} |
88 |
+ |
89 |
+src_test() { |
90 |
+ go run build.go test || die "test failed" |
91 |
+} |
92 |
+ |
93 |
+src_install() { |
94 |
+ local icon_size |
95 |
+ |
96 |
+ doman man/*.[157] |
97 |
+ einstalldocs |
98 |
+ |
99 |
+ dobin bin/syncthing |
100 |
+ |
101 |
+ domenu etc/linux-desktop/*.desktop |
102 |
+ for icon_size in 32 64 128 256 512; do |
103 |
+ newicon -s ${icon_size} assets/logo-${icon_size}.png ${PN}.png |
104 |
+ done |
105 |
+ newicon -s scalable assets/logo-only.svg ${PN}.svg |
106 |
+ |
107 |
+ if use tools; then |
108 |
+ exeinto /usr/libexec/syncthing |
109 |
+ local exe |
110 |
+ for exe in bin/* ; do |
111 |
+ [[ "${exe}" == "bin/syncthing" ]] || doexe "${exe}" |
112 |
+ done |
113 |
+ fi |
114 |
+ |
115 |
+ systemd_dounit etc/linux-systemd/system/${PN}{@,-resume}.service |
116 |
+ systemd_douserunit etc/linux-systemd/user/${PN}.service |
117 |
+ newconfd "${FILESDIR}"/${PN}.confd ${PN} |
118 |
+ newinitd "${FILESDIR}"/${PN}.initd-r2 ${PN} |
119 |
+ |
120 |
+ keepdir /var/log/${PN} |
121 |
+ insinto /etc/logrotate.d |
122 |
+ newins "${FILESDIR}"/${PN}.logrotate ${PN} |
123 |
+ |
124 |
+ if use tools; then |
125 |
+ systemd_dounit cmd/stdiscosrv/etc/linux-systemd/stdiscosrv.service |
126 |
+ newconfd "${FILESDIR}"/stdiscosrv.confd stdiscosrv |
127 |
+ newinitd "${FILESDIR}"/stdiscosrv.initd-r1 stdiscosrv |
128 |
+ |
129 |
+ systemd_dounit cmd/strelaysrv/etc/linux-systemd/strelaysrv.service |
130 |
+ newconfd "${FILESDIR}"/strelaysrv.confd strelaysrv |
131 |
+ newinitd "${FILESDIR}"/strelaysrv.initd-r1 strelaysrv |
132 |
+ |
133 |
+ insinto /etc/logrotate.d |
134 |
+ newins "${FILESDIR}"/stdiscosrv.logrotate strelaysrv |
135 |
+ newins "${FILESDIR}"/strelaysrv.logrotate strelaysrv |
136 |
+ fi |
137 |
+} |
138 |
+ |
139 |
+pkg_postinst() { |
140 |
+ xdg_desktop_database_update |
141 |
+} |
142 |
+ |
143 |
+pkg_postrm() { |
144 |
+ xdg_desktop_database_update |
145 |
+} |