From c57da8b95ff3db83e6d65ebb6a6716d2d2be3075 Mon Sep 17 00:00:00 2001 From: PF4Public Date: Sun, 16 Jul 2023 19:54:33 +0300 Subject: www-apps/radarr: fix logrotate Signed-off-by: PF4Public Signed-off-by: Sam James --- www-apps/radarr/files/radarr.logrotate | 2 +- www-apps/radarr/radarr-4.7.0.7588-r1.ebuild | 58 +++++++++++++++++++++++++++++ www-apps/radarr/radarr-4.7.0.7588.ebuild | 58 ----------------------------- 3 files changed, 59 insertions(+), 59 deletions(-) create mode 100644 www-apps/radarr/radarr-4.7.0.7588-r1.ebuild delete mode 100644 www-apps/radarr/radarr-4.7.0.7588.ebuild (limited to 'www-apps/radarr') diff --git a/www-apps/radarr/files/radarr.logrotate b/www-apps/radarr/files/radarr.logrotate index c6f14d75e1e4..166b80807334 100644 --- a/www-apps/radarr/files/radarr.logrotate +++ b/www-apps/radarr/files/radarr.logrotate @@ -1,4 +1,4 @@ -/var/lib/radarr/.config/radarr/logs/*.log{ +/var/lib/radarr/.config/Radarr/logs/*.txt{ missingok su radarr radarr } diff --git a/www-apps/radarr/radarr-4.7.0.7588-r1.ebuild b/www-apps/radarr/radarr-4.7.0.7588-r1.ebuild new file mode 100644 index 000000000000..dfd642cc5114 --- /dev/null +++ b/www-apps/radarr/radarr-4.7.0.7588-r1.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit systemd + +SRC_URI=" + amd64? ( https://github.com/Radarr/Radarr/releases/download/v${PV}/Radarr.develop.${PV}.linux-core-x64.tar.gz ) + arm? ( https://github.com/Radarr/Radarr/releases/download/v${PV}/Radarr.develop.${PV}.linux-core-arm.tar.gz ) + arm64? ( https://github.com/Radarr/Radarr/releases/download/v${PV}/Radarr.develop.${PV}.linux-core-arm64.tar.gz ) +" + +DESCRIPTION="A fork of Sonarr to work with movies a la Couchpotato" +HOMEPAGE="https://www.radarr.video" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64" +RESTRICT="bindist strip test" + +RDEPEND=" + acct-group/radarr + acct-user/radarr + media-video/mediainfo + dev-libs/icu + dev-util/lttng-ust:0 + dev-db/sqlite + sys-libs/glibc +" + +QA_PREBUILT="*" + +S="${WORKDIR}/Radarr" + +src_prepare() { + default + + # https://github.com/dotnet/runtime/issues/57784 + rm libcoreclrtraceptprovider.so Radarr.Update/libcoreclrtraceptprovider.so || die +} + +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/radarr" || die "Install failed!" + + systemd_dounit "${FILESDIR}/radarr.service" + systemd_newunit "${FILESDIR}/radarr.service" "${PN}@.service" +} diff --git a/www-apps/radarr/radarr-4.7.0.7588.ebuild b/www-apps/radarr/radarr-4.7.0.7588.ebuild deleted file mode 100644 index dfd642cc5114..000000000000 --- a/www-apps/radarr/radarr-4.7.0.7588.ebuild +++ /dev/null @@ -1,58 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit systemd - -SRC_URI=" - amd64? ( https://github.com/Radarr/Radarr/releases/download/v${PV}/Radarr.develop.${PV}.linux-core-x64.tar.gz ) - arm? ( https://github.com/Radarr/Radarr/releases/download/v${PV}/Radarr.develop.${PV}.linux-core-arm.tar.gz ) - arm64? ( https://github.com/Radarr/Radarr/releases/download/v${PV}/Radarr.develop.${PV}.linux-core-arm64.tar.gz ) -" - -DESCRIPTION="A fork of Sonarr to work with movies a la Couchpotato" -HOMEPAGE="https://www.radarr.video" - -LICENSE="GPL-3" -SLOT="0" -KEYWORDS="~amd64" -RESTRICT="bindist strip test" - -RDEPEND=" - acct-group/radarr - acct-user/radarr - media-video/mediainfo - dev-libs/icu - dev-util/lttng-ust:0 - dev-db/sqlite - sys-libs/glibc -" - -QA_PREBUILT="*" - -S="${WORKDIR}/Radarr" - -src_prepare() { - default - - # https://github.com/dotnet/runtime/issues/57784 - rm libcoreclrtraceptprovider.so Radarr.Update/libcoreclrtraceptprovider.so || die -} - -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/radarr" || die "Install failed!" - - systemd_dounit "${FILESDIR}/radarr.service" - systemd_newunit "${FILESDIR}/radarr.service" "${PN}@.service" -} -- cgit v1.2.3-65-gdbad