From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id BC70A158094 for ; Wed, 20 Jul 2022 12:16:05 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 25EF6E0BF9; Wed, 20 Jul 2022 12:16:04 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 86182E0BF8 for ; Wed, 20 Jul 2022 12:16:03 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4CA84340952 for ; Wed, 20 Jul 2022 12:16:02 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 923B6545 for ; Wed, 20 Jul 2022 12:16:00 +0000 (UTC) From: "Craig Andrews" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Craig Andrews" Message-ID: <1658319271.5523d24cba6631172d6e4f7ea9e9c718713ad42c.candrews@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: www-apps/jellyfin/files/, www-apps/jellyfin/ X-VCS-Repository: repo/gentoo X-VCS-Files: www-apps/jellyfin/files/jellyfin.confd www-apps/jellyfin/files/jellyfin.init-r1 www-apps/jellyfin/jellyfin-10.8.1-r2.ebuild X-VCS-Directories: www-apps/jellyfin/files/ www-apps/jellyfin/ X-VCS-Committer: candrews X-VCS-Committer-Name: Craig Andrews X-VCS-Revision: 5523d24cba6631172d6e4f7ea9e9c718713ad42c X-VCS-Branch: master Date: Wed, 20 Jul 2022 12:16:00 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: e11490e1-a6b8-4158-801b-4ef775904f04 X-Archives-Hash: bbcdf1a241aaffca7ee09abb73794033 commit: 5523d24cba6631172d6e4f7ea9e9c718713ad42c Author: Craig Andrews gentoo org> AuthorDate: Tue Jul 19 18:52:39 2022 +0000 Commit: Craig Andrews gentoo org> CommitDate: Wed Jul 20 12:14:31 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5523d24c www-apps/jellyfin: Add confd to facilitate greater configurability Allows easier modification of Jelly's log, cache, data, and configuration directories, and allows configuration of a proxy. Signed-off-by: Craig Andrews gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/26487 Signed-off-by: Craig Andrews gentoo.org> www-apps/jellyfin/files/jellyfin.confd | 15 ++++++++ www-apps/jellyfin/files/jellyfin.init-r1 | 24 ++++++++++++ www-apps/jellyfin/jellyfin-10.8.1-r2.ebuild | 57 +++++++++++++++++++++++++++++ 3 files changed, 96 insertions(+) diff --git a/www-apps/jellyfin/files/jellyfin.confd b/www-apps/jellyfin/files/jellyfin.confd new file mode 100644 index 000000000000..310bef364b90 --- /dev/null +++ b/www-apps/jellyfin/files/jellyfin.confd @@ -0,0 +1,15 @@ +# This is the directory that will hold all Jellyfin data, and is also used as a default base directory for some other paths below. +#JELLYFIN_DATA_DIR=/var/lib/jellyfin + +# This is the directory where the Jellyfin logs will be stored. +#JELLYFIN_LOG_DIR=/var/log/jellyfin + +# This is the directory containing the server cache. +#JELLYFIN_CACHE_DIR=/var/cache/jellyfin + +# This is the directory containing the server configuration files. +#JELLYFIN_CONFIG_DIR=/etc/jellyfin + +# To configure Jellyfin to use a proxy, set http_proxy and/or https_proxy +# export http_proxy=192.168.33.10:3128 +# export https_proxy=192.168.33.10:3129 diff --git a/www-apps/jellyfin/files/jellyfin.init-r1 b/www-apps/jellyfin/files/jellyfin.init-r1 new file mode 100644 index 000000000000..c45a532d5c0c --- /dev/null +++ b/www-apps/jellyfin/files/jellyfin.init-r1 @@ -0,0 +1,24 @@ +#!/sbin/openrc-run + +: ${JELLYFIN_CACHE_DIR:=/var/cache/jellyfin} +: ${JELLYFIN_LOG_DIR:=/var/log/jellyfin} +: ${JELLYFIN_DATA_DIR:=/var/lib/jellyfin} +: ${JELLYFIN_CONFIG_DIR:=/etc/jellyfin} + +pidfile="/run/${RC_SVCNAME}.pid" +command="/opt/jellyfin/jellyfin" +command_args="--logdir ${JELLYFIN_LOG_DIR} --cachedir ${JELLYFIN_CACHE_DIR} --configdir ${JELLYFIN_CONFIG_DIR} --datadir ${JELLYFIN_DATA_DIR}" +command_user="${RC_SVCNAME}:${RC_SVCNAME}" +command_background=true + +start_pre() { + # Ensure that our dirs are correct + checkpath --directory --owner jellyfin:jellyfin --mode 0775 \ + ${JELLYFIN_LOG_DIR} + checkpath --directory --owner jellyfin:jellyfin --mode 0775 \ + ${JELLYFIN_CACHE_DIR} + checkpath --directory --owner jellyfin:jellyfin --mode 0775 \ + ${JELLYFIN_CONFIG_DIR} + checkpath --directory --owner jellyfin:jellyfin --mode 0775 \ + ${JELLYFIN_DATA_DIR} +} diff --git a/www-apps/jellyfin/jellyfin-10.8.1-r2.ebuild b/www-apps/jellyfin/jellyfin-10.8.1-r2.ebuild new file mode 100644 index 000000000000..76685995e7ca --- /dev/null +++ b/www-apps/jellyfin/jellyfin-10.8.1-r2.ebuild @@ -0,0 +1,57 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit systemd + +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/stable/combined/${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/stable/combined/${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" +DEPEND="acct-user/jellyfin" +RDEPEND="${DEPEND} + media-video/ffmpeg[vpx,x264]" +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}"/* + chmod 755 "${D}${INST_DIR}/jellyfin" + newinitd "${FILESDIR}/${PN}.init-r1" "${PN}" + newconfd "${FILESDIR}"/${PN}.confd "${PN}" + systemd_dounit "${FILESDIR}/${PN}.service" +}