From f52562a45d967e193210737b55de5f0ff9018b76 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 24 Mar 2024 01:01:06 +0000 Subject: gentoo auto-resync : 24:03:2024 - 01:01:06 --- www-apps/sonarr-bin/Manifest | 10 ++++ www-apps/sonarr-bin/files/sonarr.init-r2 | 7 +++ www-apps/sonarr-bin/files/sonarr.logrotate | 7 +++ www-apps/sonarr-bin/files/sonarr.service-r1 | 30 ++++++++++ www-apps/sonarr-bin/metadata.xml | 21 +++++++ www-apps/sonarr-bin/sonarr-bin-4.0.2.1341.ebuild | 74 ++++++++++++++++++++++++ 6 files changed, 149 insertions(+) create mode 100644 www-apps/sonarr-bin/Manifest create mode 100644 www-apps/sonarr-bin/files/sonarr.init-r2 create mode 100644 www-apps/sonarr-bin/files/sonarr.logrotate create mode 100644 www-apps/sonarr-bin/files/sonarr.service-r1 create mode 100644 www-apps/sonarr-bin/metadata.xml create mode 100644 www-apps/sonarr-bin/sonarr-bin-4.0.2.1341.ebuild (limited to 'www-apps/sonarr-bin') diff --git a/www-apps/sonarr-bin/Manifest b/www-apps/sonarr-bin/Manifest new file mode 100644 index 000000000000..07b8293873d7 --- /dev/null +++ b/www-apps/sonarr-bin/Manifest @@ -0,0 +1,10 @@ +AUX sonarr.init-r2 148 BLAKE2B ec52d371fe94038459978619cb51e1a5394d48178af12eaf8e48758af2476edad621866261454a33fc4d1fdf985463c5036442627ded3733531549c00bf7d980 SHA512 769e844e962df9880d5aa6d6030af792e14d6ca7c375f687cb0a62921b784037f45bc7e2d0da2803400f6de5a2a32b5903e3cfa910bc06bfca5a2f90b042ea65 +AUX sonarr.logrotate 185 BLAKE2B 177e0158baba22056af33f59656a734541be16a9e5dbbd09758ba6ed23b3262979c9b1ca6072bfaca8567ca3165af35f2911838c903a9c75da37cc9aa259858e SHA512 9fddf238caa123801462158debf2296ac04ba2e2d42f1566b50b4823b10e8c84dfdb5f1649ae1a6c3bebce19e639289b5c9a491d7ba20a37e19980673a32a5cb +AUX sonarr.service-r1 568 BLAKE2B 7ccc2f3def560fd07713e433a657f2664c153acbf316442e516f9591a918dc042bcc8302877e1456af2dc4ae30d44157ffc1b11e6844ea9cbea9990aecd62c24 SHA512 d99f6312ffe8dff2c0d938a3c0e5801355e1323261b7e8752f409ddab5885ebacd9c6237060cd4153bd91e1f1c8c3e70dd69285002956cc45a8259798268bfcb +DIST Sonarr.develop.4.0.2.1341.linux-arm.tar.gz 94805415 BLAKE2B 21982fe26370705ec5768ab7cbc0da01f0a311d1567839036a2ba6e1ed52eca6d9998df4059c41581cb3c8d49c26ac7cc1470724e29e56f029d0dbe419fc71ea SHA512 109176d72797c9d1ee76431b782dcd406ea1f8ce1529ff4b97ccd1f26e49d5a348e27508c957fe499752a9fd9b99c3b32d74d0c3ef0b4c25a6f8c67732e6d4f7 +DIST Sonarr.develop.4.0.2.1341.linux-arm64.tar.gz 94539645 BLAKE2B ba2a20514d6c5abeefc969d3d015aa429d9280369fde81a6328f0492b8f09dab21f02eade3f326cc567f27852cd2da1107db205bee2db4d82c7de9c2b80c10bc SHA512 841c2b626519ad39fa18ffe2206cc25566c8a9111a471fd7ecf05e4efbea841d56bf7b94c43f7a4da08f99964b79ad568919622a946d0cb1d00c87262e3c1512 +DIST Sonarr.develop.4.0.2.1341.linux-musl-arm64.tar.gz 94600038 BLAKE2B 78843455f0016bd9abd70def5af480b82b967ae29016301838ad22aab386921c629f0afd74dd46544d6fb0d44edbc8ad3958e85ce0144328242848079379d683 SHA512 fa2606b146c8dda9a995738fa92903c03d93dcfbdffad823a44684ec470ac1284214b55350d86dc559200d316be4cd984a94137f6c196e7d910446ff981e5c60 +DIST Sonarr.develop.4.0.2.1341.linux-musl-x64.tar.gz 99534294 BLAKE2B fc11bc8a29f2cb63f0cb64e6bd64949dc76708ab5866ae6bffba5263b4bc335ec11881ce4bdfb82dc22e0c672fd4c8b8489b7e9bad2e7bfdad77542b22cff86e SHA512 5c9afe8232ff8baa6e2be5ad01af4c7230e033381530c2272638c530e33b9273678f7314ebb33c8435c119c2e01c46151bc538867476a9ca99ff04ec3e8eb39c +DIST Sonarr.develop.4.0.2.1341.linux-x64.tar.gz 100478213 BLAKE2B 8df9d3d1b68daefd55e8df16d63f8777fef81cb8ff83496ab1e74e2a315e7f2df5ae38eb2121ad29fea13193c0eac586507c8e3ca17a999cbe83d0598a8f57e2 SHA512 22d2da5a142abd0463985b88bd1f8685e8931d1228ffc01b4610cf3d9688441e6a168098f47232acb19ebcb7228486af0813fc9c7a417ada394f5d098baa7444 +EBUILD sonarr-bin-4.0.2.1341.ebuild 1749 BLAKE2B 2e42b6b35dbfda7b42504b8b89ae91f39c4e9a665f51b9cee0cf0daf4fb2ea3460c2e3f8c6733302a55d23b0794208d82c77528baa3719e28001af8c4526323b SHA512 719e9316fc0a72b7f86fc54a27a97f81f204a18bf3cdc3360f0732d565b363d9f956bce157aa42600e4b9afcaf6ced5bb05305abca892875495ccf2e68db5b4c +MISC metadata.xml 675 BLAKE2B 5ac9fb421e127c8552ee273b784205059a59245d3783efa5c69225dcc34a65cdf00e39de3dc47013807923766110992f557cb3247f9866ec6d0c836b42ab4cd5 SHA512 1c347d1e422a2653fe8c403169cc1f16f7d5c668831d60a67d67a2df8ca90c696fb28fde70cd4a3c9336f983c39fbba30ec570ab7c14caee946cdd983aa6ba58 diff --git a/www-apps/sonarr-bin/files/sonarr.init-r2 b/www-apps/sonarr-bin/files/sonarr.init-r2 new file mode 100644 index 000000000000..76b8dbed164b --- /dev/null +++ b/www-apps/sonarr-bin/files/sonarr.init-r2 @@ -0,0 +1,7 @@ +#!/sbin/openrc-run + +pidfile="/run/sonarr.pid" +command="/opt/sonarr/Sonarr" +command_user="${GROUP:-sonarr}:${USER:-sonarr}" +command_background=true + diff --git a/www-apps/sonarr-bin/files/sonarr.logrotate b/www-apps/sonarr-bin/files/sonarr.logrotate new file mode 100644 index 000000000000..9514fa02651e --- /dev/null +++ b/www-apps/sonarr-bin/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/Sonarr/logs/*.txt{ + missingok + su sonarr sonarr +} diff --git a/www-apps/sonarr-bin/files/sonarr.service-r1 b/www-apps/sonarr-bin/files/sonarr.service-r1 new file mode 100644 index 000000000000..542f5d7f1031 --- /dev/null +++ b/www-apps/sonarr-bin/files/sonarr.service-r1 @@ -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=/opt/sonarr/Sonarr +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-bin/metadata.xml b/www-apps/sonarr-bin/metadata.xml new file mode 100644 index 000000000000..be137c9a13d0 --- /dev/null +++ b/www-apps/sonarr-bin/metadata.xml @@ -0,0 +1,21 @@ + + + + + mcrawford@eliteitminds.com + Michael Crawford + Primary maintainer + + + proxy-maint@gentoo.org + Proxy Maintainers + + + candrews@gentoo.org + Craig Andrews + + + Sonarr/Sonarr + https://github.com/Sonarr/Sonarr/issues + + diff --git a/www-apps/sonarr-bin/sonarr-bin-4.0.2.1341.ebuild b/www-apps/sonarr-bin/sonarr-bin-4.0.2.1341.ebuild new file mode 100644 index 000000000000..f10489599d33 --- /dev/null +++ b/www-apps/sonarr-bin/sonarr-bin-4.0.2.1341.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit systemd + +DESCRIPTION="Sonarr is a Smart PVR for newsgroup and bittorrent users" +HOMEPAGE="https://www.sonarr.tv" + +SRC_URI=" + amd64? ( + elibc_glibc? ( + https://github.com/Sonarr/Sonarr/releases/download/v${PV}/Sonarr.develop.${PV}.linux-x64.tar.gz + ) + elibc_musl? ( + https://github.com/Sonarr/Sonarr/releases/download/v${PV}/Sonarr.develop.${PV}.linux-musl-x64.tar.gz + ) + ) + arm? ( + elibc_glibc? ( + https://github.com/Sonarr/Sonarr/releases/download/v${PV}/Sonarr.develop.${PV}.linux-arm.tar.gz + ) + ) + arm64? ( + elibc_glibc? ( + https://github.com/Sonarr/Sonarr/releases/download/v${PV}/Sonarr.develop.${PV}.linux-arm64.tar.gz + ) + elibc_musl? ( + https://github.com/Sonarr/Sonarr/releases/download/v${PV}/Sonarr.develop.${PV}.linux-musl-arm64.tar.gz + ) + ) +" +S="${WORKDIR}/Sonarr" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64" +RESTRICT="bindist strip test" + +RDEPEND=" + acct-group/sonarr + acct-user/sonarr + media-video/mediainfo + dev-libs/icu + dev-util/lttng-ust:0 + dev-db/sqlite +" + +QA_PREBUILT="*" + +src_prepare() { + default + + # https://github.com/dotnet/runtime/issues/57784 + rm libcoreclrtraceptprovider.so Sonarr.Update/libcoreclrtraceptprovider.so || die +} + +src_install() { + newinitd "${FILESDIR}/sonarr.init-r2" sonarr + + keepdir /var/lib/sonarr + fowners -R sonarr:sonarr /var/lib/sonarr + + insinto /etc/logrotate.d + insopts -m0644 -o root -g root + newins "${FILESDIR}/sonarr.logrotate" sonarr + + dodir "/opt/sonarr" + cp -R "${S}/." "${D}/opt/sonarr" || die "Install failed!" + + systemd_newunit "${FILESDIR}/sonarr.service-r1" "sonarr.service" + systemd_newunit "${FILESDIR}/sonarr.service-r1" "sonarr@.service" +} -- cgit v1.2.3