commit:     7415676bc5ba11d3d7b79fc1b5a744747b068eb7
Author:     Martin Dummer <martin.dummer <AT> gmx <DOT> net>
AuthorDate: Thu Oct 16 21:18:23 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Oct 18 15:07:59 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7415676b

media-plugins/vdr-live: add 3.5.2

Signed-off-by: Martin Dummer <martin.dummer <AT> gmx.net>
Part-of: https://github.com/gentoo/gentoo/pull/44210
Closes: https://github.com/gentoo/gentoo/pull/44210
Signed-off-by: Sam James <sam <AT> gentoo.org>

 media-plugins/vdr-live/Manifest              |  1 +
 media-plugins/vdr-live/vdr-live-3.5.2.ebuild | 78 ++++++++++++++++++++++++++++
 2 files changed, 79 insertions(+)

diff --git a/media-plugins/vdr-live/Manifest b/media-plugins/vdr-live/Manifest
index 479e1e5d7f2a..6c2b2b3b0816 100644
--- a/media-plugins/vdr-live/Manifest
+++ b/media-plugins/vdr-live/Manifest
@@ -1,2 +1,3 @@
 DIST vdr-live-3.0.6.tar.gz 737583 BLAKE2B 
e9fd7f95df7c3fcd11e9e63131c948c1d318e2bb0c5cbc2fab950abc2889df8ca8a33b71f5394b3c22c45f81ee1faf1bf71ca889ae64173be8965db6f6fbd8ac
 SHA512 
f60cd14c3a02eeb571ffc181dabd83dd0af0595d378ed34bc9cee1d54b560d74027c758d3b4d69541a71dc6f94b5f64e3972fc51aeb5a9d688be7656636bcf98
 DIST vdr-live-3.5.1.tar.gz 2651284 BLAKE2B 
3affc04d7c7053237f2856392d2f8dc4bad22e8980afcbed26bfd0300b5419028de4bdfb28b8507a9069979a865be10e8f5c25d014878b87a904fb95314bfeb7
 SHA512 
b928700185112b3e3bbcec163de2c195188d4849f593ce0a3d685a1c966af03deb98c2e4ca7b29a903caeef62779ac88f4c982d311c36c53118c2b8f74620440
+DIST vdr-live-3.5.2.tar.gz 2586710 BLAKE2B 
f69a651d8803e3c9e4bc455dbfa9dc1a49c373118c3d9f5c187acdf37603a0ce791d2699ea160849447cdc971c5ae01779100b5a8d7066e39d8e04eaa7c41660
 SHA512 
25ab09633a7cc9303bd1dc4a9eb32abf936832985e3764a4b1f913ca340827cfddb48c244379b3be79c60b418f35549488572cbf61418994f6ce42dc3b4fe136

diff --git a/media-plugins/vdr-live/vdr-live-3.5.2.ebuild 
b/media-plugins/vdr-live/vdr-live-3.5.2.ebuild
new file mode 100644
index 000000000000..3d3af79df8e9
--- /dev/null
+++ b/media-plugins/vdr-live/vdr-live-3.5.2.ebuild
@@ -0,0 +1,78 @@
+# Copyright 2022-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit optfeature ssl-cert vdr-plugin-2
+
+DESCRIPTION="VDR Plugin: Web Access To Settings"
+HOMEPAGE="https://github.com/MarkusEh/vdr-plugin-live";
+SRC_URI="https://github.com/MarkusEh/vdr-plugin-live/archive/refs/tags/v${PV}.tar.gz
 -> ${P}.tar.gz"
+S="${WORKDIR}/vdr-plugin-live-${PV}"
+
+LICENSE="Apache-2.0 GPL-2+ RSA"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="
+       media-video/vdr:=
+       >=dev-libs/cxxtools-3
+       >=dev-libs/tntnet-3[ssl=]"
+DEPEND="${RDEPEND}"
+BDEPEND="
+       acct-user/vdr
+       sys-apps/which"
+
+KEEP_I18NOBJECT="yes"
+QA_FLAGS_IGNORED="
+       usr/lib/vdr/plugins/libvdr-live.*
+       usr/lib64/vdr/plugins/libvdr-live.*"
+LIVE_SSL_KEY_DIR="/etc/vdr/plugins/live"
+
+make_live_cert() {
+       elog "Create and install SSL certificate"
+       SSL_ORGANIZATION="VDR Plugin Live"
+       SSL_COMMONNAME=$("${ROOT}"/bin/hostname -f)
+       elog "install_cert ${LIVE_SSL_KEY_DIR}/live for host $SSL_COMMONNAME"
+       rm -f "${ROOT}${LIVE_SSL_KEY_DIR}/live.pem" 
"${ROOT}${LIVE_SSL_KEY_DIR}/live-key.pem" || die
+       install_cert "${ROOT}${LIVE_SSL_KEY_DIR}/live"
+       ls -la "${ROOT}${LIVE_SSL_KEY_DIR}/"
+       rm -f "${ROOT}${LIVE_SSL_KEY_DIR}/live.csr" || die
+       mv "${ROOT}${LIVE_SSL_KEY_DIR}/live.key" 
"${ROOT}${LIVE_SSL_KEY_DIR}/live-key.pem" || die
+       mv "${ROOT}${LIVE_SSL_KEY_DIR}/live.crt" 
"${ROOT}${LIVE_SSL_KEY_DIR}/live.pem" || die
+       chown vdr:vdr "${ROOT}${LIVE_SSL_KEY_DIR}/live.pem" || die
+       chown vdr:vdr "${ROOT}${LIVE_SSL_KEY_DIR}/live-key.pem" || die
+}
+
+src_install() {
+       vdr-plugin-2_src_install
+
+       insinto /usr/share/vdr/plugins/live
+       doins -r live/*
+       fowners -R vdr:vdr /usr/share/vdr/plugins/live
+}
+
+pkg_postinst() {
+       vdr-plugin-2_pkg_postinst
+
+       optfeature "to search the EPG" media-plugins/vdr-epgsearch
+       optfeature "for Live-TV streaming" media-plugins/vdr-streamdev
+       elog "The default username/password is:"
+       elog "\tadmin:live"
+
+       if use ssl; then
+               # only create a certificate if none exists
+               if [[ -f ${ROOT}${LIVE_SSL_KEY_DIR}/live.pem ]]; then
+                       elog "Existing SSL cert found, not touching it."
+                       elog "To create a new SSL cert, execute command:"
+                       elog "\temerge --config ${PN}"
+               else
+                       elog "No SSL cert found, creating a default one now"
+                       make_live_cert
+               fi
+       fi
+}
+
+pkg_config() {
+       make_live_cert
+}

Reply via email to