summaryrefslogtreecommitdiff
path: root/www-apps/radarr
diff options
context:
space:
mode:
Diffstat (limited to 'www-apps/radarr')
-rw-r--r--www-apps/radarr/Manifest8
-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, 117 insertions, 0 deletions
diff --git a/www-apps/radarr/Manifest b/www-apps/radarr/Manifest
new file mode 100644
index 000000000000..05d8398ed2f8
--- /dev/null
+++ b/www-apps/radarr/Manifest
@@ -0,0 +1,8 @@
+AUX radarr.init 129 BLAKE2B f3f8ebe12146d302019c2301ca5b7db3b3e3678447df36cb218b0c5f0f882e1a8f6e003f4e69536fa4ebbf31f4035bd167f4d98be961db41607635e3e49daca6 SHA512 b8e8baeab9f0efee8115d0a1230bf85796ddbb2653754efffc9ffa23ef61906e05ae83d5d4b1b2719b1292d1d5d67fb0f7efd19c0af9b474a15d34bcbd6ae40e
+AUX radarr.logrotate 80 BLAKE2B e7ec91346dc522935b7f5ecd0d72bb2eb49a91666444808de8646d55da3ba79809c0eee9d872885000e0f87614a8547df6906850626e2c1a7fdea57f4a41a077 SHA512 2603fde64cbeaa10a06325da7c448d16e42b810e4fb767bc4e3caf90bfebc4d9a4109c807d0b8a71d36245d930e118eb22dca7c3c2ad430d4da03ecc5670c2d9
+AUX radarr.service 540 BLAKE2B ef6e69463aa577c9da67efc8f11c943531bde1e8ee4b56ae15f77e39c2900a1b11d5cd9e2c568d293b6852d80cbf6d3b6f15b9226ac3defc2e8b6be231eaa5ca SHA512 38af47dc6ddc5df3be1e6323147f0bec20b18994195eff3e6e6a61691f6c8beb9a058aa361f9b9c6a11c362f12bf86fb8f3f311a70ceceb78e18d909910a2840
+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
+EBUILD radarr-4.1.0.6175.ebuild 1220 BLAKE2B 58e0893e860dba2820c314dbfccd95777483600fbe2c73ede2bd7a320264135a548f8dbc344956aa681c2a16b3ea45060e40dd733332228c3cb023ae8bc6dcf2 SHA512 acd71001682db5b1f17280b30859cba062efba542a120c97e5f1ee6a7de44c82266d7fd73eccec3e4f06242a34c6abca3535d20127b8a229e95a80810453ea63
+MISC metadata.xml 687 BLAKE2B 138345fa29c3630e2f8cb63a36ed6a88b17953aeb15889459e661f4c5f217bc7e847ea8a0aa1f5aed2f1da3c76afad97c594e6d2a8b50599d972c6e0504e81e3 SHA512 ec2330fc37df1aaaf1ffe87598f883080d1480fb848d8e7a711c7caae5faf4924e5b09916755045e86a5ea4a0483e28b54c5a7ca7a536d6de8cd1ccd4a4e1e8d
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"
+}