diff options
author | Fredrik Eriksson <feffe@fulh.ax> | 2023-02-12 08:42:46 +0100 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2023-02-25 11:11:43 +0200 |
commit | 447ca26e88e5d17cef04b440000917daed7b07a5 (patch) | |
tree | 3e69d48f1bb2fc272600d54c4ce58477132bd5b9 /www-apps/jellyfin | |
parent | app-misc/nnn: update xdg caches (diff) | |
download | gentoo-447ca26e88e5d17cef04b440000917daed7b07a5.tar.gz gentoo-447ca26e88e5d17cef04b440000917daed7b07a5.tar.bz2 gentoo-447ca26e88e5d17cef04b440000917daed7b07a5.zip |
www-apps/jellyfin: Add tmpfiles.d configuration
Closes: https://bugs.gentoo.org/888097
Signed-off-by: Fredrik Eriksson <feffe@fulh.ax>
Closes: https://github.com/gentoo/gentoo/pull/29554
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'www-apps/jellyfin')
-rw-r--r-- | www-apps/jellyfin/jellyfin-10.8.9-r1.ebuild | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/www-apps/jellyfin/jellyfin-10.8.9-r1.ebuild b/www-apps/jellyfin/jellyfin-10.8.9-r1.ebuild new file mode 100644 index 000000000000..60b0a60bcc2a --- /dev/null +++ b/www-apps/jellyfin/jellyfin-10.8.9-r1.ebuild @@ -0,0 +1,65 @@ +# Copyright 2022-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit pax-utils systemd tmpfiles + +DESCRIPTION="Jellyfin puts you in control of managing and streaming your media" +HOMEPAGE="https://jellyfin.readthedocs.io/en/latest/" + +SRC_URI=" + arm64? ( + https://repo.jellyfin.org/releases/server/linux/versions/stable/combined/${PV}/${PN}_${PV}_arm64.tar.gz + https://repo.jellyfin.org/archive/linux/stable/${PV}/combined/${PN}_${PV}_arm64.tar.gz + ) + amd64? ( + https://repo.jellyfin.org/releases/server/linux/versions/stable/combined/${PV}/${PN}_${PV}_amd64.tar.gz + https://repo.jellyfin.org/archive/linux/stable/${PV}/combined/${PN}_${PV}_amd64.tar.gz + )" + +RESTRICT="mirror test" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="-* ~amd64 ~arm64" +DEPEND="acct-user/jellyfin" +RDEPEND="${DEPEND} + dev-libs/icu + media-video/ffmpeg[vpx,x264] + sys-libs/glibc" +BDEPEND="acct-user/jellyfin" +INST_DIR="/opt/${PN}" +QA_PREBUILT="${INST_DIR#/}/*.so ${INST_DIR#/}/jellyfin ${INST_DIR#/}/createdump" + +src_unpack() { + unpack ${A} + mv ${PN}_${PV} ${P} || die +} + +src_prepare() { + default + + # https://github.com/jellyfin/jellyfin/issues/7471 + # https://github.com/dotnet/runtime/issues/57784 + rm libcoreclrtraceptprovider.so || die +} + +src_install() { + keepdir /var/log/jellyfin + fowners jellyfin:jellyfin /var/log/jellyfin + keepdir /etc/jellyfin + fowners jellyfin:jellyfin /etc/jellyfin + insinto ${INST_DIR} + dodir ${INST_DIR} + doins -r "${S}"/* + newtmpfiles - jellyfin.conf <<<"d /var/cache/jellyfin 0775 jellyfin jellyfin -" + chmod 755 "${D}${INST_DIR}/jellyfin" + newinitd "${FILESDIR}/${PN}.init-r1" "${PN}" + newconfd "${FILESDIR}"/${PN}.confd "${PN}" + systemd_dounit "${FILESDIR}/${PN}.service" + pax-mark -m "${ED}${INST_DIR}/jellyfin" +} + +pkg_postinst() { + tmpfiles_process jellyfin.conf +} |