summaryrefslogtreecommitdiff
path: root/media-tv
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2025-04-19 18:57:17 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2025-04-19 18:57:17 +0000
commit221a8131dab3bd52abe8a1c35202bba7545cdbe0 (patch)
tree161d40c879411f29027a8cb092546806e85a5e37 /media-tv
parent11deb79ce024dcc296457593252578db70b46e6c (diff)
downloadbaldeagleos-repo-221a8131dab3bd52abe8a1c35202bba7545cdbe0.tar.gz
baldeagleos-repo-221a8131dab3bd52abe8a1c35202bba7545cdbe0.tar.xz
baldeagleos-repo-221a8131dab3bd52abe8a1c35202bba7545cdbe0.zip
Adding metadata
Diffstat (limited to 'media-tv')
-rw-r--r--media-tv/tvheadend/Manifest1
-rw-r--r--media-tv/tvheadend/tvheadend-4.2.8-r5.ebuild138
2 files changed, 139 insertions, 0 deletions
diff --git a/media-tv/tvheadend/Manifest b/media-tv/tvheadend/Manifest
index c69a8f7d8d84..50aa90b2ef04 100644
--- a/media-tv/tvheadend/Manifest
+++ b/media-tv/tvheadend/Manifest
@@ -1 +1,2 @@
+DIST tvheadend-653bd0400b4413db96b80c807f0f7524f9248adb.tar.gz 22622276 BLAKE2B 76d23e0fbe55a216398c9633db74b1addda276ee90a33feb1c5d4b24e824ac5c8fcb7782f6e7dbd3ec1b6bcb326c139871754308c15e87be7188cc11f916bcf2 SHA512 ae4a6f87c36251e09eedaab51e802e0abc0cb0b060a9148249a3e5318b29a887f62cbee4bcbf2fcb793f0df7abd5351d6ea45f9d874562784371e6873020456d
DIST tvheadend-9ac61d7677feaf1078e2f3752cd8e580e2e61267.tar.gz 22508512 BLAKE2B e230ed017855ad4f541ac6bc026394a29f77ec32b0008f36eef9ca001156513611eb82472517b07bb15350d8a008091f0245d856cd8f6bbd7d66742eab343e05 SHA512 f1991b26470479c12efef21d7e46736c79fe3217c8f33507941b00c74ea80cbb8c1bde033cda843944284bbee31d6380478983a99cb2faa366aeccab8ac35aaa
diff --git a/media-tv/tvheadend/tvheadend-4.2.8-r5.ebuild b/media-tv/tvheadend/tvheadend-4.2.8-r5.ebuild
new file mode 100644
index 000000000000..33d0ea4f4b70
--- /dev/null
+++ b/media-tv/tvheadend/tvheadend-4.2.8-r5.ebuild
@@ -0,0 +1,138 @@
+# Copyright 2022-2025 Liguros Authors
+# Distributed under the terms of the GNU General Public License v2
+EAPI=8
+
+PYTHON_COMPAT=( python3_{9,10,11,12,13} )
+
+inherit linux-info python-any-r1 systemd toolchain-funcs
+
+DESCRIPTION="Tvheadend is a TV streaming server and digital video recorder"
+HOMEPAGE="https://tvheadend.org/"
+GIT_COMMIT="653bd0400b4413db96b80c807f0f7524f9248adb"
+SRC_URI="https://github.com/tvheadend/tvheadend/archive/${GIT_COMMIT}.tar.gz -> ${PN}-${GIT_COMMIT}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~x86"
+
+IUSE="+capmt +constcw +cwc dbus debug dvben50221 +dvb +ffmpeg hdhomerun +imagecache +inotify iptv libressl satip systemd +timeshift tvhcsa uriparser xmltv zeroconf zlib"
+
+BDEPEND="
+ ${PYTHON_DEPS}
+ sys-devel/gettext
+ virtual/pkgconfig
+"
+
+RDEPEND="
+ acct-user/tvheadend
+ virtual/libiconv
+ media-libs/opus
+ media-libs/x264
+ media-libs/x265
+ media-libs/libvpx
+ dbus? ( sys-apps/dbus )
+ tvhcsa? ( media-libs/libdvbcsa )
+ dvben50221? ( media-tv/linuxtv-dvb-apps )
+ ffmpeg? ( media-video/ffmpeg:0= )
+ hdhomerun? ( media-libs/libhdhomerun )
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:= )
+ uriparser? ( dev-libs/uriparser )
+ zeroconf? ( net-dns/avahi )
+ zlib? ( sys-libs/zlib )
+"
+
+DEPEND="
+ ${RDEPEND}
+ dvb? ( sys-kernel/linux-headers )
+"
+
+RDEPEND+="
+ dvb? ( media-tv/dtv-scan-tables )
+ xmltv? ( media-tv/xmltv )
+"
+
+REQUIRED_USE="tvhcsa? ( || ( capmt constcw cwc dvben50221 ) )"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-4.0.9-use_system_queue.patch
+ "${FILESDIR}"/${PN}-4.2.2-dtv_scan_tables.patch
+ "${FILESDIR}"/${PN}-4.2.7-python3.patch
+)
+
+DOCS=( README.md )
+
+S=${WORKDIR}/${PN}-${GIT_COMMIT}
+
+pkg_setup() {
+ python-any-r1_pkg_setup
+
+ use inotify &&
+ CONFIG_CHECK="~INOTIFY_USER" linux-info_pkg_setup
+}
+
+src_configure() {
+ CC="$(tc-getCC)" \
+ PKG_CONFIG="${CHOST}-pkg-config" \
+ econf \
+ --disable-bundle \
+ --disable-ccache \
+ --disable-dvbscan \
+ --disable-ffmpeg_static \
+ --disable-hdhomerun_static \
+ --nowerror \
+ $(use_enable capmt) \
+ $(use_enable constcw) \
+ $(use_enable cwc) \
+ $(use_enable dbus dbus_1) \
+ $(use_enable debug trace) \
+ $(use_enable dvb linuxdvb) \
+ $(use_enable tvhcsa) \
+ $(use_enable dvben50221) \
+ $(use_enable ffmpeg libav) \
+ $(use_enable hdhomerun hdhomerun_client) \
+ $(use_enable imagecache) \
+ $(use_enable inotify) \
+ $(use_enable iptv) \
+ $(use_enable satip satip_server) \
+ $(use_enable satip satip_client) \
+ $(use_enable systemd libsystemd_daemon) \
+ $(use_enable timeshift) \
+ $(use_enable uriparser) \
+ $(use_enable zeroconf avahi) \
+ $(use_enable zlib)
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)"
+}
+
+src_install() {
+ default
+
+ newinitd "${FILESDIR}"/tvheadend.initd tvheadend
+ newconfd "${FILESDIR}"/tvheadend.confd tvheadend
+
+ use systemd &&
+ systemd_dounit "${FILESDIR}"/tvheadend.service
+}
+
+pkg_postinst() {
+ elog "The Tvheadend web interface can be reached at:"
+ elog "http://localhost:9981/"
+ elog
+ elog "Make sure that you change the default username"
+ elog "and password via the Configuration / Access control"
+ elog "tab in the web interface."
+
+ . "${EROOT}"/etc/conf.d/tvheadend &>/dev/null
+
+ if [[ ${TVHEADEND_CONFIG} = ${EPREFIX}/etc/tvheadend ]]; then
+ echo
+ ewarn "The HOME directory for the tvheadend user has changed from"
+ ewarn "${EPREFIX}/etc/tvheadend to ${EPREFIX}/var/lib/tvheadend. The daemon will continue"
+ ewarn "to use the old location until you update TVHEADEND_CONFIG in"
+ ewarn "${EPREFIX}/etc/conf.d/tvheadend. Please manually move your existing files"
+ ewarn "before you do so."
+ fi
+}