diff options
author | Maciej Barć <xgqt@gentoo.org> | 2024-03-22 23:29:18 +0100 |
---|---|---|
committer | Craig Andrews <candrews@gentoo.org> | 2024-03-23 14:37:35 -0400 |
commit | 87df1817c1129c8b74ffc26787357e97741f7640 (patch) | |
tree | 636ff5bd5b3a8a2da9e822367c17ed35f7f22843 /www-apps/lidarr-bin | |
parent | www-apps/radarr-bin: move from www-apps/radarr (diff) | |
download | gentoo-87df1817c1129c8b74ffc26787357e97741f7640.tar.gz gentoo-87df1817c1129c8b74ffc26787357e97741f7640.tar.bz2 gentoo-87df1817c1129c8b74ffc26787357e97741f7640.zip |
www-apps/lidarr-bin: move from www-apps/lidarr
Bug: https://bugs.gentoo.org/915346
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Signed-off-by: Craig Andrews <candrews@gentoo.org>
Diffstat (limited to 'www-apps/lidarr-bin')
-rw-r--r-- | www-apps/lidarr-bin/Manifest | 6 | ||||
-rw-r--r-- | www-apps/lidarr-bin/files/lidarr.init | 7 | ||||
-rw-r--r-- | www-apps/lidarr-bin/files/lidarr.logrotate | 4 | ||||
-rw-r--r-- | www-apps/lidarr-bin/files/lidarr.service | 30 | ||||
-rw-r--r-- | www-apps/lidarr-bin/lidarr-bin-2.2.3.4098.ebuild | 78 | ||||
-rw-r--r-- | www-apps/lidarr-bin/metadata.xml | 20 |
6 files changed, 145 insertions, 0 deletions
diff --git a/www-apps/lidarr-bin/Manifest b/www-apps/lidarr-bin/Manifest new file mode 100644 index 000000000000..5c24083835ef --- /dev/null +++ b/www-apps/lidarr-bin/Manifest @@ -0,0 +1,6 @@ +DIST Lidarr.develop.2.2.3.4098.linux-core-arm.tar.gz 91859206 BLAKE2B e0dfefc39e5d0f95eec3b9fd35a7685db26b183b3ca22994098e15d85bc8a83d934eb3de3a839661bbaf5c7f21053e273273b43b3402f7d795ec154cfaf9fb4b SHA512 e7c1ae12dcc27345a21782f938a402df61e9378019ff7f3711767297a84f57e39af231a10d077cd058d08942e5f496d982170a2e5d25dd72c1368e203bed9d4c +DIST Lidarr.develop.2.2.3.4098.linux-core-arm64.tar.gz 91481666 BLAKE2B e8fbcf9a55ac366f0b7b5e155ea3d495b1a38c58dde16ede2dd5ac5b0a42759c0e88917a425720b3c2729273548cfe29915303df28fb51dee913fd77c493d2f8 SHA512 93eced78364ed05c2f7d741dde0a55b8da18e0c60b648316bd5b26b4f3d66cdb3fd883a7c7f5263e38b229cf8de63c7dff4ac2a41894dffdc4d30cd6e437b269 +DIST Lidarr.develop.2.2.3.4098.linux-core-x64.tar.gz 97990993 BLAKE2B 2eb750fbbbe26d2205d8fa3849deeda07edb703d4dd1b3a95d2255a54b2c700815dec027c80df6ee60884440028aa5ea5839d894a821ebc209b6a5d3fa9a5d1b SHA512 c44d10b0c0a5d2cc3b69c25ac5364ee40033003c0ee10304dfca207b638e6cd14b165ed8d6c6e758304658c0a2973c76d791062928712085c952afaf06ef3795 +DIST Lidarr.develop.2.2.3.4098.linux-musl-core-arm.tar.gz 91917270 BLAKE2B 2ca7850e8e35cb1272cc17d6171944363ebf518313c62ae5b62c97defe72c15ccd4fbf2e7689f5fa2abe9b6d87a30f7f4d23bbfe2e53307d4bf2a61fdb5dec6b SHA512 d23f112599a1e06f194813824af84e3c74375b7b27e99f377bd9fb5f7feef54627f85aefb79e5ec341be94c3c87e3345197fa3b1fe7160dd254c0f1c09684bd5 +DIST Lidarr.develop.2.2.3.4098.linux-musl-core-arm64.tar.gz 91535468 BLAKE2B a77426663ed1b1c949970fdee75810920416e08b192eca430571ac87ae0af7590d914c78ad31e3cc3074b563bd2712b113b622ae8adea22ab0bc4492cc2a8a51 SHA512 84b4f46d93a35c2d78d9118e9320effe71e652d46d5374c692c6a7aaea00e7b9d3ca1697c1942af7e6b69fbddd47dc0a159a918b7dcb37dcf6becc8729065c59 +DIST Lidarr.develop.2.2.3.4098.linux-musl-core-x64.tar.gz 97063463 BLAKE2B 53e17717644fc427d30e834af194f741860a04061bd536924540e168273a6a48dacf58eb6144761949cb4df15400b7c6a377170ff9a3b394cfdf764427b284c7 SHA512 57d9791ec9b8e6fa189fa79a8ea675d46f17e306c3170d0e0e9312f032c3dfb29e666d2dfb52e111e7edff03a21c5b56cddc854522594208672b46f8d42d394d diff --git a/www-apps/lidarr-bin/files/lidarr.init b/www-apps/lidarr-bin/files/lidarr.init new file mode 100644 index 000000000000..f68e0eb006a6 --- /dev/null +++ b/www-apps/lidarr-bin/files/lidarr.init @@ -0,0 +1,7 @@ +#!/sbin/openrc-run + +pidfile="/run/lidarr.pid" +command="/opt/lidarr/Lidarr" +command_user="lidarr:lidarr" +command_background=true + diff --git a/www-apps/lidarr-bin/files/lidarr.logrotate b/www-apps/lidarr-bin/files/lidarr.logrotate new file mode 100644 index 000000000000..c1038e3cf9e8 --- /dev/null +++ b/www-apps/lidarr-bin/files/lidarr.logrotate @@ -0,0 +1,4 @@ +/var/lib/lidarr/.config/Lidarr/logs/*.txt{ + missingok + su lidarr lidarr +} diff --git a/www-apps/lidarr-bin/files/lidarr.service b/www-apps/lidarr-bin/files/lidarr.service new file mode 100644 index 000000000000..a4690d6f4cfa --- /dev/null +++ b/www-apps/lidarr-bin/files/lidarr.service @@ -0,0 +1,30 @@ +[Unit] +Description=Looks and smells like Sonarr but made for music. +After=syslog.target network.target + +[Service] +User=lidarr +Group=lidarr + +Type=simple +ExecStart=/opt/lidarr/Lidarr +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/lidarr-bin/lidarr-bin-2.2.3.4098.ebuild b/www-apps/lidarr-bin/lidarr-bin-2.2.3.4098.ebuild new file mode 100644 index 000000000000..2676b94f25ac --- /dev/null +++ b/www-apps/lidarr-bin/lidarr-bin-2.2.3.4098.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit systemd + +DESCRIPTION="Looks and smells like Sonarr but made for music" +HOMEPAGE="https://lidarr.audio/ + https://github.com/Lidarr/Lidarr/" + +SRC_URI=" + amd64? ( + elibc_glibc? ( + https://github.com/Lidarr/Lidarr/releases/download/v${PV}/Lidarr.develop.${PV}.linux-core-x64.tar.gz + ) + elibc_musl? ( + https://github.com/Lidarr/Lidarr/releases/download/v${PV}/Lidarr.develop.${PV}.linux-musl-core-x64.tar.gz + ) + ) + arm? ( + elibc_glibc? ( + https://github.com/Lidarr/Lidarr/releases/download/v${PV}/Lidarr.develop.${PV}.linux-core-arm.tar.gz + ) + elibc_musl? ( + https://github.com/Lidarr/Lidarr/releases/download/v${PV}/Lidarr.develop.${PV}.linux-musl-core-arm.tar.gz + ) + ) + arm64? ( + elibc_glibc? ( + https://github.com/Lidarr/Lidarr/releases/download/v${PV}/Lidarr.develop.${PV}.linux-core-arm64.tar.gz + ) + elibc_musl? ( + https://github.com/Lidarr/Lidarr/releases/download/v${PV}/Lidarr.develop.${PV}.linux-musl-core-arm64.tar.gz + ) + ) +" +S="${WORKDIR}/Lidarr" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64" +RESTRICT="bindist strip test" + +RDEPEND=" + acct-group/lidarr + acct-user/lidarr + 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 Lidarr.Update/libcoreclrtraceptprovider.so || die +} + +src_install() { + newinitd "${FILESDIR}/lidarr.init" lidarr + + keepdir /var/lib/lidarr + fowners -R lidarr:lidarr /var/lib/lidarr + + insinto /etc/logrotate.d + insopts -m0644 -o root -g root + newins "${FILESDIR}/lidarr.logrotate" lidarr + + dodir "/opt/lidarr" + cp -R "${S}/." "${D}/opt/lidarr" || die "Install failed!" + + systemd_dounit "${FILESDIR}/lidarr.service" + systemd_newunit "${FILESDIR}/lidarr.service" "lidarr@.service" +} diff --git a/www-apps/lidarr-bin/metadata.xml b/www-apps/lidarr-bin/metadata.xml new file mode 100644 index 000000000000..65c6cb6b33aa --- /dev/null +++ b/www-apps/lidarr-bin/metadata.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person" proxied="yes"> + <email>PF4Public@mail.ru</email> + <name>PF4Public</name> + </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">Lidarr/Lidarr</remote-id> + <bugs-to>https://github.com/Lidarr/Lidarr/issues</bugs-to> + </upstream> +</pkgmetadata> |