summaryrefslogtreecommitdiff
path: root/www-apps/sonarr
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-07-11 01:28:44 +0100
committerV3n3RiX <venerix@koprulu.sector>2022-07-11 01:28:44 +0100
commitb46b9834b3fbf80b22ccc12e95f660512cd0fa75 (patch)
treef7eb18ccc89e078e2f175e5249fe0d4dfdb5b104 /www-apps/sonarr
parent62f7102650b24618880e8e6f08fcb8fbd235025b (diff)
gentoo auto-resync : 11:07:2022 - 01:28:44
Diffstat (limited to 'www-apps/sonarr')
-rw-r--r--www-apps/sonarr/Manifest6
-rw-r--r--www-apps/sonarr/files/sonarr.init8
-rw-r--r--www-apps/sonarr/files/sonarr.logrotate7
-rw-r--r--www-apps/sonarr/files/sonarr.service30
-rw-r--r--www-apps/sonarr/metadata.xml21
-rw-r--r--www-apps/sonarr/sonarr-3.0.8.1507.ebuild42
6 files changed, 114 insertions, 0 deletions
diff --git a/www-apps/sonarr/Manifest b/www-apps/sonarr/Manifest
new file mode 100644
index 000000000000..c59c0285b354
--- /dev/null
+++ b/www-apps/sonarr/Manifest
@@ -0,0 +1,6 @@
+AUX sonarr.init 153 BLAKE2B b5a4d6540daf982180186d4d46b58669d2afa0ef5cb2f56e2657ffc635c61276c2950f07c56cd6a0d4d55c5302406c28c39e37057882b3ca9d4d4e9382a2489a SHA512 ee42b108d004c4d428ce0db191e2b58e1223997419b3d553908c6ed3d3306eca0fd36d99d59015a20ba73034a4e059f16aa735f512afd247aa0470b945afa1d0
+AUX sonarr.logrotate 187 BLAKE2B ee4f6641669084be16aa4e5bc731d3f86dc50e2d5a71a469364ff86d2af5a9f5a124445d22f1da9e25b4af4dc6891ce9d594323df5757daca8a7dbaa07e2a6cb SHA512 a31988829ee49fcf0fc2d08c1627689d73de08cc08a344c0e01f3f42767c7feae0b89255a30b0f95f45291a284661f150eadeddc146e2d4d1b1d21f22fe8b2cd
+AUX sonarr.service 586 BLAKE2B ee1adb8a3da32d9b7a0b9f51a08c05f2589e29b341773d5d83f49c3f16fab31f097c1e40c992062b7fde174970963cbede3fe5fc4c80c4340109f16ffc2ea7ce SHA512 b19daa0c08dea5349011567ade976a3c6a9d2edce85047d37eb583dbd83716ee6d461d46876c686bb8cf7de136b4b0c77a8b8c7c73dc94dbde6ee7d2559d3589
+DIST Sonarr.main.3.0.8.1507.linux.tar.gz 13647325 BLAKE2B bd269ec2e628075548c9c11db0f9d31f0b9a8c24bb55e0b7d0c58cc32c33423ca4988e9e63170fa6b5f49d438877a88402cebca3183fb98ac5995eb2a38e96e5 SHA512 32efec2207e853a1d7737fc72e9484e62c07a4b39f7e9c6ea0519bcc3220bf4bdb189c6b5dc30aa168912ba912a78c4c5832e2b84bc0a42c46844e76d3b9cc1a
+EBUILD sonarr-3.0.8.1507.ebuild 942 BLAKE2B bde457686df66f85f5eda295c3c173b7c8657585a5c1ce656ea9f221e2ea88703f38b8665330d8fb3fe1f2978033b1e603f9b08fd9b0e8f4b52aef089793a1c8 SHA512 bcd01d40fafd7a6c5e4b04a99a5c1a65c5007304279b0060f6ca0d44781b7ffcdc9886427da00954525e1cdc0c7760d0d668b7f762a21742da899d36fc08e388
+MISC metadata.xml 674 BLAKE2B db1f3c4382004198336463c89e025c0f2683e9d778bed348670742f1dc5ec56339eecab92e9209f6ebae7ffe8d5684a3b8453536b9066af7116746fdb9020aea SHA512 8978b2f97a2ef7d361df75a78c397e25a82464a5fe99eb26c433dd6a27a810fc3fb8c6b530bf52a53e41dc1f9fe5dd7ab8f172a8331e790751bb1cb9405af3a4
diff --git a/www-apps/sonarr/files/sonarr.init b/www-apps/sonarr/files/sonarr.init
new file mode 100644
index 000000000000..2ca5082cfbc0
--- /dev/null
+++ b/www-apps/sonarr/files/sonarr.init
@@ -0,0 +1,8 @@
+#!/sbin/openrc-run
+
+pidfile="/run/sonarr.pid"
+command="mono"
+command_args="/opt/sonarr/Sonarr.exe"
+command_user="sonarr:sonarr"
+command_background=true
+
diff --git a/www-apps/sonarr/files/sonarr.logrotate b/www-apps/sonarr/files/sonarr.logrotate
new file mode 100644
index 000000000000..3d374d3ad3c2
--- /dev/null
+++ b/www-apps/sonarr/files/sonarr.logrotate
@@ -0,0 +1,7 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+/var/lib/sonarr/.config/NzbDrone/logs/*.txt{
+ missingok
+ su sonarr sonarr
+}
diff --git a/www-apps/sonarr/files/sonarr.service b/www-apps/sonarr/files/sonarr.service
new file mode 100644
index 000000000000..562ad1229fd8
--- /dev/null
+++ b/www-apps/sonarr/files/sonarr.service
@@ -0,0 +1,30 @@
+[Unit]
+Description=Sonarr is a Smart PVR for newsgroup and bittorrent users.
+After=syslog.target network.target network-online.target
+
+[Service]
+User=sonarr
+Group=sonarr
+
+Type=simple
+ExecStart=/usr/bin/mono /opt/sonarr/Sonarr.exe
+TimeoutStopSec=20
+KillMode=process
+Restart=on-failure
+
+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/sonarr/metadata.xml b/www-apps/sonarr/metadata.xml
new file mode 100644
index 000000000000..dac0f3be1aaa
--- /dev/null
+++ b/www-apps/sonarr/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">Sonarr/Sonarr</remote-id>
+ <bugs-to>https://github.com/Sonarr/Sonarr/issues</bugs-to>
+ </upstream>
+</pkgmetadata>
diff --git a/www-apps/sonarr/sonarr-3.0.8.1507.ebuild b/www-apps/sonarr/sonarr-3.0.8.1507.ebuild
new file mode 100644
index 000000000000..36a30c93cf45
--- /dev/null
+++ b/www-apps/sonarr/sonarr-3.0.8.1507.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit systemd
+
+SRC_URI="https://download.sonarr.tv/v3/main/${PV}/Sonarr.main.${PV}.linux.tar.gz"
+
+DESCRIPTION="Sonarr is a Smart PVR for newsgroup and bittorrent users"
+HOMEPAGE="https://www.sonarr.tv"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64"
+RESTRICT="bindist strip test"
+
+RDEPEND="
+ acct-group/sonarr
+ acct-user/sonarr
+ >=dev-lang/mono-6.6.0.161
+ media-video/mediainfo
+ dev-db/sqlite"
+
+S="${WORKDIR}/Sonarr"
+
+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/${PN}" || die "Install failed!"
+
+ systemd_dounit "${FILESDIR}/${PN}.service"
+ systemd_newunit "${FILESDIR}/${PN}.service" "${PN}@.service"
+}