diff options
author | Craig Andrews <candrews@gentoo.org> | 2022-07-06 16:16:54 -0400 |
---|---|---|
committer | Craig Andrews <candrews@gentoo.org> | 2022-07-10 14:25:56 -0400 |
commit | 7a6bfbbb5b55ba4e6986443e47d230e50db3c080 (patch) | |
tree | a7c0f3206b96153ec499e4e1cdc9075b4d5a92a7 /www-apps | |
parent | acct-user/sonarr: group for sonarr (diff) | |
download | gentoo-7a6bfbbb5b55ba4e6986443e47d230e50db3c080.tar.gz gentoo-7a6bfbbb5b55ba4e6986443e47d230e50db3c080.tar.bz2 gentoo-7a6bfbbb5b55ba4e6986443e47d230e50db3c080.zip |
www-apps/sonarr: Smart PVR for newsgroup and bittorrent users.
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/sonarr/Manifest | 1 | ||||
-rw-r--r-- | www-apps/sonarr/files/sonarr.init | 8 | ||||
-rw-r--r-- | www-apps/sonarr/files/sonarr.logrotate | 7 | ||||
-rw-r--r-- | www-apps/sonarr/files/sonarr.service | 30 | ||||
-rw-r--r-- | www-apps/sonarr/metadata.xml | 21 | ||||
-rw-r--r-- | www-apps/sonarr/sonarr-3.0.8.1507.ebuild | 42 |
6 files changed, 109 insertions, 0 deletions
diff --git a/www-apps/sonarr/Manifest b/www-apps/sonarr/Manifest new file mode 100644 index 000000000000..02cb272ebb45 --- /dev/null +++ b/www-apps/sonarr/Manifest @@ -0,0 +1 @@ +DIST Sonarr.main.3.0.8.1507.linux.tar.gz 13647325 BLAKE2B bd269ec2e628075548c9c11db0f9d31f0b9a8c24bb55e0b7d0c58cc32c33423ca4988e9e63170fa6b5f49d438877a88402cebca3183fb98ac5995eb2a38e96e5 SHA512 32efec2207e853a1d7737fc72e9484e62c07a4b39f7e9c6ea0519bcc3220bf4bdb189c6b5dc30aa168912ba912a78c4c5832e2b84bc0a42c46844e76d3b9cc1a 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" +} |