summaryrefslogtreecommitdiff
path: root/net-p2p/rtorrent
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-03-20 00:40:44 +0000
committerV3n3RiX <venerix@koprulu.sector>2022-03-20 00:40:44 +0000
commit4cbcc855382a06088e2f016f62cafdbcb7e40665 (patch)
tree356496503d52354aa6d9f2d36126302fed5f3a73 /net-p2p/rtorrent
parentfcc5224904648a8e6eb528d7603154160a20022f (diff)
gentoo resync : 20.03.2022
Diffstat (limited to 'net-p2p/rtorrent')
-rw-r--r--net-p2p/rtorrent/Manifest3
-rw-r--r--net-p2p/rtorrent/files/rtorrent-r1.init16
-rw-r--r--net-p2p/rtorrent/files/rtorrentd_at-r1.service17
-rw-r--r--net-p2p/rtorrent/rtorrent-0.9.8-r1.ebuild70
4 files changed, 106 insertions, 0 deletions
diff --git a/net-p2p/rtorrent/Manifest b/net-p2p/rtorrent/Manifest
index 5845f7aabedd..a470f62bffbe 100644
--- a/net-p2p/rtorrent/Manifest
+++ b/net-p2p/rtorrent/Manifest
@@ -1,12 +1,15 @@
AUX rtorrent-0.9.7-execinfo-configure.patch 907 BLAKE2B e94c2ec320ca3a7734860eca7efc520a924babf30ea30faedfa5cb38d6a5dd71ad5c16f1f12fc0759ebacd15d7faf6e2638c8c42bac00e020398d8e2e14a0981 SHA512 3f667508aec829b174a4d3adeb6336f77786f91e34d1d2c52c23f7da453422e433a69872000859799721315546519554bd25e0b6ce1b57fc32f6399f718cdf22
AUX rtorrent-0.9.7-tinfo.patch 1457 BLAKE2B abbca9424939f02f341cfb4f15c10d4e17624add223e6c2365b795555ee7e70f6abc3e6dfe8455bef493df7c549df3117cbd9f19095a9219b106da8191d5c951 SHA512 7f4a9262dfd4a89329cf90818d49c76c0310318bb6bf61055336235a319b5717a6b6d25903c93cf4160b718f17d78cf9192138b72d8ddd1f46494c001bf30979
+AUX rtorrent-r1.init 342 BLAKE2B e51ee479fe4c839ea49f7b1085f33e60f42c64d9cd5915ee59b24ac042a8e86bafac59bc8dd24723b7506dd51b9442bc80163b94f45e4a70184e0571525d05a0 SHA512 f38d095b21a272c0197a8ebd9e4a33d9aa884207844c5303d0f4296fb561894ddf9683571ffd653e818578ef229e80f4a27fdf6d6ff70f53a6dedc45ee267bda
AUX rtorrent.1 18204 BLAKE2B 4e757f00d9a08978e09593e89b17fb7d7e4afe7f5064ed8bb7d9316f1450471ec42e006478df43eb2a7d4fdcea0445237b0e053f54bd1f4e8ad7db2878b628a1 SHA512 f2d3fb87fd7c321822ce9e61cc334682f9692e3f86b42cb3d7d5826dec53d56e631e20455e0ea1e53448c11386988a6e7a70a91ed2923f90852956ad3fdafcfe
AUX rtorrentd.conf 13 BLAKE2B 80db665e7f75c50c02134cced87847926d23ea256868fb6d1213faaa8be1879cbc69e72f006b49b33dc99c0a9dcace2db90c8917ca272554c348bd1e6293514c SHA512 f241452b812a1837660f9ad52881feacc02825e82ea7ac19acc662b4219dd58997ea908275b8c9ee78ed791babf79c1a91069dc6d5b5fb3c461e3026cdeab73f
AUX rtorrentd.init 871 BLAKE2B 3f83e6bb52044e293127aaf7ae505c1dc6422698360537edb5c898e512e52fc42efff34f000937f00f16839c5b02beb64540af42ae6b1849a81424bfbf392656 SHA512 f71d55ed18ef9d32c56be5508c91cafb0f10609cf5402e7ff1b63a7166b9b52a58aa6c580a7709e4449a279caba6adcf4f2fc76a6768a82f12993a3df92124aa
+AUX rtorrentd_at-r1.service 479 BLAKE2B 64e4099237eb14e311dc94ef4b1c5fdf6e724a1b3fd49c2ef2c3ebae33c3c0f91c6edc5ee835db5bec2424e92abfcbbc7922aa14c925e60c5e9d973b0105de01 SHA512 28b9aeaa07144413534ffbb3589a2e4e89f688da4c6d53d1e4a87e1c9618dabe1f39d2b42911d10b151963862df5b2a28a71557bfe08011806face28cea82d0b
AUX rtorrentd_at.service 308 BLAKE2B 2aac1f49a25d35136db25a13c08d1847d21701272d56a6ca06eee6a8426719c340a041568cc1d575fae341a49fa1f53a132ba11ff73180b1bee246197d8119c2 SHA512 cc707500af2dbb0cc0c8297512807f9312445cf70de00bcf2f7267388834f1d0454eaaa9a8b52387e5f84288400286414225c55af0f560f61a8d0858971a8615
DIST rtorrent-0.9.7.tar.gz 610149 BLAKE2B 3f1316b0142dade9662630ad40132c5968d7b0ded32d7ae13d1ec1fdb7fec794812203fece367bf6abfd02212ed94d308046d40eb3e7562c408e8da13b23c23d SHA512 e663bd8984bcec91868beaf16d215708bdea8872338365ba6a05c9ea830b2aff045257bbc8bd0414d84009ee85852822c97bb073dfb41c21e3b0081ecaeecc00
DIST rtorrent-0.9.8.tar.gz 647523 BLAKE2B 3562ed03dee3baa4a702d20c7c91b9248d9de0f25d1f8cd182863101f293a0ef13cb49164e4d16b25e72a4fbe1cc1a2fbde176d3068c749edbcb2287ef260b2b SHA512 016685948d0290694ab9635ae218c7acd876e6d45bea1bdba3a29c545e64f5d824c5e2f6693a4c2e9200196177881d54f312d72e0a19742bd74a03bd19ca05c7
EBUILD rtorrent-0.9.7-r1.ebuild 1893 BLAKE2B cf0a16d4c9547ada31a1297fad23f65f7865e08842281a32d178c4beada790bdfe717dc193a0d7d09ec7d95cb0bc5478381a069a5c29df8e269b88f8d224dd36 SHA512 89063b232670f661643c7534dc4b122217d5bb5bf39a4516eb3be0f1357617a0f15bc847a4df41e7fccd433c4237c260a66778d02fa6c042adce21310fd25a31
EBUILD rtorrent-0.9.7.ebuild 1843 BLAKE2B bcb4bbfd122212f1f8a17d0a3d1b514dc71da3e72a855272555c871cb0e955ee8151e8a044ab92ac109c402cc4856d032ced0c7e25ca4b07ae5ea1c28b670b79 SHA512 5f6576c0a3731864e81bef9fb884647c3def4941c6308c1193ecea7094d2a6cd8e8a620a037c1b01f2b359e9ee6c3a55b60c23b9927a46c4bef030d4d1f23816
+EBUILD rtorrent-0.9.8-r1.ebuild 1891 BLAKE2B ef03d3c6549620094f0a4db35c3cfc4fbb20dc19480d10d18cfe13fedc0c52cf57cf529806b3cae5c4a5d44cf5b2298e66f13d4aaf14b93adbf4c92f59ea9942 SHA512 b82520c43e078419bc60e857ce7d19fa252a29463c86233cb8b60779466eddd04320375e48fb5825f4da30474098a1e4dacb8cc442afe1406036d2b55feebc74
EBUILD rtorrent-0.9.8.ebuild 1768 BLAKE2B 6de3f9ccc3a219b9d14bceb61de9680a8b3f273c5d53a82f3be10f33e32cb2d98ea68e6722a51d178e6cb6e2e7f5edf79203d36c77025529f8627c4d4967d8bd SHA512 0bf0bf78b3ba41dd8763cca840a705543df82f7e62534cbe8981def654b8e529afe61aa4d543d29b4fe3881edca8fd82b4ff2e807e2007222d63b20e3dff89e3
MISC metadata.xml 563 BLAKE2B a75df933a37013dc25c27d89428bee9d79c2932a6931dc9a396b5975ea5e26bb4d93d88253397817c5c11c4ae4866e49ef826188b7566a33e8901b30c4415d89 SHA512 519b5e49c7b7f1bc90c4298628dff5da9a36219e9f8de60c916b8c01312b70b012424ef605589c830c75b62390d89a7a83c3293426f352a450ad9481b990f3f2
diff --git a/net-p2p/rtorrent/files/rtorrent-r1.init b/net-p2p/rtorrent/files/rtorrent-r1.init
new file mode 100644
index 000000000000..e16f262bfbe3
--- /dev/null
+++ b/net-p2p/rtorrent/files/rtorrent-r1.init
@@ -0,0 +1,16 @@
+#!/sbin/openrc-run
+# Distributed under the terms of the GNU General Public License v2
+
+description="rTorrent BitTorrent client"
+
+command="/usr/bin/rtorrent"
+command_args="-o system.daemon.set=true"
+command_background=true
+command_user="${USER}"
+pidfile="/run/rtorrent.pid"
+
+depend()
+{
+ use net ypbind nis
+ after slapd mysqld postgresql
+}
diff --git a/net-p2p/rtorrent/files/rtorrentd_at-r1.service b/net-p2p/rtorrent/files/rtorrentd_at-r1.service
new file mode 100644
index 000000000000..bc9220353786
--- /dev/null
+++ b/net-p2p/rtorrent/files/rtorrentd_at-r1.service
@@ -0,0 +1,17 @@
+# This configuration file is taken from the Arch wiki.
+# https://wiki.archlinux.org/title/RTorrent#Systemd_service_as_a_daemon_for_a_user
+
+[Unit]
+Description=rTorrent for %i
+After=network.target
+
+[Service]
+Type=simple
+User=%i
+Group=%i
+WorkingDirectory=/home/%i
+# Modify the next line to the absolute path for rtorrent.lock, for example
+ExecStartPre=-/bin/rm -f /home/%i/.session/rtorrent.lock
+ExecStart=/usr/bin/rtorrent -o system.daemon.set=true
+Restart=on-failure
+RestartSec=3
diff --git a/net-p2p/rtorrent/rtorrent-0.9.8-r1.ebuild b/net-p2p/rtorrent/rtorrent-0.9.8-r1.ebuild
new file mode 100644
index 000000000000..d0955a6839c0
--- /dev/null
+++ b/net-p2p/rtorrent/rtorrent-0.9.8-r1.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools linux-info systemd
+
+DESCRIPTION="BitTorrent Client using libtorrent"
+HOMEPAGE="https://rakshasa.github.io/rtorrent/"
+SRC_URI="http://rtorrent.net/downloads/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~x64-solaris"
+IUSE="debug selinux test xmlrpc"
+RESTRICT="!test? ( test )"
+
+COMMON_DEPEND="~net-libs/libtorrent-0.13.${PV##*.}
+ >=net-misc/curl-7.19.1
+ sys-libs/ncurses:0=
+ xmlrpc? ( dev-libs/xmlrpc-c:= )"
+RDEPEND="${COMMON_DEPEND}
+ selinux? ( sec-policy/selinux-rtorrent )
+"
+DEPEND="${COMMON_DEPEND}
+ dev-util/cppunit
+ virtual/pkgconfig"
+
+DOCS=( doc/rtorrent.rc )
+
+pkg_setup() {
+ if ! linux_config_exists || ! linux_chkconfig_present IPV6; then
+ ewarn "rtorrent will not start without IPv6 support in your kernel"
+ ewarn "without further configuration. Please set bind=0.0.0.0 or"
+ ewarn "similar in your rtorrent.rc"
+ ewarn "Upstream bug: https://github.com/rakshasa/rtorrent/issues/732"
+ fi
+}
+
+src_prepare() {
+ default
+
+ # https://github.com/rakshasa/rtorrent/issues/332
+ cp "${FILESDIR}"/rtorrent.1 "${S}"/doc/ || die
+
+ if [[ ${CHOST} != *-darwin* ]]; then
+ # syslibroot is only for macos, change to sysroot for others
+ sed -i 's/Wl,-syslibroot,/Wl,--sysroot,/' "${S}/scripts/common.m4" || die
+ fi
+
+ eautoreconf
+}
+
+src_configure() {
+ default
+
+ # configure needs bash or script bombs out on some null shift, bug #291229
+ CONFIG_SHELL=${BASH} econf \
+ $(use_enable debug) \
+ $(use_with xmlrpc xmlrpc-c)
+}
+
+src_install() {
+ default
+ doman doc/rtorrent.1
+
+ newinitd "${FILESDIR}/rtorrent-r1.init" rtorrent
+ newconfd "${FILESDIR}/rtorrentd.conf" rtorrent
+ systemd_newunit "${FILESDIR}/rtorrentd_at-r1.service" "rtorrentd@.service"
+}