summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Andrews <candrews@gentoo.org>2022-07-06 16:33:41 -0400
committerCraig Andrews <candrews@gentoo.org>2022-07-10 14:25:57 -0400
commitf5831b7b1d5528bdcfbb98418c1ef748273dbecd (patch)
tree32ece58cd6eac2a7d0a3db1c07cb58081c05c372 /www-apps
parentacct-user/radarr: user for radarr (diff)
downloadgentoo-f5831b7b1d5528bdcfbb98418c1ef748273dbecd.tar.gz
gentoo-f5831b7b1d5528bdcfbb98418c1ef748273dbecd.tar.bz2
gentoo-f5831b7b1d5528bdcfbb98418c1ef748273dbecd.zip
www-apps/radarr: fork of Sonarr to work with movies a la Couchpotato.
Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Craig Andrews <candrews@gentoo.org>
Diffstat (limited to 'www-apps')
-rw-r--r--www-apps/radarr/Manifest3
-rw-r--r--www-apps/radarr/files/radarr.init7
-rw-r--r--www-apps/radarr/files/radarr.logrotate4
-rw-r--r--www-apps/radarr/files/radarr.service30
-rw-r--r--www-apps/radarr/metadata.xml21
-rw-r--r--www-apps/radarr/radarr-4.1.0.6175.ebuild47
6 files changed, 112 insertions, 0 deletions
diff --git a/www-apps/radarr/Manifest b/www-apps/radarr/Manifest
new file mode 100644
index 000000000000..e50e9ddbff4c
--- /dev/null
+++ b/www-apps/radarr/Manifest
@@ -0,0 +1,3 @@
+DIST Radarr.master.4.1.0.6175.linux-core-arm.tar.gz 92189393 BLAKE2B 4420ba558e7791b80d667adc08fd7d1cbbc9f2a3caac0e9ed79417a6325129e68f6bce262519ae1eafbb61046fd4aa011f36e9101a9b6d7023bf20469b983892 SHA512 13ef8a393c257a0bbd70c7b69ed9a768df69896e4d021af10262faea1508ec9ec9a129c9c9302bf6692ebadcdefb9270f8391668b09fbb16925f2c8ad6c24ab0
+DIST Radarr.master.4.1.0.6175.linux-core-arm64.tar.gz 91841527 BLAKE2B 864330f1cc8f654bbf0f6cd6db903c2679a4e4d6857f7e844d9999f0624d16790b845759558a6c013faee567aedd932cef27e04eca60c0fc0e6f7b7841970ca0 SHA512 02ba1440fe09ef5fc43263cbdbd546218ba4f7167b596a56edd510d05f9db382e8aa5901ad32c851c488492323e1351446e34a01d5b75638015879b5f3a598f9
+DIST Radarr.master.4.1.0.6175.linux-core-x64.tar.gz 97882876 BLAKE2B 9d14649d5059afe2497be25b5514bffa48e4b762b6f0683b57a250ceb5723f1ffb4041d5510fcc8287e4b56083d34ebed083ec7c6454525773578769def39778 SHA512 b3d88b2eb58a4b8125704299ddd9aaec306e9119eaffa142504e96d4d77ccefd77c226e24d6f32222811e5a0727194758940eae6890ad0927e2aa553777eaa60
diff --git a/www-apps/radarr/files/radarr.init b/www-apps/radarr/files/radarr.init
new file mode 100644
index 000000000000..8abff709a970
--- /dev/null
+++ b/www-apps/radarr/files/radarr.init
@@ -0,0 +1,7 @@
+#!/sbin/openrc-run
+
+pidfile="/run/radarr.pid"
+command="/opt/radarr/Radarr"
+command_user="radarr:radarr"
+command_background=true
+
diff --git a/www-apps/radarr/files/radarr.logrotate b/www-apps/radarr/files/radarr.logrotate
new file mode 100644
index 000000000000..c6f14d75e1e4
--- /dev/null
+++ b/www-apps/radarr/files/radarr.logrotate
@@ -0,0 +1,4 @@
+/var/lib/radarr/.config/radarr/logs/*.log{
+ missingok
+ su radarr radarr
+}
diff --git a/www-apps/radarr/files/radarr.service b/www-apps/radarr/files/radarr.service
new file mode 100644
index 000000000000..daff14f543b1
--- /dev/null
+++ b/www-apps/radarr/files/radarr.service
@@ -0,0 +1,30 @@
+[Unit]
+Description=A fork of Sonarr to work with movies à la Couchpotato.
+After=syslog.target network.target
+
+[Service]
+User=radarr
+Group=radarr
+
+Type=simple
+ExecStart=/opt/radarr/Radarr
+TimeoutStopSec=20
+KillMode=process
+Restart=always
+
+PrivateTmp=yes
+PrivateDevices=yes
+PrivateMounts=yes
+ProtectHome=yes
+ProtectSystem=full
+NoNewPrivileges=yes
+ProtectHostname=yes
+ProtectClock=yes
+ProtectKernelTunables=yes
+ProtectKernelModules=yes
+ProtectKernelLogs=yes
+ProtectControlGroups=yes
+RestrictRealtime=yes
+
+[Install]
+WantedBy=multi-user.target
diff --git a/www-apps/radarr/metadata.xml b/www-apps/radarr/metadata.xml
new file mode 100644
index 000000000000..b097043a5b49
--- /dev/null
+++ b/www-apps/radarr/metadata.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>mcrawford@eliteitminds.com</email>
+ <name>Michael Crawford</name>
+ <description>Primary maintainer</description>
+ </maintainer>
+ <maintainer type="project" proxied="proxy">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <maintainer type="person">
+ <email>candrews@gentoo.org</email>
+ <name>Craig Andrews</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">Radarr/Radarr</remote-id>
+ <bugs-to>https://github.com/Radarr/Radarr/issues</bugs-to>
+ </upstream>
+</pkgmetadata>
diff --git a/www-apps/radarr/radarr-4.1.0.6175.ebuild b/www-apps/radarr/radarr-4.1.0.6175.ebuild
new file mode 100644
index 000000000000..6aa69a1c190d
--- /dev/null
+++ b/www-apps/radarr/radarr-4.1.0.6175.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit systemd
+
+SRC_URI="
+ amd64? ( https://github.com/Radarr/Radarr/releases/download/v${PV}/Radarr.master.${PV}.linux-core-x64.tar.gz )
+ arm? ( https://github.com/Radarr/Radarr/releases/download/v${PV}/Radarr.master.${PV}.linux-core-arm.tar.gz )
+ arm64? ( https://github.com/Radarr/Radarr/releases/download/v${PV}/Radarr.master.${PV}.linux-core-arm64.tar.gz )
+"
+
+DESCRIPTION="A fork of Sonarr to work with movies a la Couchpotato"
+HOMEPAGE="https://www.radarr.video"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64"
+RESTRICT="bindist strip test"
+
+RDEPEND="
+ acct-group/radarr
+ acct-user/radarr
+ media-video/mediainfo
+ dev-libs/icu
+ dev-util/lttng-ust:0
+ dev-db/sqlite"
+
+S="${WORKDIR}/Radarr"
+
+src_install() {
+ newinitd "${FILESDIR}/${PN}.init" ${PN}
+
+ keepdir /var/lib/${PN}
+ fowners -R ${PN}:${PN} /var/lib/${PN}
+
+ insinto /etc/logrotate.d
+ insopts -m0644 -o root -g root
+ newins "${FILESDIR}/${PN}.logrotate" ${PN}
+
+ dodir "/opt/${PN}"
+ cp -R "${S}/." "${D}/opt/radarr" || die "Install failed!"
+
+ systemd_dounit "${FILESDIR}/radarr.service"
+ systemd_newunit "${FILESDIR}/radarr.service" "${PN}@.service"
+}