From ae262e5305a9522d3a3ff7edce1a45a9ea8d4718 Mon Sep 17 00:00:00 2001 From: Marc Schiffbauer Date: Wed, 8 Apr 2026 11:02:55 +0200 Subject: [PATCH] net-p2p/syncthing: add 2.0.16 Signed-off-by: Marc Schiffbauer --- net-p2p/syncthing/Manifest | 2 + net-p2p/syncthing/syncthing-2.0.16.ebuild | 125 ++++++++++++++++++++++ 2 files changed, 127 insertions(+) create mode 100644 net-p2p/syncthing/syncthing-2.0.16.ebuild diff --git a/net-p2p/syncthing/Manifest b/net-p2p/syncthing/Manifest index 6d63cd5a30717..de5c3cc6d5f15 100644 --- a/net-p2p/syncthing/Manifest +++ b/net-p2p/syncthing/Manifest @@ -5,3 +5,5 @@ DIST syncthing-source-v2.0.14.tar.gz 62621377 BLAKE2B 0b7228ab9cb749622fcdbb7856 DIST syncthing-source-v2.0.14.tar.gz.asc 1391 BLAKE2B 5c504167484a2bcbf04e48769602fcc5a039fcccc756a8989efc6e448cdf31827c153a25fed6b9c4e636acb54c26d00ba7c5a672d8cf2cd33d929c7a142a0470 SHA512 493d3d47872e0b11aa3c55aed68dcce8941e4ac93fe1175623f3a77a6acee09074aef665c4c62eb8e5e92fa4dfdab9dfad5859686ca4f88d110204e3c639bbf7 DIST syncthing-source-v2.0.15.tar.gz 62690897 BLAKE2B 532e5d56b27bdec444495fef4616a204c55a17b00ad7f8b2140d9a50d7e686ed56e9693b28dd8de56444de85869bbd4274a26f37ed39deb5d9779f86691836f2 SHA512 51aa331a843c9e87c990a1379ef88736a6de8e4994a623badc019b6d86400963470ea70cfa719a4001d63e77f7b78fcc75413761b5713d43ae5d0a80758ec7c1 DIST syncthing-source-v2.0.15.tar.gz.asc 1391 BLAKE2B 7baf7edcaa3ab1b332d047c6b03b734a6ccd4ea9c4a778b08f5c89a1e5b917b48a3a8755f1c80c7a221b9351b38a61053b7e9cb6eb561ef2ba8189a2afb72657 SHA512 d62a11ca3c20910cd815160f0abc6080ad413ae96f7ab51c36f84b1f9b4e23bcf47fc9845af402d9967820352fa976580fb5e237c839b47f2382fdb71bfc75aa +DIST syncthing-source-v2.0.16.tar.gz 62749079 BLAKE2B a9c5f3f7c26506e1997d0e28713fee30c31fec6d79c2e89405e6b3f5f4fb0834d23eb380ad87ac2752d91aea5208b1955e91e92a47dd2a53080bb4b54890e800 SHA512 e5556a56ffcbe1f2830f6225e3acb0e5b15d879704908d94f8fbb9e06a520e5233600f11da469e220a36a55a6e96c1a2a6b7d4c67b50a18136018d089051e6fd +DIST syncthing-source-v2.0.16.tar.gz.asc 1391 BLAKE2B ae28c7037514065d63d784c3085c94e249626ad72b37b887dc9d49038ba3b89ec6be9884132ab5b19053d565e2da393ae71d850cd9515e6da983f29a75b47c90 SHA512 6821ac6ab15e5a9ca5f3944a2d4da20febaba1d9d41ee485492511a7cdf399e363e34fb44c94640e401e31befccace6a408f82891f55ded09406580923a41104 diff --git a/net-p2p/syncthing/syncthing-2.0.16.ebuild b/net-p2p/syncthing/syncthing-2.0.16.ebuild new file mode 100644 index 0000000000000..55503a7c732b5 --- /dev/null +++ b/net-p2p/syncthing/syncthing-2.0.16.ebuild @@ -0,0 +1,125 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit eapi9-ver desktop go-module systemd verify-sig xdg + +DESCRIPTION="Open Source Continuous File Synchronization" +HOMEPAGE="https://syncthing.net https://github.com/syncthing/syncthing" +SRC_URI=" + https://github.com/${PN}/${PN}/releases/download/v${PV}/${PN}-source-v${PV}.tar.gz + verify-sig? ( + https://github.com/${PN}/${PN}/releases/download/v${PV}/${PN}-source-v${PV}.tar.gz.asc + ) +" +S="${WORKDIR}"/${PN} + +LICENSE="MPL-2.0 Apache-2.0 BSD BSD-2 CC0-1.0 ISC MIT Unlicense" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86" +IUSE="selinux tools" + +DEPEND=" + dev-db/sqlite:3 +" +RDEPEND=" + ${DEPEND} + acct-group/syncthing + acct-user/syncthing + tools? ( + >=acct-user/stdiscosrv-1 + >=acct-user/strelaysrv-1 + ) + selinux? ( sec-policy/selinux-syncthing ) +" +BDEPEND=" + verify-sig? ( sec-keys/openpgp-keys-syncthing ) +" + +VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/syncthing.asc + +DOCS=( AUTHORS {GOALS,README}.md ) + +PATCHES=( + "${FILESDIR}"/${PN}-1.3.4-TestIssue5063_timeout.patch + "${FILESDIR}"/${PN}-1.18.4-tool_users.patch + "${FILESDIR}"/${PN}-1.29.5-remove_race_in_tests.patch #955442 +) + +src_prepare() { + # Bug #679280 + xdg_environment_reset + + default + + local srv + for srv in st{disco,relay}srv; do + sed -i \ + 's|^ExecStart=.*|ExecStart=/usr/libexec/${PN}/${srv}|' \ + cmd/${srv}/etc/linux-systemd/${srv}.service || die + done; +} + +src_compile() { + # https://github.com/mattn/go-sqlite3#linux + # -tags libsqlite3: use system sqlite3 instead of bundled + ego run build.go -version "v${PV}" -tags "libsqlite3" -no-upgrade -build-out=bin/ \ + build $(usev tools all) +} + +src_test() { + ego run build.go test +} + +src_install() { + dobin bin/${PN} + + doman man/*.[157] + einstalldocs + + domenu etc/linux-desktop/${PN}-{start,ui}.desktop + local -i icon_size + for icon_size in 32 64 128 256 512; do + newicon -s ${icon_size} assets/logo-${icon_size}.png ${PN}.png + done + newicon -s scalable assets/logo-only.svg ${PN}.svg + + systemd_dounit etc/linux-systemd/system/${PN}@.service + systemd_douserunit etc/linux-systemd/user/${PN}.service + newconfd "${FILESDIR}"/${PN}.confd-r2 ${PN} + newinitd "${FILESDIR}"/${PN}.initd-r5 ${PN} + exeinto /etc/user/init.d + newexe "${FILESDIR}"/syncthing.initd-user-r2 syncthing + + keepdir /var/log/${PN} + insinto /etc/logrotate.d + newins "${FILESDIR}"/${PN}.logrotate ${PN} + + insinto /etc/ufw/applications.d + doins etc/firewall-ufw/${PN} + + if use tools; then + exeinto /usr/libexec/${PN} + insinto /etc/logrotate.d + + local srv + for srv in st{disco,relay}srv; do + doexe bin/${srv} + systemd_dounit cmd/${srv}/etc/linux-systemd/${srv}.service + newconfd "${FILESDIR}"/${srv}.confd ${srv} + newinitd "${FILESDIR}"/${srv}.initd-r1 ${srv} + + newins "${FILESDIR}"/${srv}.logrotate ${srv} + done + fi +} + +pkg_postinst() { + xdg_pkg_postinst + + if ver_replacing -lt 2.0 ; then + elog "Major changes in 2.0:" + elog "https://github.com/syncthing/syncthing/blob/v${PV}/relnotes/v2.0.md" + fi +}