added experimental jellyfin-bin package...

This commit is contained in:
Fredrik Eriksson 2021-12-23 22:00:53 +01:00
parent 54557f0515
commit 56e0639e5d
Signed by: feffe
GPG Key ID: F4329687B0FA7F8D
4 changed files with 77 additions and 0 deletions

View File

@ -0,0 +1,4 @@
AUX jellyfin.conf 125 BLAKE2B 6b9207868eb40b8caad4e8d93958fc10fa9300249c4badd136f5e8c08277f75d7f585bb16fd1d501445b77ffe60643e652ab728a2f8ff043f79a7a27f70c02f7 SHA512 f0ccc53d1c997f7a0ffc3c37ac15629c04e12ce9fac4d29995c5e571ad4e92b58853b74b8feeb652ff5aacd2c580145da064c8c4efd8cc7e449c523263a2829c
AUX jellyfin.init 475 BLAKE2B a787a7409ecb7583c53c58811fc4eb61efbdf25076abe163fbbecab740f3509f20f5fdd6b8f704042bd7b402327dc9bd5e7e09a71a673dc9b5b04de8e6c3ce21 SHA512 80e4b7367d2ef379a4a80a53ec4976c9aed98fc68584a3a1c9c110e91324418133ff26a2a8ecc1d6c8f587bc24200d2934697d7897df0115531a70b3edeceb76
DIST jellyfin_10.7.7_amd64.tar.gz 91553323 BLAKE2B ba3008a4cecfd7fa7841153dce8885a1f6c16e65c53b56699b0ad42c2ee19cd982a35d89821d0ccb0a67eff7d0b573e121a36760ebc054edb01d2372c6223154 SHA512 11adfb5f6d5d7aeebbcf0399d1168879abccc49273390466b4a2ab44e4a0833515896e0474160f8e82dcd491db466505a66c9bf293ba3fc1fb9e3e048550fab7
EBUILD jellyfin-bin-10.7.7.ebuild 1055 BLAKE2B b6f3328da9b9d6bf6b6ff234fd74baf85dd466ce35ae5854a8273490b245accce6ebf5f1054cc429edf9dd00ca8959ef98fec83a7c86333479bf9a1a9d9005fb SHA512 5ffe6a1fe2939edd8802d9857fe2ccc68903ac722563406b7ba7e7eb1b19abc52426ab5b1628621e04a6b5310a7831d65ebf6d7030f19586ad218a50df7da894

View File

@ -0,0 +1,6 @@
# Parameters for jellyfin-server
jellyfin_user="nobody"
#data_dir="/var/lib/jellyfin"
#cache_dir="/var/lib/jellyfin/cache"

View File

@ -0,0 +1,25 @@
#!/sbin/openrc-run
# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
name="jellyfin"
description="Jellyfin Daemon"
pidfile=/var/run/${RC_SVCNAME}.pid
command=/opt/jellyfin/jellyfin
command_background=yes
command_user=${jellyfin_user}
: ${data_dir:=/var/lib/jellyfin}
: ${cache_dir:=${data_dir}/cache}
command_args="--datadir ${data_dir} --cachedir ${cache_dir}"
depend() {
need net
}
restart() {
stop
sleep 3
start
}

View File

@ -0,0 +1,42 @@
# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
MY_PN="${PN%-*}" # strip off -bin
DESCRIPTION="Jellyfin is a Free Software Media System that puts you in control of managing and streaming your media."
HOMEPAGE="https://jellyfin.readthedocs.io/en/latest/"
SRC_URI="https://repo.jellyfin.org/releases/server/linux/stable/combined/${MY_PN}_${PV}_amd64.tar.gz
https://repo.jellyfin.org/archive/linux/stable/${PV}/combined/${MY_PN}_${PV}_amd64.tar.gz"
RESTRICT="mirror test"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64"
DEPEND="dev-util/lttng-ust"
RDEPEND="${DEPEND}"
BDEPEND=""
INST_DIR="/opt/${MY_PN}"
DATA_DIR="/var/lib/${MY_PN}"
QA_PREBUILT="${INST_DIR}/*.so ${INST_DIR}/jellyfin ${INST_DIR}/createdump"
src_unpack() {
unpack ${A}
mv ${MY_PN}_${PV} ${P}
}
src_install() {
dodir ${INST_DIR}
insinto ${INST_DIR}
doins -r ${S}/*
chmod 755 ${D}${INST_DIR}/jellyfin
keepdir ${DATA_DIR}
newconfd "${FILESDIR}/${MY_PN}.conf" "${MY_PN}"
newinitd "${FILESDIR}/${MY_PN}.init" "${MY_PN}"
}