* [gentoo-commits] repo/gentoo:master commit in: www-apps/readarr/, www-apps/readarr/files/
@ 2022-07-20 12:16 Craig Andrews
0 siblings, 0 replies; 2+ messages in thread
From: Craig Andrews @ 2022-07-20 12:16 UTC (permalink / raw
To: gentoo-commits
commit: 47a2f82823c78a965aa6556ddf7daa9e83bcd575
Author: Craig Andrews <candrews <AT> gentoo <DOT> org>
AuthorDate: Tue Jul 19 20:34:07 2022 +0000
Commit: Craig Andrews <candrews <AT> gentoo <DOT> org>
CommitDate: Wed Jul 20 12:14:21 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=47a2f828
www-apps/readarr: An ebook and audiobook collection manager
Signed-off-by: Craig Andrews <candrews <AT> gentoo.org>
www-apps/readarr/Manifest | 3 ++
www-apps/readarr/files/readarr.init | 7 ++++
www-apps/readarr/files/readarr.logrotate | 4 +++
www-apps/readarr/files/readarr.service | 30 ++++++++++++++++
www-apps/readarr/metadata.xml | 21 ++++++++++++
www-apps/readarr/readarr-0.1.1.1320.ebuild | 55 ++++++++++++++++++++++++++++++
6 files changed, 120 insertions(+)
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"
+}
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: www-apps/readarr/, www-apps/readarr/files/
@ 2023-07-16 21:11 Sam James
0 siblings, 0 replies; 2+ messages in thread
From: Sam James @ 2023-07-16 21:11 UTC (permalink / raw
To: gentoo-commits
commit: d5ccc30e95a033b00e62aa7b1da7b17c35260500
Author: PF4Public <PF4Public <AT> users <DOT> noreply <DOT> github <DOT> com>
AuthorDate: Sun Jul 16 16:55:13 2023 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Jul 16 21:10:31 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d5ccc30e
www-apps/readarr: fix logrotate
Signed-off-by: PF4Public <PF4Public <AT> users.noreply.github.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>
www-apps/readarr/files/readarr.logrotate | 2 +-
.../readarr/{readarr-0.2.2.1943.ebuild => readarr-0.2.2.1943-r1.ebuild} | 0
2 files changed, 1 insertion(+), 1 deletion(-)
diff --git a/www-apps/readarr/files/readarr.logrotate b/www-apps/readarr/files/readarr.logrotate
index 2dc56f43cceb..4675f682b629 100644
--- a/www-apps/readarr/files/readarr.logrotate
+++ b/www-apps/readarr/files/readarr.logrotate
@@ -1,4 +1,4 @@
-/var/lib/readarr/.config/readarr/logs/*.log{
+/var/lib/readarr/.config/Readarr/logs/*.txt{
missingok
su readarr readarr
}
diff --git a/www-apps/readarr/readarr-0.2.2.1943.ebuild b/www-apps/readarr/readarr-0.2.2.1943-r1.ebuild
similarity index 100%
rename from www-apps/readarr/readarr-0.2.2.1943.ebuild
rename to www-apps/readarr/readarr-0.2.2.1943-r1.ebuild
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-07-16 21:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-16 21:11 [gentoo-commits] repo/gentoo:master commit in: www-apps/readarr/, www-apps/readarr/files/ Sam James
-- strict thread matches above, loose matches on Subject: below --
2022-07-20 12:16 Craig Andrews
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox