summaryrefslogtreecommitdiff
path: root/net-p2p
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2019-11-10 13:21:36 +0000
committerV3n3RiX <venerix@redcorelinux.org>2019-11-10 13:21:36 +0000
commit77398e424e45d9e98c1cef3c43bdadb9d56e81ef (patch)
tree5aeffd3fc7b92fc615bd2c222fa8831aeda1925b /net-p2p
parentbd4aeefe33e63f613512604e47bfca7b2187697d (diff)
gentoo resync : 10.11.2019
Diffstat (limited to 'net-p2p')
-rw-r--r--net-p2p/Manifest.gzbin8262 -> 8100 bytes
-rw-r--r--net-p2p/ctcs/Manifest3
-rw-r--r--net-p2p/ctcs/ctcs-1.4.1.ebuild21
-rw-r--r--net-p2p/ctcs/metadata.xml5
-rw-r--r--net-p2p/ktorrent/Manifest2
-rw-r--r--net-p2p/ktorrent/ktorrent-5.1.2-r2.ebuild2
-rw-r--r--net-p2p/qbittorrent/Manifest2
-rw-r--r--net-p2p/qbittorrent/qbittorrent-9999.ebuild2
-rw-r--r--net-p2p/syncthing/Manifest2
-rw-r--r--net-p2p/syncthing/syncthing-1.3.1.ebuild161
10 files changed, 167 insertions, 33 deletions
diff --git a/net-p2p/Manifest.gz b/net-p2p/Manifest.gz
index 8ea3c7ae033d..04d7a6c97999 100644
--- a/net-p2p/Manifest.gz
+++ b/net-p2p/Manifest.gz
Binary files differ
diff --git a/net-p2p/ctcs/Manifest b/net-p2p/ctcs/Manifest
deleted file mode 100644
index 6732fa7dc49e..000000000000
--- a/net-p2p/ctcs/Manifest
+++ /dev/null
@@ -1,3 +0,0 @@
-DIST ctcs-1.4.1.tar.gz 27384 BLAKE2B 610f5505091ede97939213df8a1ef981c66e437abc7eef05ca42e0008aea549bda8c86a537760d173bf176ad647f459fc645617b01929cb172f483a922e89f1c SHA512 363ad9e61dfe24a5e49affe03d79e14371062c7fc0730daa9004bb16e263682bff99037995ea09580f501eb63b9ddc3c6ac24d71eee7b88838bad428f3373c34
-EBUILD ctcs-1.4.1.ebuild 479 BLAKE2B 2fa066b5e67e442fd295b513cf1542374b95372953c1d2876a41e30dd1be28ae4918efe7db0e0b006076b15623182128a1e56b2a41998f56a4814e99b33f8a37 SHA512 b75030c37e43eba28e951471c47b010bc3da686688eba72af4d14638c4f18bda65f9a7ae93e3af74f9610746993ce9bf3362974a99d21a370a10def4a67b49e9
-MISC metadata.xml 166 BLAKE2B c254f1fb642881aba57637be14fb0a89b10384f91a128feaec3a8c870d76efc2cbacb92caccc0dee2dd19a5ac5eaf8643080dafa05c4e2ac96a68568927e5afd SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84
diff --git a/net-p2p/ctcs/ctcs-1.4.1.ebuild b/net-p2p/ctcs/ctcs-1.4.1.ebuild
deleted file mode 100644
index 651ab52c665a..000000000000
--- a/net-p2p/ctcs/ctcs-1.4.1.ebuild
+++ /dev/null
@@ -1,21 +0,0 @@
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=0
-
-DESCRIPTION="interface for monitoring and managing Enhanced CTorrent clients"
-HOMEPAGE="http://www.rahul.net/dholmes/ctorrent/ctcs.html"
-SRC_URI="http://www.rahul.net/dholmes/ctorrent/${P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="amd64 ppc x86"
-IUSE=""
-
-RDEPEND="dev-lang/perl
- >=net-p2p/ctorrent-3.3.1"
-
-src_install() {
- dobin ctcs || die
- dodoc readme.txt
-}
diff --git a/net-p2p/ctcs/metadata.xml b/net-p2p/ctcs/metadata.xml
deleted file mode 100644
index 6f49eba8f496..000000000000
--- a/net-p2p/ctcs/metadata.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
-<!-- maintainer-needed -->
-</pkgmetadata>
diff --git a/net-p2p/ktorrent/Manifest b/net-p2p/ktorrent/Manifest
index a295d11d2903..d737fd87eead 100644
--- a/net-p2p/ktorrent/Manifest
+++ b/net-p2p/ktorrent/Manifest
@@ -7,5 +7,5 @@ AUX ktorrent-5.1.2-crash-on-exit.patch 13261 BLAKE2B 735100f666ad7b6d0dccfcf3b5c
DIST ktorrent-5.1.1.tar.xz 2049392 BLAKE2B 09ad841e1b6d7f332b19e2a660130b1f2b998cd6839614800cde7c99c8ec7f119f2adbdc3d9e06c8525e2dde534d73dab521c7df1d01b2fd0eb6b11fbb868d8f SHA512 bbe744853018380e30efc6ef95916a9b6f0ebec812d70d7970e5e7183d860d147b0693dd0107b146a5987aa27f30cd335fad73c8967839d53eee1c5b63a53c06
DIST ktorrent-5.1.2.tar.xz 2048604 BLAKE2B 761df1e0aab5c4457311ae821a47ebf7b5b82b2839b4bf238491231caa213370cc649a1c0cafd332b42bbb84230f4a313e5172db722ff3c7af81c0daba450a98 SHA512 b62d05650216721299dc9db23da1a2d6ae5d3b77583ad4bd99ac032d7b135cce567feff3b66d27ac001d77e30517112e4e8c8bf8e83c1106a79509ec45498621
EBUILD ktorrent-5.1.1-r1.ebuild 3192 BLAKE2B 5d0e9eb5e8a38f4f81c1928158f96973695f179fe7e423317e00959627ea2b66547d1ad043297898dd06ddb230735c1999180c3b43e7385d44689b4b74053ace SHA512 ee10006a6f529e1860f9499cf85df90e19ec8f2c39d03c714465e8a72104bfd82ee09b062f56307c9483f579d1df646549d2bd17df4a77f62e4b9ad3cec31899
-EBUILD ktorrent-5.1.2-r2.ebuild 3117 BLAKE2B 6def5bacd79003cfb07ee10db374c4a2074ed2715a8ec46819b9f7530ba7b0b161ddab4fe5a56a9111eeac3b4441820b78f7b2097b185303123cb7e8d9bca549 SHA512 b437859dabd46d654f28d571ed911b20ab6d262bdcc5c468b8169f9d74bfe2337b502c7e8474a808fb198d9f0332357d5042b961a5220448f09e693a31189f7d
+EBUILD ktorrent-5.1.2-r2.ebuild 3116 BLAKE2B 82308ad33f720e1227de906fd5d5d43040ca14010d49ef9699f80810619a825eb9e6f86d702ff9299b4bf96cc46c60f042c907dada286fe8d160c467e8c3c274 SHA512 42a9685512c197308bc791574cf2c6936d81ca4abbf0b9804aae513550059d9c1605852985972d5a6cc56643b95af17d9ec58dbd0e3148bbb5157396a3804fe4
MISC metadata.xml 1341 BLAKE2B 91b9b58b6df009f42960708b09f926b3bdf6849ebffd8d46114c28c7f2df2c0972a8b5460333ac6758f138729a7c689f6a61d4a58494bc44af2e364d1dbc3e05 SHA512 dfff24b08dba8615c983c1360fe10efcb60744651d5484a8bd1a7a731697b9dd4a10126b8d66276f96a8524352b1e4ba99b28b773d292362b3f7506a45da5a80
diff --git a/net-p2p/ktorrent/ktorrent-5.1.2-r2.ebuild b/net-p2p/ktorrent/ktorrent-5.1.2-r2.ebuild
index e87eb859a2a6..95f9bf8408b4 100644
--- a/net-p2p/ktorrent/ktorrent-5.1.2-r2.ebuild
+++ b/net-p2p/ktorrent/ktorrent-5.1.2-r2.ebuild
@@ -13,7 +13,7 @@ HOMEPAGE="https://kde.org/applications/internet/ktorrent/"
[[ ${KDE_BUILD_TYPE} = release ]] && SRC_URI="mirror://kde/stable/${PN}/${PV/%.0}/${P}.tar.xz"
LICENSE="GPL-2"
-KEYWORDS="amd64 ~arm64 ~x86"
+KEYWORDS="amd64 arm64 ~x86"
IUSE="+bwscheduler +downloadorder +infowidget +ipfilter +kross +logviewer +magnetgenerator
+mediaplayer rss +scanfolder +search +shutdown +stats +upnp +zeroconf"
diff --git a/net-p2p/qbittorrent/Manifest b/net-p2p/qbittorrent/Manifest
index f947088fee08..968ed99da77d 100644
--- a/net-p2p/qbittorrent/Manifest
+++ b/net-p2p/qbittorrent/Manifest
@@ -4,5 +4,5 @@ DIST qbittorrent-4.1.9.1.tar.gz 7804066 BLAKE2B b5fddfdef8773318991ee5a3a818101b
EBUILD qbittorrent-4.1.7.ebuild 1471 BLAKE2B 4425b0c76189dc80766092cfcea3939951918051fe73c14c9b7bc270ce4cdd4cea1bf9d879ca0aa1791d197bd331e4426fdb195eae78d59e0764cbff948d45d5 SHA512 e3660d0920d56b236f0309eeb9af01b4fe83d091687a814970ea33d7c5ed7be242bb1f7996b0cbbbacfd3b3e998250b175c412d0abca05a42b53bf80fc35bada
EBUILD qbittorrent-4.1.8.ebuild 1473 BLAKE2B 38ea60d9fb804e3aeb123b1d38c4d56531824be5b161394bc592f2d42becb3addfc91056758538d4bb1f6308893be44a15b50879a7a13e239b9223bb041a6aba SHA512 25c6f38eda2e3726814578c313eeb8c67f1b3e903ead60a53421255771f3e73346518182c6fc4e483f2ba392ea1dd09bc49dbc79854357facba9a00ef08091db
EBUILD qbittorrent-4.1.9.1.ebuild 1473 BLAKE2B 38ea60d9fb804e3aeb123b1d38c4d56531824be5b161394bc592f2d42becb3addfc91056758538d4bb1f6308893be44a15b50879a7a13e239b9223bb041a6aba SHA512 25c6f38eda2e3726814578c313eeb8c67f1b3e903ead60a53421255771f3e73346518182c6fc4e483f2ba392ea1dd09bc49dbc79854357facba9a00ef08091db
-EBUILD qbittorrent-9999.ebuild 1476 BLAKE2B 17de90559b1830bd74b745589e7fdd9f3b6eb9de191ab0e6083bbafe66143549117ab94bc5dd0fd587c17a3e34f7b7775121c622ec4333e9ec648a41d6cd37fd SHA512 bffb41425575c458fd7db4eba7ec071dbad620cb65c84aab7a18b4b9670587eee33139b12e9a370875857b6f806531ad24ee32b740538e6e94b055ccfc185acd
+EBUILD qbittorrent-9999.ebuild 1478 BLAKE2B 9328a7905de1ffdd04afb0007414a705bb921283419ecf37020f9cbb842a8d3e2473169cd9e3ac2fc2f3e7e1fe0f104ea7acc6e219a1fdae29cee59d54ac8da5 SHA512 63d83a0918856ee30713ae832aa6ec2431fc77cf8daa2dc2ff53adcf2b7569dfa09ac03c0d23c6e0ce9d70ddbd1c282f71742f4b3f40c1f920fcc8448a396256
MISC metadata.xml 452 BLAKE2B 80b94ef467eaad04be0f17b8d15d1af20a2d09f27825a2c315445fb82c33bbcb35ca5c81e40b7ff21a0496b03f030a2d30b92fd2b39caafce47b7295d4daf98d SHA512 bce9d619f6c591237e412393678d54db4fe55fbd3ab52d191860bc97c7245e199c9630c8b76ea885fe195b486231b65906dc099361ccff59fe0adca08059c85e
diff --git a/net-p2p/qbittorrent/qbittorrent-9999.ebuild b/net-p2p/qbittorrent/qbittorrent-9999.ebuild
index 30188ae78c36..ac238de93e5d 100644
--- a/net-p2p/qbittorrent/qbittorrent-9999.ebuild
+++ b/net-p2p/qbittorrent/qbittorrent-9999.ebuild
@@ -29,7 +29,7 @@ RDEPEND="
dev-qt/qtnetwork:5[ssl]
>=dev-qt/qtsingleapplication-2.6.1_p20130904-r1[qt5(+),X?]
dev-qt/qtxml:5
- =net-libs/libtorrent-rasterbar-1.1*:0=
+ >=net-libs/libtorrent-rasterbar-1.2.0:0=
sys-libs/zlib
dbus? ( dev-qt/qtdbus:5 )
X? (
diff --git a/net-p2p/syncthing/Manifest b/net-p2p/syncthing/Manifest
index 0cc3d7fe7087..3c541af31c8e 100644
--- a/net-p2p/syncthing/Manifest
+++ b/net-p2p/syncthing/Manifest
@@ -113,7 +113,9 @@ DIST github.com-vitrun-qart-bf64b92db6b05651d6c25a3dabf2d543b360c0aa.tar.gz 2397
DIST syncthing-1.1.4.tar.gz 4700261 BLAKE2B bf766d7d3701ac66d0d4ac266d9b4a9f02b2f97a6fa320b192f3e46fbe9055091ea5ae71bf405ccce4a9665efdf41477098af3b98562ea06bf0c4f828653bd51 SHA512 cb57cdf6bbab0147a700f72e800cddff0855835280a176883089e5e1dc06352e0dacf615569a35b16f98a857651f534c915f369c46bb592d416d7a01efe5b5ba
DIST syncthing-1.2.1.tar.gz 4740427 BLAKE2B 2f102100030f646f069a51c5af7c5ab448ea59fa0629d78b14432e32cbfbe90f1b95c49cc3d5812b8cd228ef0454ba5d95f9ddf5910492370018234bc1c66438 SHA512 226386af38c3e99434496f24aa571bd1edd3d1e0528dac06c08b4148b2c63b898b67261728cc6c92dbd0496c24b32f0b1189571d03f6ab5dd592e78f2a5beb3b
DIST syncthing-1.3.0.tar.gz 4753744 BLAKE2B 1fb731ca41fa2c703af7cc6cccdf7fabbee3972a6146f8f92cc8f5a2635083956134c46396f9b64e3b67d8377e4e74b59cfdde98cc4f92741f638f5b48e431c0 SHA512 aea1f979f3441e81c10dfbf0a5c22080814486a16999eabf7179928c6ea960c0f49d6684ea8626ffb2e2431777231e30c5de326fc500f17ee9c51e74cb1b3d5a
+DIST syncthing-1.3.1.tar.gz 4753853 BLAKE2B b0e4a3b435ba08718203b7009586f5c360dbeac110fc2a9755ac5202bc689c634fb0e31c861e16f401326ec7e99aa2fecb671943e5da27202173f6d70616bafa SHA512 a5f5de85d719379c6d312fa1051d6a0761e3ed73014c8e5b95b26bb0ab264a48f114d210a46f0e990b0535494873a5997284a6acaa0337d1f082bbcd847ab664
EBUILD syncthing-1.1.4.ebuild 5974 BLAKE2B 2115e3d26f93044b48cc361b0b65be68ba9624a24fc14e6c7272ecd675d02ce99bbf6cf978a9e7d806bb5b504edeae5ed1f8843e7cb21ceab03a65a4b66aa2f9 SHA512 d5feaccbca635da35adf513f98dcc2a12cdb94279c9befd1d98acfa81372e7f9ddada2acf93050e4e6c1eab1fda087c10502c7cefd4eda25fd12273e99f5e59e
EBUILD syncthing-1.2.1.ebuild 5574 BLAKE2B 7c4d6538463495a4953ac832eadb75912c5d52898956e3bea05d189f2238e212583a777b2c4f51d59236f80264af294b9dff3a71149daadf22dcb0f9845a08cd SHA512 90214fc183320a8037868b4d461239d62e1d87299f597c485551e89e5181ad06d83b148de4496af15851bae88f884c6b9601cdaa39d6bc14151476a0e4ade5a1
EBUILD syncthing-1.3.0.ebuild 5605 BLAKE2B ccbe4c2e84102da99b1a91a367b5377bbcbcd4c752b6edba257a420485da2d54cf6b0e867e40668384793d6840d3d9f6948981b634ce1224ca529ca98a140d40 SHA512 b6931ecb5fb6abd6710774773d9d46963bb15ca1baaa9a2406429b7edb6ef8c29181c42dcaad6795c6f284f700afc827819bf73b42d5b35ff1a2c8b94b7854e7
+EBUILD syncthing-1.3.1.ebuild 5627 BLAKE2B f36fb0b8d92ec5bc448ed96123b414ff27820e2a5f2b11dd3d6476b31ade267918be27896aee576115bff52941e6794e639e18172eaecfca530f1d1ba61f1693 SHA512 049ce757f54a1786fac4758ea108471ba49218d45f9d7900c460d4c6041a2f7abd15c0a66c29ca9ef2a180e9397a5f970a5bfda9a8af427315e3f5b765c34ee8
MISC metadata.xml 869 BLAKE2B e59a433fd94dda05e06eca9017cf4f35aa4d9897adcc76d5dc503d5ae90e90bf5c23b859c4b7abe9af86cd7f327dad99a7a1a095015330a105debeb1a428052c SHA512 f58ce3a33241a316a81ba94318cd8fa1ea8a9954cd3721ae6f78f96df08b38a6ee5ea214483dc92aa4301a2252bc712a65c196da4c871962d76d17d5ba2b7238
diff --git a/net-p2p/syncthing/syncthing-1.3.1.ebuild b/net-p2p/syncthing/syncthing-1.3.1.ebuild
new file mode 100644
index 000000000000..7fb9fed47386
--- /dev/null
+++ b/net-p2p/syncthing/syncthing-1.3.1.ebuild
@@ -0,0 +1,161 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+EGO_VENDOR=(
+ "github.com/AudriusButkevicius/go-nat-pmp 452c97607362b2ab5a7839b8d1704f0396b640ca"
+ "github.com/AudriusButkevicius/pfilter 0.0.5"
+ "github.com/AudriusButkevicius/recli v0.0.5"
+ "github.com/bkaradzic/go-lz4 7224d8d8f27ef618c0a95f1ae69dbb0488abc33a"
+ "github.com/calmh/xdr v1.1.0"
+ "github.com/ccding/go-stun be486d185f3d"
+ "github.com/certifi/gocertifi a5e0173ced67"
+ "github.com/cheekybits/genny v1.0.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/getsentry/raven-go v0.2.0"
+ "github.com/gobwas/glob v0.2.3"
+ "github.com/gogo/protobuf v1.3.0"
+ "github.com/golang/groupcache 869f871628b6"
+ "github.com/golang/snappy v0.0.1"
+ "github.com/jackpal/gateway v1.0.5"
+ "github.com/kballard/go-shellquote 95032a82bc51"
+ "github.com/kr/pretty v0.1.0"
+ "github.com/lib/pq v1.2.0"
+ "github.com/lucas-clemente/quic-go v0.12.0"
+ "github.com/marten-seemann/qtls v0.3.2"
+ "github.com/maruel/panicparse v1.3.0"
+ "github.com/mattn/go-isatty v0.0.9"
+ "github.com/minio/sha256-simd v0.1.0"
+ "github.com/onsi/ginkgo v1.9.0"
+ "github.com/onsi/gomega v1.6.0"
+ "github.com/oschwald/geoip2-golang v1.3.0"
+ "github.com/oschwald/maxminddb-golang v1.4.0"
+ "github.com/petermattis/goid b0b1615b78e5"
+ "github.com/pkg/errors v0.8.1"
+ "github.com/pmezard/go-difflib v1.0.0"
+ "github.com/prometheus/client_golang v1.1.0"
+ "github.com/rcrowley/go-metrics cac0b30c2563"
+ "github.com/shirou/gopsutil 47ef3260b6bf"
+ "github.com/sasha-s/go-deadlock v0.2.0"
+ "github.com/stretchr/testify v1.3.0"
+ "github.com/syncthing/notify 69c7a957d3e2"
+ "github.com/syndtr/goleveldb c3a204f8e965"
+ "github.com/thejerf/suture v3.0.2"
+ "github.com/urfave/cli v1.21.0"
+ "github.com/vitrun/qart bf64b92db6b05651d6c25a3dabf2d543b360c0aa"
+ "golang.org/x/crypto 9756ffdc2472 github.com/golang/crypto"
+ "golang.org/x/net ba9fcec4b297 github.com/golang/net"
+ "golang.org/x/sys 749cb33beabd github.com/golang/sys"
+ "golang.org/x/text v0.3.2 github.com/golang/text"
+ "golang.org/x/time 9d24e82272b4 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.2.2 github.com/go-yaml/yaml"
+ # These are only used by the test suite but conditional vendoring is messy
+ "github.com/beorn7/perks v1.0.1"
+ "github.com/golang/protobuf v1.3.2"
+ "github.com/matttproud/golang_protobuf_extensions v1.0.1"
+ "github.com/prometheus/client_model 14fe0d1b01d4"
+ "github.com/prometheus/common v0.6.0"
+ "github.com/prometheus/procfs v0.0.4"
+)
+
+inherit go-module systemd xdg-utils
+
+DESCRIPTION="Open Source Continuous File Synchronization"
+HOMEPAGE="https://syncthing.net"
+SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
+ $(go-module_vendor_uris)"
+
+LICENSE="Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0 Unlicense"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE="selinux tools"
+
+# For some reason the switch to go-module.eclass has resulted in the test suite
+# failing when USE=tools is set. Temporarily disable testing under such circumstances
+# so that there is a a working go1.13-compatible version out there already, will
+# continue to look into this.
+RESTRICT="tools? ( test )"
+
+RDEPEND="acct-group/syncthing
+ acct-user/syncthing
+ tools? ( acct-group/stdiscosrv
+ acct-group/strelaysrv
+ acct-user/stdiscosrv
+ acct-user/strelaysrv )
+ selinux? ( sec-policy/selinux-syncthing )"
+
+DOCS=( README.md AUTHORS CONTRIBUTING.md )
+
+src_prepare() {
+ # Bug #679280
+ xdg_environment_reset
+
+ default
+ sed -i \
+ 's|^ExecStart=.*|ExecStart=/usr/libexec/syncthing/strelaysrv|' \
+ cmd/strelaysrv/etc/linux-systemd/strelaysrv.service \
+ || die
+
+ # As of 1.3.1, stupgrades fails to compile. This command was not present
+ # in releases older than 1.3.0, is not compiled in by default (USE=tools
+ # must be set) an in any case we do not really need this, therefore just
+ # get rid of the offending code until upstream has fixed it.
+ rm -rf cmd/stupgrades
+}
+
+src_compile() {
+ go run build.go -version "v${PV}" -no-upgrade install \
+ $(usex tools "all" "") || die "build failed"
+}
+
+src_test() {
+ go run build.go test || die "test failed"
+}
+
+src_install() {
+ 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
+
+ # openrc and systemd service files
+ 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" ${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 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
+}