summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Andrews <candrews@gentoo.org>2022-07-19 16:34:07 -0400
committerCraig Andrews <candrews@gentoo.org>2022-07-20 08:14:21 -0400
commit47a2f82823c78a965aa6556ddf7daa9e83bcd575 (patch)
treef9f2fd15cd826e2621ce3a9b1fd86a90dc6844f9 /www-apps/readarr
parentacct-user/readarr: user for readarr (diff)
downloadgentoo-47a2f82823c78a965aa6556ddf7daa9e83bcd575.tar.gz
gentoo-47a2f82823c78a965aa6556ddf7daa9e83bcd575.tar.bz2
gentoo-47a2f82823c78a965aa6556ddf7daa9e83bcd575.zip
www-apps/readarr: An ebook and audiobook collection manager
Signed-off-by: Craig Andrews <candrews@gentoo.org>
Diffstat (limited to 'www-apps/readarr')
-rw-r--r--www-apps/readarr/Manifest3
-rw-r--r--www-apps/readarr/files/readarr.init7
-rw-r--r--www-apps/readarr/files/readarr.logrotate4
-rw-r--r--www-apps/readarr/files/readarr.service30
-rw-r--r--www-apps/readarr/metadata.xml21
-rw-r--r--www-apps/readarr/readarr-0.1.1.1320.ebuild55
6 files changed, 120 insertions, 0 deletions
diff --git a/www-apps/readarr/Manifest b/www-apps/readarr/Manifest
new file mode 100644
index 000000000000..6a6c11397204
--- /dev/null
+++ b/www-apps/readarr/Manifest
@@ -0,0 +1,3 @@
+DIST Readarr.develop.0.1.1.1320.linux-core-arm.tar.gz 84120232 BLAKE2B 5a1e89011594d9e4bfe93eb9b9a78f90e5c1d6ebde7fa3c47f7e2e5fb500af2e691c38ab6ae86faa05983c76d57d2c0e4990b3749cd9912261ff58a652809bfb SHA512 6d132d054483a5f084ff3e99e9d10772faaf28aee277ff182289a0c49459d702349885171b5147f1c23af3c5dafde92d00acb1789926918e138baeb47026fb9e
+DIST Readarr.develop.0.1.1.1320.linux-core-arm64.tar.gz 83430995 BLAKE2B d4879cb9430f9555eed1a319a0509ea50b0f51396fa0cb808e763a032af5e5c6153daf6df94edf2a2b9d2c639356d6ffe5bcc6a022e770c9dda014c4601d3628 SHA512 e32c15a2b8f2e35f41fb91a4bf427bb65712001d9287862d171ba9c20057b112d4437ef5e4c327d961ecc93d6003acd0c5ff6c7e15b59e84cf66167d667b513b
+DIST Readarr.develop.0.1.1.1320.linux-core-x64.tar.gz 88446682 BLAKE2B e63eb2ebd873f2f07589496957cead36eaf4505c090f65e926813bedc03d013a72423c5d5019a4db24e83975ff906c57a787a5bf50354ad0a66825c9f9cfda74 SHA512 a0f3f0513a66a824ce4efa8284c185b37200325d2d2a43203a9ec6b04b579fea9a67817921800c2c20fa9b6cb30ce5dbaef428b9c04f62db288d7be61a7cb1bc
diff --git a/www-apps/readarr/files/readarr.init b/www-apps/readarr/files/readarr.init
new file mode 100644
index 000000000000..5795edbcceb3
--- /dev/null
+++ b/www-apps/readarr/files/readarr.init
@@ -0,0 +1,7 @@
+#!/sbin/openrc-run
+
+pidfile="/run/readarr.pid"
+command="/opt/readarr/Radarr"
+command_user="readarr:readarr"
+command_background=true
+
diff --git a/www-apps/readarr/files/readarr.logrotate b/www-apps/readarr/files/readarr.logrotate
new file mode 100644
index 000000000000..2dc56f43cceb
--- /dev/null
+++ b/www-apps/readarr/files/readarr.logrotate
@@ -0,0 +1,4 @@
+/var/lib/readarr/.config/readarr/logs/*.log{
+ missingok
+ su readarr readarr
+}
diff --git a/www-apps/readarr/files/readarr.service b/www-apps/readarr/files/readarr.service
new file mode 100644
index 000000000000..c96ba634b514
--- /dev/null
+++ b/www-apps/readarr/files/readarr.service
@@ -0,0 +1,30 @@
+[Unit]
+Description=An ebook and audiobook collection manager for Usenet and BitTorrent users
+After=syslog.target network.target
+
+[Service]
+User=readarr
+Group=readarr
+
+Type=simple
+ExecStart=/opt/readarr/Readarr
+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/readarr/metadata.xml b/www-apps/readarr/metadata.xml
new file mode 100644
index 000000000000..b097043a5b49
--- /dev/null
+++ b/www-apps/readarr/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/readarr/readarr-0.1.1.1320.ebuild b/www-apps/readarr/readarr-0.1.1.1320.ebuild
new file mode 100644
index 000000000000..23747b5fc1ac
--- /dev/null
+++ b/www-apps/readarr/readarr-0.1.1.1320.ebuild
@@ -0,0 +1,55 @@
+# 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/Readarr/Readarr/releases/download/v${PV}/Readarr.develop.${PV}.linux-core-x64.tar.gz )
+ arm? ( https://github.com/Readarr/Readarr/releases/download/v${PV}/Readarr.develop.${PV}.linux-core-arm.tar.gz )
+ arm64? ( https://github.com/Readarr/Readarr/releases/download/v${PV}/Readarr.develop.${PV}.linux-core-arm64.tar.gz )
+"
+
+DESCRIPTION="An ebook and audiobook collection manager for Usenet and BitTorrent users"
+HOMEPAGE="https://readarr.com/"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64"
+RESTRICT="bindist strip test"
+
+RDEPEND="
+ acct-group/readarr
+ acct-user/readarr
+ dev-libs/icu
+ dev-util/lttng-ust:0
+ dev-db/sqlite"
+
+QA_PREBUILT="*"
+
+S="${WORKDIR}/Readarr"
+
+src_prepare() {
+ default
+
+ # https://github.com/dotnet/runtime/issues/57784
+ rm libcoreclrtraceptprovider.so Readarr.Update/libcoreclrtraceptprovider.so || die
+}
+
+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/readarr" || die "Install failed!"
+
+ systemd_dounit "${FILESDIR}/readarr.service"
+ systemd_newunit "${FILESDIR}/readarr.service" "${PN}@.service"
+}