summaryrefslogtreecommitdiff
path: root/net-p2p
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-03-23 19:01:15 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-03-23 19:01:15 +0000
commit36fc50e36ed1a4686bb7202aeaff3170b2206124 (patch)
tree7b5feb28a3ad8ba78d57f64c93cc796cff95cd53 /net-p2p
parentacc2dacf2ee9a5b03df96da670153f2e3a24d80c (diff)
gentoo auto-resync : 23:03:2024 - 19:01:14
Diffstat (limited to 'net-p2p')
-rw-r--r--net-p2p/Manifest.gzbin6918 -> 6916 bytes
-rw-r--r--net-p2p/syncthing/Manifest3
-rw-r--r--net-p2p/syncthing/files/syncthing-1.27.4-tests_race.patch24
-rw-r--r--net-p2p/syncthing/syncthing-1.27.4.ebuild113
4 files changed, 140 insertions, 0 deletions
diff --git a/net-p2p/Manifest.gz b/net-p2p/Manifest.gz
index 6ddf3b26649e..a875b76f2379 100644
--- a/net-p2p/Manifest.gz
+++ b/net-p2p/Manifest.gz
Binary files differ
diff --git a/net-p2p/syncthing/Manifest b/net-p2p/syncthing/Manifest
index 7961f71f21ee..759a7a4de830 100644
--- a/net-p2p/syncthing/Manifest
+++ b/net-p2p/syncthing/Manifest
@@ -6,10 +6,13 @@ AUX strelaysrv.initd-r1 695 BLAKE2B e888d5c43f1638c2fa281e0b81f520c323dfc9a719f9
AUX strelaysrv.logrotate 102 BLAKE2B 3d19a7dcade5878e7b7f275572ab2d5232ea3d043b720fa17c208dca456c3e82b5d5158df6633c6fd15d16aa0680bb2a642ba0daf440754fab281e94e69f327d SHA512 2f94be8af78b1beb567a7e6b7177aaa6451cd1ae63ef2842369879cc2e8e0cc2c615f68ce26d7031fbb7268788f7c210c03c33de52ff064b48ca42231613be85
AUX syncthing-1.18.4-tool_users.patch 757 BLAKE2B 62492e8ab952af6b1726517d21c8bf153d2bb8e0819428afd11f367b75f0918cc10a37da537bcdcc789fea4f614428fd416adfdd6b1989c9bfc0e946af0b8424 SHA512 368e9e749a6d7a1963d9d2b5b76bc4ce32cf96ec81700b0c620ac3ce4fe7f4fa4234bf953bf33f4ae1176ce7cd2e9d3d2b09878503de2685bb5e387058afb8ea
AUX syncthing-1.23.2-tests_race.patch 588 BLAKE2B 19a143c323f7550f30d83284a4f939529e68115beeb8af4669250e712e89ad4a24ebdd791a798a8e27b4126d63335ce5947587cb30ccd9414fcb76e009f050f2 SHA512 6519516f18a6d60480ed3d9d73bb9aa64a3756eafc9923ad91a530df015042143d47a40f7d0d287eadd51b98450c98d150e0a818b3b28a6792ef09da32134901
+AUX syncthing-1.27.4-tests_race.patch 612 BLAKE2B 3160778ad9d88c8b1fae62bf64cb2961de6ba80c5a9a6dbb9cdd69624b97325ad983b3c63aba192514c80b0acdc98581c07e5ae56163144e647b1c0b75f31445 SHA512 7bdcc22d47b4500031f8fd3b89a64ffc4ddb86d8eb6e33f49389b3fe627c32ceaca30858d3fb59e22e11cff141efcea9e98fdd7a55c9ec16a5e866dbc3771db8
AUX syncthing-1.3.4-TestIssue5063_timeout.patch 641 BLAKE2B 193a86b692bd65059f01bdb07361e3912fc332488195d80258105efc2aeca5c504c44897c646f707112a71e6f8dbf2dee97e11c24b8f37dee6edbd2f43db7579 SHA512 462c16526a0e1a22df67fc893134fc777b7d7ba9219479e8c88115b951f17c210adbb34a80f242fdbe0f8a88516b003573b7bb3cf9b053dd57dc140f40afdce2
AUX syncthing.confd 733 BLAKE2B dec494bd35422f57dd8b6d848325933da909000d79b3d3193cff26528f13f639f221ba9b801356694da6720f35b84bf6aa024120024e547dc8b2fc84c5b18b91 SHA512 84f2731866b279d16dd2e17c27987fd99e7440c334771ed44e2204405b97082d7d68bc56257fa13befcc3e2cdfdbd40c7c4be3a614b259c4e7ca2c327a24bb9f
AUX syncthing.initd-r2 1288 BLAKE2B a1c74a4de5bfe61fe4e57f7be358a4ba2df28a92fd48e933fa1c67b7beb72281617c3a11d2e379e97a6e57c2378ae8d88fbdb7c80ba3d6e9513833eebd06eff5 SHA512 4f86a81112df1ba15f92bd88999ba632e4a3ba4a6e5a150b2d60a82011bd35f177f86e81a51e95e10b99f4be7698ebd2786ca423635d576872fccec7607c1564
AUX syncthing.logrotate 101 BLAKE2B af499a6979e5c61cc4791932e247fe7f25baffbbf690907a2e2b8c2954da72154a885759589249c541f36b2740980f3fcd3e99db0d3f6d5a1bacee8c1574f9bc SHA512 73a5f7062b48ab4c7b343b43367b1999f8e133eadb624bd5e3e147ae41f135ded6acb4c617db2d385311441c9a52c288333791308c36762cb5273a853cce5a67
DIST syncthing-1.27.2.tar.gz 14967954 BLAKE2B 8f033e18679f7accc3d461566da88fa45b2e1c8dc1b1b5ace2732e3987d82e8d458c42dc3571f7d1199cf35667be72fcf81b65efa9cd2dac65297bc86b03e284 SHA512 6b6bd57268b32b5db2377cf813229de978e26de606ac3bf2b515ddb35fd8131fafdb88abbfac1cb7d0f443224538cca7a6eba64f4bd737135f5a1c98e76439f9
+DIST syncthing-1.27.4.tar.gz 15085218 BLAKE2B 25a87551f9c1af2b30076fb439a93a26335c63290f1192d2bc040d526fc9b3c2948103db84dd5fcb16d67810b228e23aa3f1e6f9e9a79dbdb75b983ff4376064 SHA512 fc28ca066adeccd10281a6ccd50c336942bfbbdaedd954028cc2ee40c09ad85ef0a7fcfe733d3045d6979dd22cddd2fa5979d605440ebe3d2fd90c7f911c3c73
EBUILD syncthing-1.27.2.ebuild 2918 BLAKE2B ba78b1eb3e761a50c4111fa2cec4eb9d17eac0f28301cf9f78a812012e8d9193d0c4453e6a2b60e937da66f1e3ab0e0434b24bd9d52d38e57f93aaa51b3c46c0 SHA512 9bcda8e8817123a15dd7121e8c55ec23de3ac4cefde0bd1c98499e12a06c58a4e5cd6c1e6301f03b5ee3baa31a9b39d42fc281e9d5aef2d7989b8add85eba8e7
+EBUILD syncthing-1.27.4.ebuild 2923 BLAKE2B bbeaf25ec46a4ff8e2c8a3805b1dc04033ab5d1fb9909e47d3cfb08a8a90df642940bee2c07cf02fd47a588b06ac27bcbd06d5a60225a88d18dd8664d2cf28bb SHA512 3ea1fa41b322acd0e37bd4ed28a0a50b07a522148f542c5935acf147169d6f528cd1a9ac97120c422bdb28fdab1027ca850952ab8179d93c882c2564a3821337
MISC metadata.xml 870 BLAKE2B 9d6abd4129ab6ab9ece49e3cb74b6537cf185c5e7e0d7cf893543ea6e75be83e534a8d3f4d042aeb778f9284c9ed7a6f2d60461593ae46f65901a42a3582acc2 SHA512 ef4f1fb81733a7c53f4deb239de1d01d4d2710cf92cb4abfb49659f64bfe5a080c3ab50ec9ec9bda531d0ca87f2f5b9ac80fe1beba1eaaccd1971b1759b3e93a
diff --git a/net-p2p/syncthing/files/syncthing-1.27.4-tests_race.patch b/net-p2p/syncthing/files/syncthing-1.27.4-tests_race.patch
new file mode 100644
index 000000000000..1c83a03ec00f
--- /dev/null
+++ b/net-p2p/syncthing/files/syncthing-1.27.4-tests_race.patch
@@ -0,0 +1,24 @@
+--- a/build.go
++++ b/build.go
+@@ -34,7 +34,6 @@
+ "time"
+
+ _ "github.com/syncthing/syncthing/lib/automaxprocs"
+- buildpkg "github.com/syncthing/syncthing/lib/build"
+ )
+
+ var (
+@@ -416,13 +415,6 @@
+ }
+ args = append(args, "-timeout", timeout)
+
+- if runtime.GOARCH == "amd64" {
+- switch runtime.GOOS {
+- case buildpkg.Darwin, buildpkg.Linux, buildpkg.FreeBSD: // , "windows": # See https://github.com/golang/go/issues/27089
+- args = append(args, "-race")
+- }
+- }
+-
+ if coverage {
+ args = append(args, "-covermode", "atomic", "-coverprofile", "coverage.txt", "-coverpkg", strings.Join(pkgs, ","))
+ }
diff --git a/net-p2p/syncthing/syncthing-1.27.4.ebuild b/net-p2p/syncthing/syncthing-1.27.4.ebuild
new file mode 100644
index 000000000000..b3b0c4165490
--- /dev/null
+++ b/net-p2p/syncthing/syncthing-1.27.4.ebuild
@@ -0,0 +1,113 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit desktop go-module systemd xdg-utils
+
+DESCRIPTION="Open Source Continuous File Synchronization"
+HOMEPAGE="https://syncthing.net"
+SRC_URI="https://github.com/${PN}/${PN}/releases/download/v${PV}/${PN}-source-v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0 BSD BSD-2 CC0-1.0 ISC MIT MPL-2.0 Unlicense"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~x86"
+IUSE="selinux tools"
+
+RDEPEND="acct-group/syncthing
+ acct-user/syncthing
+ tools? ( >=acct-user/stdiscosrv-1
+ >=acct-user/strelaysrv-1 )
+ selinux? ( sec-policy/selinux-syncthing )"
+BDEPEND=">=dev-lang/go-1.20.0"
+
+DOCS=( README.md AUTHORS CONTRIBUTING.md )
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.3.4-TestIssue5063_timeout.patch
+ "${FILESDIR}"/${PN}-1.18.4-tool_users.patch
+ "${FILESDIR}"/${PN}-1.27.4-tests_race.patch
+)
+
+S="${WORKDIR}"/${PN}
+
+src_prepare() {
+ # Bug #679280
+ xdg_environment_reset
+
+ default
+ sed -i \
+ 's|^ExecStart=.*|ExecStart=/usr/libexec/syncthing/stdiscosrv|' \
+ cmd/stdiscosrv/etc/linux-systemd/stdiscosrv.service \
+ || die
+ sed -i \
+ 's|^ExecStart=.*|ExecStart=/usr/libexec/syncthing/strelaysrv|' \
+ cmd/strelaysrv/etc/linux-systemd/strelaysrv.service \
+ || die
+}
+
+src_compile() {
+ GOARCH= go run build.go -version "v${PV}" -no-upgrade -build-out=bin/ \
+ ${GOARCH:+-goarch="${GOARCH}"} \
+ build $(usex tools "all" "") || die "build failed"
+}
+
+src_test() {
+ go run build.go test || die "test failed"
+}
+
+src_install() {
+ local icon_size
+
+ doman man/*.[157]
+ einstalldocs
+
+ dobin bin/syncthing
+
+ domenu etc/linux-desktop/*.desktop
+ 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
+
+ if use tools; then
+ exeinto /usr/libexec/syncthing
+ local exe
+ for exe in bin/* ; do
+ [[ "${exe}" == "bin/syncthing" ]] || doexe "${exe}"
+ done
+ fi
+
+ systemd_dounit etc/linux-systemd/system/${PN}{@,-resume}.service
+ systemd_douserunit etc/linux-systemd/user/${PN}.service
+ newconfd "${FILESDIR}"/${PN}.confd ${PN}
+ newinitd "${FILESDIR}"/${PN}.initd-r2 ${PN}
+
+ keepdir /var/log/${PN}
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}"/${PN}.logrotate ${PN}
+
+ if use tools; then
+ systemd_dounit cmd/stdiscosrv/etc/linux-systemd/stdiscosrv.service
+ newconfd "${FILESDIR}"/stdiscosrv.confd stdiscosrv
+ newinitd "${FILESDIR}"/stdiscosrv.initd-r1 stdiscosrv
+
+ systemd_dounit cmd/strelaysrv/etc/linux-systemd/strelaysrv.service
+ newconfd "${FILESDIR}"/strelaysrv.confd strelaysrv
+ newinitd "${FILESDIR}"/strelaysrv.initd-r1 strelaysrv
+
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}"/stdiscosrv.logrotate strelaysrv
+ newins "${FILESDIR}"/strelaysrv.logrotate strelaysrv
+ fi
+}
+
+pkg_postinst() {
+ xdg_desktop_database_update
+ xdg_icon_cache_update
+}
+
+pkg_postrm() {
+ xdg_desktop_database_update
+ xdg_icon_cache_update
+}