summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Barć <xgqt@gentoo.org>2024-03-22 23:38:56 +0100
committerCraig Andrews <candrews@gentoo.org>2024-03-23 14:38:46 -0400
commitcd15b81d5f090491b08f2b8a9dc71b64ec4bb355 (patch)
tree48c95f95dbb71d4b9e87a77df867e46f4c89990f /www-apps/readarr-bin
parentwww-apps/prowlarr-bin: move from www-apps/prowlarr (diff)
downloadgentoo-cd15b81d5f090491b08f2b8a9dc71b64ec4bb355.tar.gz
gentoo-cd15b81d5f090491b08f2b8a9dc71b64ec4bb355.tar.bz2
gentoo-cd15b81d5f090491b08f2b8a9dc71b64ec4bb355.zip
www-apps/readarr-bin: move from www-apps/readarr
Bug: https://bugs.gentoo.org/915346 Signed-off-by: Maciej Barć <xgqt@gentoo.org> Signed-off-by: Craig Andrews <candrews@gentoo.org>
Diffstat (limited to 'www-apps/readarr-bin')
-rw-r--r--www-apps/readarr-bin/Manifest6
-rw-r--r--www-apps/readarr-bin/files/readarr.init6
-rw-r--r--www-apps/readarr-bin/files/readarr.logrotate4
-rw-r--r--www-apps/readarr-bin/files/readarr.service30
-rw-r--r--www-apps/readarr-bin/metadata.xml21
-rw-r--r--www-apps/readarr-bin/readarr-bin-0.3.20.2452.ebuild77
6 files changed, 144 insertions, 0 deletions
diff --git a/www-apps/readarr-bin/Manifest b/www-apps/readarr-bin/Manifest
new file mode 100644
index 000000000000..71c021c6cbd2
--- /dev/null
+++ b/www-apps/readarr-bin/Manifest
@@ -0,0 +1,6 @@
+DIST Readarr.develop.0.3.20.2452.linux-core-arm.tar.gz 88552277 BLAKE2B 9ac8119e390eb4b0d4c38cdacea4512edb7f5ef9b9319a81ef9286f0fc7ebf48206c4d7cdbc600bc591273f878a2097eb124a52e9af3593745bc3733e70d9842 SHA512 cec90163f22aae2b82b220356ab8b99242d2cba7e691522ac90f359324992bdb22fc357b8e733a9129ea811094d48eb09078851d8c6101dccb0520b49c00ad54
+DIST Readarr.develop.0.3.20.2452.linux-core-arm64.tar.gz 87846412 BLAKE2B 1c33da1ee56ad78efb6c8d2ac43b9a84a0f8af3110af0eebaf604d71b30386aceac46e195049e0e47b7edcf55083e4c9d4b955e3f7e7859e031b2b08c5f2ba26 SHA512 958f475406576e3e9fedba64412659dc1b67af25394f91087064089925b203093c215fec498cc2bb9c376afe9dadde7432fad6850724a0aedc06dc9ec0b16e4b
+DIST Readarr.develop.0.3.20.2452.linux-core-x64.tar.gz 92857661 BLAKE2B 37efd9a40e7f44594bd601017344c5cb61d41ef3d34bdf748051a64779193a6d00062ad4119f96665952944eae02112d91beab169f42124f071321498bbca0ff SHA512 94ccbc6bf5db9af270840c69b8e6c0d0152ed4a09db7bd9c51d2d5fde60134b647fbf9244c3da1ea9e830c6c931633ecd1730076baea19d9089d1ecf06e3bb48
+DIST Readarr.develop.0.3.20.2452.linux-musl-core-arm.tar.gz 88617862 BLAKE2B ad868e363b1c8f983ba9cc57523dd8ba291f7cdfd16b92c21ef53e5855e43cc2a62827716b3d7aaaaf16caac26fe33cbf4601bbcce9cca134ecc9fcaf6355093 SHA512 c3b2b10cc23022e68622d213250f451f06afce50ddd69139948dc9533a38003ebaf51c0efbb56699af6347a2627526349817793495828bfb9612175ae936f138
+DIST Readarr.develop.0.3.20.2452.linux-musl-core-arm64.tar.gz 87898992 BLAKE2B 658bb30ad92bd37ac0a1b3dd85572c7a9b941b1e670842196756be67c10997ab51821d3b787a20b37eb03b5200d5945eecad12672533a1910bbe81b815696df7 SHA512 41a58dc72073d904051b6d2078bfdb4ec91b93e9d6454d42ad045a72e5c43e471cf37eab3bea1f07f8cf91ee8303fe366cbf8fefb0350effd40ce46729d94bcd
+DIST Readarr.develop.0.3.20.2452.linux-musl-core-x64.tar.gz 91918090 BLAKE2B 639b1a361c071296b15eb3d8fd400a3006a6ea24d802850fa3747b4e3dfdb0147a17823a89d160822be23e951f3909f5778c21bc320c1719e889a2c730868f5d SHA512 9c3878974846078b7775e6e9143985429026713a4f08cb1ca56adfbceb52a80a48d1cda9ad5d81268356699f9f08abbe0bec3493ee801e70d8ac39ce70314664
diff --git a/www-apps/readarr-bin/files/readarr.init b/www-apps/readarr-bin/files/readarr.init
new file mode 100644
index 000000000000..88cdbc9f597d
--- /dev/null
+++ b/www-apps/readarr-bin/files/readarr.init
@@ -0,0 +1,6 @@
+#!/sbin/openrc-run
+
+pidfile="/run/readarr.pid"
+command="/opt/readarr/Readarr"
+command_user="readarr:readarr"
+command_background=true
diff --git a/www-apps/readarr-bin/files/readarr.logrotate b/www-apps/readarr-bin/files/readarr.logrotate
new file mode 100644
index 000000000000..4675f682b629
--- /dev/null
+++ b/www-apps/readarr-bin/files/readarr.logrotate
@@ -0,0 +1,4 @@
+/var/lib/readarr/.config/Readarr/logs/*.txt{
+ missingok
+ su readarr readarr
+}
diff --git a/www-apps/readarr-bin/files/readarr.service b/www-apps/readarr-bin/files/readarr.service
new file mode 100644
index 000000000000..c96ba634b514
--- /dev/null
+++ b/www-apps/readarr-bin/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-bin/metadata.xml b/www-apps/readarr-bin/metadata.xml
new file mode 100644
index 000000000000..49ea8bc60df5
--- /dev/null
+++ b/www-apps/readarr-bin/metadata.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://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-bin/readarr-bin-0.3.20.2452.ebuild b/www-apps/readarr-bin/readarr-bin-0.3.20.2452.ebuild
new file mode 100644
index 000000000000..5ef7e008750e
--- /dev/null
+++ b/www-apps/readarr-bin/readarr-bin-0.3.20.2452.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit systemd
+
+DESCRIPTION="An ebook and audiobook collection manager for Usenet and BitTorrent users"
+HOMEPAGE="https://readarr.com/
+ https://github.com/Readarr/Readarr/"
+
+SRC_URI="
+ amd64? (
+ elibc_glibc? (
+ https://github.com/Readarr/Readarr/releases/download/v${PV}/Readarr.develop.${PV}.linux-core-x64.tar.gz
+ )
+ elibc_musl? (
+ https://github.com/Readarr/Readarr/releases/download/v${PV}/Readarr.develop.${PV}.linux-musl-core-x64.tar.gz
+ )
+ )
+ arm? (
+ elibc_glibc? (
+ https://github.com/Readarr/Readarr/releases/download/v${PV}/Readarr.develop.${PV}.linux-core-arm.tar.gz
+ )
+ elibc_musl? (
+ https://github.com/Readarr/Readarr/releases/download/v${PV}/Readarr.develop.${PV}.linux-musl-core-arm.tar.gz
+ )
+ )
+ arm64? (
+ elibc_glibc? (
+ https://github.com/Readarr/Readarr/releases/download/v${PV}/Readarr.develop.${PV}.linux-core-arm64.tar.gz
+ )
+ elibc_musl? (
+ https://github.com/Readarr/Readarr/releases/download/v${PV}/Readarr.develop.${PV}.linux-musl-core-arm64.tar.gz
+ )
+ )
+"
+S="${WORKDIR}/Readarr"
+
+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="*"
+
+src_prepare() {
+ default
+
+ # https://github.com/dotnet/runtime/issues/57784
+ rm libcoreclrtraceptprovider.so Readarr.Update/libcoreclrtraceptprovider.so || die
+}
+
+src_install() {
+ newinitd "${FILESDIR}/readarr.init" readarr
+
+ keepdir /var/lib/readarr
+ fowners -R readarr:readarr /var/lib/readarr
+
+ insinto /etc/logrotate.d
+ insopts -m0644 -o root -g root
+ newins "${FILESDIR}/readarr.logrotate" readarr
+
+ dodir "/opt/readarr"
+ cp -R "${S}/." "${D}/opt/readarr" || die "Install failed!"
+
+ systemd_dounit "${FILESDIR}/readarr.service"
+ systemd_newunit "${FILESDIR}/readarr.service" "readarr@.service"
+}