mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-21 22:47:14 -08:00
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>
This commit is contained in:
@@ -0,0 +1 @@
|
||||
DIST Sonarr.main.3.0.8.1507.linux.tar.gz 13647325 BLAKE2B bd269ec2e628075548c9c11db0f9d31f0b9a8c24bb55e0b7d0c58cc32c33423ca4988e9e63170fa6b5f49d438877a88402cebca3183fb98ac5995eb2a38e96e5 SHA512 32efec2207e853a1d7737fc72e9484e62c07a4b39f7e9c6ea0519bcc3220bf4bdb189c6b5dc30aa168912ba912a78c4c5832e2b84bc0a42c46844e76d3b9cc1a
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
@@ -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
|
||||
@@ -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>
|
||||
@@ -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"
|
||||
}
|
||||
Reference in New Issue
Block a user