commit: 345e217562b38d2d1cfd7e70a43c10299dcfc623 Author: Martin Dummer <martin.dummer <AT> gmx <DOT> net> AuthorDate: Sat Feb 7 14:45:20 2026 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Wed Feb 11 07:47:45 2026 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=345e2175
media-plugins/vdr-live: add 3.5.3 Signed-off-by: Martin Dummer <martin.dummer <AT> gmx.net> Part-of: https://github.com/gentoo/gentoo/pull/45670 Closes: https://github.com/gentoo/gentoo/pull/45670 Signed-off-by: Sam James <sam <AT> gentoo.org> media-plugins/vdr-live/Manifest | 1 + media-plugins/vdr-live/vdr-live-3.5.3.ebuild | 78 ++++++++++++++++++++++++++++ 2 files changed, 79 insertions(+) diff --git a/media-plugins/vdr-live/Manifest b/media-plugins/vdr-live/Manifest index 337df6a16c48..a7947ba449b6 100644 --- a/media-plugins/vdr-live/Manifest +++ b/media-plugins/vdr-live/Manifest @@ -1 +1,2 @@ DIST vdr-live-3.5.2.tar.gz 2586710 BLAKE2B f69a651d8803e3c9e4bc455dbfa9dc1a49c373118c3d9f5c187acdf37603a0ce791d2699ea160849447cdc971c5ae01779100b5a8d7066e39d8e04eaa7c41660 SHA512 25ab09633a7cc9303bd1dc4a9eb32abf936832985e3764a4b1f913ca340827cfddb48c244379b3be79c60b418f35549488572cbf61418994f6ce42dc3b4fe136 +DIST vdr-live-3.5.3.tar.gz 2588286 BLAKE2B b087dad27a8a46fcce1ff9e98fbd87219536f8ab6db110e32afc0fad3abc264b2a69c8970dada9cdd1530219b608e09181ec46984bcaa6e293301388e059be04 SHA512 b41e559d8bfe1d21301bfc852f91c92155baed49823d2bbf8fe9d36955b93ddd8aaebf4e4ba2fc1427c60876f2889a36846ca894f320fb5e6b7cdb37f6ac2a58 diff --git a/media-plugins/vdr-live/vdr-live-3.5.3.ebuild b/media-plugins/vdr-live/vdr-live-3.5.3.ebuild new file mode 100644 index 000000000000..a8e1f58ef79e --- /dev/null +++ b/media-plugins/vdr-live/vdr-live-3.5.3.ebuild @@ -0,0 +1,78 @@ +# Copyright 2022-2026 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 +}
