summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJamie Getty <jamiegetty1@gmail.com>2022-01-04 19:59:50 +1300
committerJason Zaman <perfinion@gentoo.org>2022-02-26 12:01:36 -0800
commit17ba1a9e252fd2fc081ba4a0cd1d3c1aae726a5f (patch)
tree62c668a1299f08850f30d76c09744274d9b56675 /net-p2p/rtorrent/files
parentsys-apps/flatpak: Bump to version 1.12.6 (diff)
downloadgentoo-17ba1a9e252fd2fc081ba4a0cd1d3c1aae726a5f.tar.gz
gentoo-17ba1a9e252fd2fc081ba4a0cd1d3c1aae726a5f.tar.bz2
gentoo-17ba1a9e252fd2fc081ba4a0cd1d3c1aae726a5f.zip
net-p2p/rtorrent: Remove dependency on screen for daemonising.
Also update to EAPI8. econf now automatically passes --with-sysroot= which sets the macos-only -syslibroot so needs to be --sysroot on linux. Closes: https://github.com/gentoo/gentoo/pull/23645 Signed-off-by: Jamie Getty <jamiegetty1@gmail.com> Signed-off-by: Jason Zaman <perfinion@gentoo.org>
Diffstat (limited to 'net-p2p/rtorrent/files')
-rw-r--r--net-p2p/rtorrent/files/rtorrent-r1.init16
-rw-r--r--net-p2p/rtorrent/files/rtorrentd_at-r1.service17
2 files changed, 33 insertions, 0 deletions
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