summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Andrews <candrews@gentoo.org>2022-07-06 16:53:25 -0400
committerCraig Andrews <candrews@gentoo.org>2022-07-10 14:25:58 -0400
commitf791e4a2cb630c118d0a70305bd1b81503fbae0f (patch)
treec3abce75bdac7a908712977eb08c14e3ffa8195f /www-apps
parentacct-user/prowlarr: group for prowlarr (diff)
downloadgentoo-f791e4a2cb630c118d0a70305bd1b81503fbae0f.tar.gz
gentoo-f791e4a2cb630c118d0a70305bd1b81503fbae0f.tar.bz2
gentoo-f791e4a2cb630c118d0a70305bd1b81503fbae0f.zip
www-apps/prowlarr: indexer manager/proxy to integrate with PVR apps.
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/prowlarr/Manifest3
-rw-r--r--www-apps/prowlarr/files/prowlarr.init7
-rw-r--r--www-apps/prowlarr/files/prowlarr.logrotate4
-rw-r--r--www-apps/prowlarr/files/prowlarr.service30
-rw-r--r--www-apps/prowlarr/metadata.xml21
-rw-r--r--www-apps/prowlarr/prowlarr-0.4.2.1879.ebuild46
6 files changed, 111 insertions, 0 deletions
diff --git a/www-apps/prowlarr/Manifest b/www-apps/prowlarr/Manifest
new file mode 100644
index 000000000000..14ff94f87651
--- /dev/null
+++ b/www-apps/prowlarr/Manifest
@@ -0,0 +1,3 @@
+DIST Prowlarr.develop.0.4.2.1879.linux-core-arm.tar.gz 85892990 BLAKE2B 5e0cb3dba04f2cf1824527e0274cb8f11a8636de12b2ced43eaa234352860ec18bd83d65dc6fdccae2fd127fe9fefbd09578a43446dd0bc43f21d9c32b160d6e SHA512 115bf5c62091c514867129046d662bae17b721c3d46376493be5caf44f09929d6b0b3844ef93747bf56b64e9f4fdc4b5c0824ee6842f170776b7a4536ec4bef7
+DIST Prowlarr.develop.0.4.2.1879.linux-core-arm64.tar.gz 85152796 BLAKE2B 033a426af2ce96eba38606216bb1f75689c8f16dec460395f432f57041cbd28b197f9eacf0ad0f8cb2558a7980ae1b9c4eec70601b2bdd5ac96f77e9aeb93ea9 SHA512 f652f40713d27cc9486444b4fd0185e343bcc869b4798d22446097bff962bd3a51cf0f54a66a7a1acf07a6d7db29e8cf828427f3c81cd637c30618a19de85da6
+DIST Prowlarr.develop.0.4.2.1879.linux-core-x64.tar.gz 90155053 BLAKE2B 3baca7360f9d8e1a6c02783288423f01591b70895bae5909748f56d9a8e830d51809ebb378a0010a72f28dec76cc6563100d969bf224acc6ef966cccb40fa60d SHA512 a9c0a52a3ee02ed38f501307c59bdc90dee8ddd686fbd132de8625892cba89b4267594f3c4df714e488aad14612238c6400ccb82d3d0438c078ed92f61cd49ce
diff --git a/www-apps/prowlarr/files/prowlarr.init b/www-apps/prowlarr/files/prowlarr.init
new file mode 100644
index 000000000000..831a4425a80a
--- /dev/null
+++ b/www-apps/prowlarr/files/prowlarr.init
@@ -0,0 +1,7 @@
+#!/sbin/openrc-run
+
+pidfile="/run/prowlarr.pid"
+command="/opt/prowlarr/Prowlarr"
+command_user="prowlarr:prowlarr"
+command_background=true
+
diff --git a/www-apps/prowlarr/files/prowlarr.logrotate b/www-apps/prowlarr/files/prowlarr.logrotate
new file mode 100644
index 000000000000..5b7588e2b51a
--- /dev/null
+++ b/www-apps/prowlarr/files/prowlarr.logrotate
@@ -0,0 +1,4 @@
+/var/lib/prowlarr/.config/prowlarr/logs/*.log{
+ missingok
+ su prowlarr prowlarr
+}
diff --git a/www-apps/prowlarr/files/prowlarr.service b/www-apps/prowlarr/files/prowlarr.service
new file mode 100644
index 000000000000..7fe9097bf338
--- /dev/null
+++ b/www-apps/prowlarr/files/prowlarr.service
@@ -0,0 +1,30 @@
+[Unit]
+Description=An indexer manager/proxy to integrate with your various PVR apps.
+After=syslog.target network.target
+
+[Service]
+User=prowlarr
+Group=prowlarr
+
+Type=simple
+ExecStart=/opt/prowlarr/Prowlarr
+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/prowlarr/metadata.xml b/www-apps/prowlarr/metadata.xml
new file mode 100644
index 000000000000..4540c8160d1d
--- /dev/null
+++ b/www-apps/prowlarr/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" proxied="yes">
+ <email>mcrawford@eliteitminds.com</email>
+ <name>Mike 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">Prowlarr/Prowlarr</remote-id>
+ <bugs-to>https://github.com/Prowlarr/Prowlarr/issues</bugs-to>
+ </upstream>
+</pkgmetadata>
diff --git a/www-apps/prowlarr/prowlarr-0.4.2.1879.ebuild b/www-apps/prowlarr/prowlarr-0.4.2.1879.ebuild
new file mode 100644
index 000000000000..1ffb456610d0
--- /dev/null
+++ b/www-apps/prowlarr/prowlarr-0.4.2.1879.ebuild
@@ -0,0 +1,46 @@
+# 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/Prowlarr/Prowlarr/releases/download/v${PV}/Prowlarr.develop.${PV}.linux-core-x64.tar.gz )
+ arm? ( https://github.com/Prowlarr/Prowlarr/releases/download/v${PV}/Prowlarr.develop.${PV}.linux-core-arm.tar.gz )
+ arm64? ( https://github.com/Prowlarr/Prowlarr/releases/download/v${PV}/Prowlarr.develop.${PV}.linux-core-arm64.tar.gz )
+"
+
+DESCRIPTION="An indexer manager/proxy to integrate with your various PVR apps"
+HOMEPAGE="https://wiki.servarr.com/prowlarr"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~arm ~arm64"
+RESTRICT="bindist strip test"
+
+RDEPEND="
+ acct-group/prowlarr
+ acct-user/prowlarr
+ dev-libs/icu
+ dev-util/lttng-ust:0
+ dev-db/sqlite"
+
+S="${WORKDIR}/Prowlarr"
+
+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/prowlarr" || die "Install failed!"
+
+ systemd_dounit "${FILESDIR}/prowlarr.service"
+ systemd_newunit "${FILESDIR}/prowlarr.service" "${PN}@.service"
+}