From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- media-plugins/vdr-streamdev/Manifest | 9 ++ media-plugins/vdr-streamdev/files/confd-0.6.0 | 34 ++++++++ .../vdr-streamdev/files/rc-addon-0.6.0.sh | 25 ++++++ media-plugins/vdr-streamdev/metadata.xml | 19 +++++ .../vdr-streamdev/vdr-streamdev-0.6.1.ebuild | 95 +++++++++++++++++++++ .../vdr-streamdev-0.6.1_p20160320.ebuild | 97 ++++++++++++++++++++++ 6 files changed, 279 insertions(+) create mode 100644 media-plugins/vdr-streamdev/Manifest create mode 100644 media-plugins/vdr-streamdev/files/confd-0.6.0 create mode 100644 media-plugins/vdr-streamdev/files/rc-addon-0.6.0.sh create mode 100644 media-plugins/vdr-streamdev/metadata.xml create mode 100644 media-plugins/vdr-streamdev/vdr-streamdev-0.6.1.ebuild create mode 100644 media-plugins/vdr-streamdev/vdr-streamdev-0.6.1_p20160320.ebuild (limited to 'media-plugins/vdr-streamdev') diff --git a/media-plugins/vdr-streamdev/Manifest b/media-plugins/vdr-streamdev/Manifest new file mode 100644 index 000000000000..066c509e37bc --- /dev/null +++ b/media-plugins/vdr-streamdev/Manifest @@ -0,0 +1,9 @@ +AUX confd-0.6.0 763 SHA256 eb3c2c035142ef51bebb6509b80cd0206bc920e11c12f08bea58381daab88c5a SHA512 4e903271bd71ae285e83032ed6694053e1335346e4b27e1bde5b5545c2e0f1ce01e548f09cb15c938ed2f227fb565a1af2d43c774098b5aa5ed457a9d7ed1767 WHIRLPOOL 1e2909a4dc2d4b888ae1d30590cb8fc64db4435d2fd8d61ba3345a7c5e11539d816721e515cf8ae220df54e120c100aff19b5b18fd18b75d66281684027fe7f0 +AUX rc-addon-0.6.0.sh 727 SHA256 242ff0d5a82e526c791d8fc6b62736cbda699e7729e7664a79891722f237c49b SHA512 36a04a5bcd7d0cc097b3b245108eb8451450c8a1d02afd6fdbc543e99c6e4613d8d93de9cbca0cfc526e177db39220009a77fd53f54e7b64b04a69fdf9ffa494 WHIRLPOOL 68fab7235283f038ebadb0c1d5e740128915a22604c5d3a1d83088fed779469d3d791d37be166832fed81c830d2d803a91ec6ace4184cfc344aa0e9b166ca435 +DIST vdr-plugin-streamdev-674bb5b331240de3ba2a8beb63a1276003e64e3e.tar.bz2 163096 SHA256 5a9fa7ba82fe40b0380e76c94814c662cc82486cd6097710a9c8857307ac4970 SHA512 f9439a4c3dd453869f9cf3171ddb5e34c2a625d7873cb1648138e4b94715ec3acd8d3db69df5ae5bf1bc21f0401f9b12a126395b0f2696c129ee7725c1715902 WHIRLPOOL 30269bc0938ef5b6ac85e85bad85f34e9c6d8e1a704ab1bf18d156bb2d5fa4b7b24c1126c95d12e94946981e5274e137a347d3faa04e915a3a8015ca16e98894 +DIST vdr-streamdev-0.6.1.tgz 186546 SHA256 b3ea814a572eb17699df4ae2a90a1ad6c22c0a68a8235e7f7ccf299d1ed43955 SHA512 bbe6231bd8e69e299c8d94173e7ed4b1f49e5b17b7bcadf2d1e827b5e8dd57c6b975c8c409fd44f252110099b3565a7d4d8c2f7d03636fc2d2e3580d0050d971 WHIRLPOOL e226ddbec680bb43857f96ae1553b71d218f87593cf179c65919444c19aa26392e42ef9dbe8607ddffc81ce781cb5a8b60123650a14be7c0997bc605b066c9f7 +EBUILD vdr-streamdev-0.6.1.ebuild 2959 SHA256 42331dcfcb1ba2b147ac7289494eb9edbb00cb2bace1632c6c07d6ae42b6bf31 SHA512 56c530f96241f938c16fd0866b85b554d2fd40def5bb029a33ce9b96787a4760a9df90fc0f7c0587de9a178d8924c760916632a042131715d86188db9e5ff660 WHIRLPOOL 7b0b5e90a29b196bf85794dcc4aa8e939ff5cb3dac9ad5a25e2081c7092f45c3c683ae4de0560402c82a5f11137317faca4f989f27eeed5854a26f7e7aad5c1c +EBUILD vdr-streamdev-0.6.1_p20160320.ebuild 3100 SHA256 163ba369ec33dfc8e7129714b8e79273cd02a0307b125e7b721255bbacbf9ffc SHA512 fe3c0013920b2e9ebe9c5c653f03e78e40b4b04d32a4093d0bd32340c57517be20f4c3d39be9d703bd134305c14e1e7b880d1267e50b44b5a333b3e5e16e26ee WHIRLPOOL 23774ca8c7b03f94289d1de4dde9746e35fef63c137b91a70911b9b0f66998898f298f4aecd511bd0cb882f2763b24077a24a4d93dd9df86864884a2445a728c +MISC ChangeLog 3067 SHA256 17d119cdabed70c3d24b78e99f08e9245b1b503a52545d5cc119ccc5316e9c6d SHA512 e26ba868e970c309420d94c9aa58b6d4fbb0b491ca7666f1ae1dad684323f75836c94f199734a72cc1b55696844de7d5d9f7d697a766a9dd53e265f68d4e1960 WHIRLPOOL 7378843affef764e9502fbe5a2fdb8bed415001e3acd08cc4c03bf7fb505f96e9e5770a5b318eb7ef4f1451607b1832833a77e9c295b686b319b427ed732ff7e +MISC ChangeLog-2015 5226 SHA256 7adbb2db9c2fbc3515e3e69839dc949b1a8194d4c0af779f0327b39dede2ef50 SHA512 e162d6924663b18869ca9fa35e13d490c5b33ce2c90eaba727e767afcd7746b649a4db9f986e82ddeef30289bd6ffe5bc0afb52d75e0dd4a44acc7086a8b3971 WHIRLPOOL a6f616461989821e7b2d3bb75908faf953afadd7bd61ba55b1c17b7cdb4c249ec64415e98b195d01d34c790a820e33afeafe5f4ac031ff9f09060690ee4f3aa7 +MISC metadata.xml 543 SHA256 6d1fcba09cbd43a2622a1fbbd48a5755a49c1839bb33de4b63ca21be0c8b6091 SHA512 cd19aecc5fbdd17f232607811da58caeba974bbad8060fc902d3c76c5691dbd9ab541ab1e5be3fccbfc028ddf1567c60fba74c36505f9e8288ad3e0a5710a51d WHIRLPOOL 4034cbef86c66f5081d8dae9eb63338400468fa0414fd909beaac4e4629d7c794a65a12010b341b880e27d3bba3e9a8eece73edc91667af515d7cf4b3dcdf065 diff --git a/media-plugins/vdr-streamdev/files/confd-0.6.0 b/media-plugins/vdr-streamdev/files/confd-0.6.0 new file mode 100644 index 000000000000..1cb42eff3836 --- /dev/null +++ b/media-plugins/vdr-streamdev/files/confd-0.6.0 @@ -0,0 +1,34 @@ +# /etc/conf.d/vdr.streamdev-server + +# Use your own remux script +# +# default: streamdevserver remux script is used +# take a look at the README for handling +# +# allowed values: full path to your replacement script +# +#STREAMDEV_REMUX_SCRIPT="/full/path/to/your/own/remux-script" + +# You can configure optional authentication credentials +# for the http protocol here +# +# ATTENTION: the colon character ":" is not allowed in +# both the login and password ! +# +# enable http_auth +# allowed values: yes | no +# default: no +# +#STREAMDEV_HTTP_AUTH_ENABLE="yes" + +# Set the user for http_auth +# allowed values: your_user +# default: +# +STREAMDEV_HTTP_LOGIN="" + +# Set the password for http_auth +# allowed values: your_password +# default: +# +STREAMDEV_HTTP_PASSWORD="" diff --git a/media-plugins/vdr-streamdev/files/rc-addon-0.6.0.sh b/media-plugins/vdr-streamdev/files/rc-addon-0.6.0.sh new file mode 100644 index 000000000000..9247395dfea9 --- /dev/null +++ b/media-plugins/vdr-streamdev/files/rc-addon-0.6.0.sh @@ -0,0 +1,25 @@ +# +# rc-addon-script for plugin streamdev-server +# +# Joerg Bornkessel + +plugin_pre_vdr_start() { + + : ${STREAMDEV_REMUX_SCRIPT:=/usr/share/vdr/streamdev/externremux.sh} + add_plugin_param "-r ${STREAMDEV_REMUX_SCRIPT}" + + if yesno ${STREAMDEV_HTTP_AUTH_ENABLE:-no}; then + + if [[ -z ${STREAMDEV_HTTP_LOGIN} ]]; then + eerror "No user in /etc/conf.d/vdr.streamdev-server" + logger -t vdr "ERROR: need password for plugin vdr-streamdev-server" + fi + + if [[ -z ${STREAMDEV_HTTP_PASSWORD} ]]; then + eerror "No password in /etc/conf.d/vdr.streamdev-server" + logger -t vdr "ERROR: need password for plugin vdr-streamdev-server" + fi + + add_plugin_param "-a ${STREAMDEV_HTTP_LOGIN}:${STREAMDEV_HTTP_PASSWORD}" + fi +} diff --git a/media-plugins/vdr-streamdev/metadata.xml b/media-plugins/vdr-streamdev/metadata.xml new file mode 100644 index 000000000000..e2af9291c27b --- /dev/null +++ b/media-plugins/vdr-streamdev/metadata.xml @@ -0,0 +1,19 @@ + + + + + vdr@gentoo.org + Gentoo VDR Project + + + + Compile the VDR plugin vdr-streamdev-client + that acts like a dvb-budget card + + + Compile the VDR plugin vdr-streamdev-server + that allows remote systems to access the + DVB cards used for the local VDR + + + diff --git a/media-plugins/vdr-streamdev/vdr-streamdev-0.6.1.ebuild b/media-plugins/vdr-streamdev/vdr-streamdev-0.6.1.ebuild new file mode 100644 index 000000000000..9239b49b8bd7 --- /dev/null +++ b/media-plugins/vdr-streamdev/vdr-streamdev-0.6.1.ebuild @@ -0,0 +1,95 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit vdr-plugin-2 + +VERSION="1580" # every bump, new version ! + +DESCRIPTION="VDR Plugin: Client/Server and http streaming plugin" +HOMEPAGE="http://projects.vdr-developer.org/projects/plg-streamdev" +SRC_URI="mirror://vdr-developerorg/${VERSION}/${P}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="client +server" + +DEPEND=">=media-video/vdr-1.7.25" +RDEPEND="${DEPEND}" + +REQUIRED_USE="|| ( client server )" + +# vdr-plugin-2.eclass changes +PO_SUBDIR="client server" + +src_prepare() { + # make detection in vdr-plugin-2.eclass for new Makefile handling happy + echo "# SOFILE" >> Makefile + + # rm unneeded entry + sed -i Makefile -e "s:-I\$(VDRDIR)/include::" + + vdr-plugin-2_src_prepare + + for flag in client server; do + if ! use ${flag}; then + sed -i Makefile \ + -e '/^.PHONY:/s/'${flag}'//' \ + -e '/^.PHONY:/s/'install-${flag}'//' \ + -e '/^all:/s/'${flag}'//' \ + -e '/^install:/s/'install-${flag}'//' + fi + done + + fix_vdr_libsi_include server/livestreamer.c +} + +src_install() { + vdr-plugin-2_src_install + + if use server; then + insinto /usr/share/vdr/streamdev + doins streamdev-server/externremux.sh + + insinto /usr/share/vdr/rcscript + newins "${FILESDIR}"/rc-addon-0.6.0.sh plugin-streamdev-server.sh + + newconfd "${FILESDIR}"/confd-0.6.0 vdr.streamdev-server + + insinto /etc/vdr/plugins/streamdev-server + newins streamdev-server/streamdevhosts.conf streamdevhosts.conf + fowners vdr:vdr /etc/vdr -R + fi +} + +pkg_preinst() { + has_version "<${CATEGORY}/${PN}-0.6.0" + previous_less_than_0_6_0=$? +} + +pkg_postinst() { + vdr-plugin-2_pkg_postinst + + if [[ -e "${ROOT}"/etc/vdr/plugins/streamdev/streamdevhosts.conf ]]; then + einfo "move config file to new config DIR ${ROOT}/etc/vdr/plugins/streamdev-server/" + mv "${ROOT}"/etc/vdr/plugins/streamdev/streamdevhosts.conf "${ROOT}"/etc/vdr/plugins/streamdev-server/streamdevhosts.conf + fi + + if [[ $previous_less_than_0_6_0 = 0 ]]; then + einfo "The server-side setting \"Suspend behaviour\" has been dropped in 0.6.0 in favour" + einfo "of priority based precedence. A priority of 0 and above means that clients" + einfo "have precedence. A negative priority gives precedence to local live TV on the" + einfo "server. So if \"Suspend behaviour\" was previously set to \"Client may suspend\" or" + einfo "\"Never suspended\", you will have to configure a negative priority. If the" + einfo "\"Suspend behaviour\" was set to \"Always suspended\", the default values should do." + einfo "" + einfo "Configure the desired priorities for HTTP and IGMP Multicast streaming in the" + einfo "settings of streamdev-server. If you haven't updated all your streamdev-clients" + einfo "to at least 0.5.2, configure \"Legacy Client Priority\", too." + einfo "" + einfo "In streamdev-client, you should set \"Minimum Priority\" to -99. Adjust \"Live TV" + einfo "Priority\" if necessary." + fi +} diff --git a/media-plugins/vdr-streamdev/vdr-streamdev-0.6.1_p20160320.ebuild b/media-plugins/vdr-streamdev/vdr-streamdev-0.6.1_p20160320.ebuild new file mode 100644 index 000000000000..404cde672e9a --- /dev/null +++ b/media-plugins/vdr-streamdev/vdr-streamdev-0.6.1_p20160320.ebuild @@ -0,0 +1,97 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit vdr-plugin-2 + +GIT_VERSION="674bb5b331240de3ba2a8beb63a1276003e64e3e" + +DESCRIPTION="VDR Plugin: Client/Server and http streaming plugin" +HOMEPAGE="http://projects.vdr-developer.org/projects/plg-streamdev" +SRC_URI="http://projects.vdr-developer.org/git/vdr-plugin-streamdev.git/snapshot/vdr-plugin-streamdev-${GIT_VERSION}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="client +server" + +DEPEND=">=media-video/vdr-1.7.25" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/vdr-plugin-streamdev-${GIT_VERSION}" + +REQUIRED_USE="|| ( client server )" + +# vdr-plugin-2.eclass changes +PO_SUBDIR="client server" + +src_prepare() { + # make detection in vdr-plugin-2.eclass for new Makefile handling happy + echo "# SOFILE" >> Makefile + + # rm unneeded entry + sed -i Makefile -e "s:-I\$(VDRDIR)/include::" + + vdr-plugin-2_src_prepare + + for flag in client server; do + if ! use ${flag}; then + sed -i Makefile \ + -e '/^.PHONY:/s/'${flag}'//' \ + -e '/^.PHONY:/s/'install-${flag}'//' \ + -e '/^all:/s/'${flag}'//' \ + -e '/^install:/s/'install-${flag}'//' + fi + done + + fix_vdr_libsi_include server/livestreamer.c +} + +src_install() { + vdr-plugin-2_src_install + + if use server; then + insinto /usr/share/vdr/streamdev + doins streamdev-server/externremux.sh + + insinto /usr/share/vdr/rcscript + newins "${FILESDIR}"/rc-addon-0.6.0.sh plugin-streamdev-server.sh + + newconfd "${FILESDIR}"/confd-0.6.0 vdr.streamdev-server + + insinto /etc/vdr/plugins/streamdev-server + newins streamdev-server/streamdevhosts.conf streamdevhosts.conf + fowners vdr:vdr /etc/vdr -R + fi +} + +pkg_preinst() { + has_version "<${CATEGORY}/${PN}-0.6.0" + previous_less_than_0_6_0=$? +} + +pkg_postinst() { + vdr-plugin-2_pkg_postinst + + if [[ -e "${ROOT}"/etc/vdr/plugins/streamdev/streamdevhosts.conf ]]; then + einfo "move config file to new config DIR ${ROOT}/etc/vdr/plugins/streamdev-server/" + mv "${ROOT}"/etc/vdr/plugins/streamdev/streamdevhosts.conf "${ROOT}"/etc/vdr/plugins/streamdev-server/streamdevhosts.conf + fi + + if [[ $previous_less_than_0_6_0 = 0 ]]; then + einfo "The server-side setting \"Suspend behaviour\" has been dropped in 0.6.0 in favour" + einfo "of priority based precedence. A priority of 0 and above means that clients" + einfo "have precedence. A negative priority gives precedence to local live TV on the" + einfo "server. So if \"Suspend behaviour\" was previously set to \"Client may suspend\" or" + einfo "\"Never suspended\", you will have to configure a negative priority. If the" + einfo "\"Suspend behaviour\" was set to \"Always suspended\", the default values should do." + einfo "" + einfo "Configure the desired priorities for HTTP and IGMP Multicast streaming in the" + einfo "settings of streamdev-server. If you haven't updated all your streamdev-clients" + einfo "to at least 0.5.2, configure \"Legacy Client Priority\", too." + einfo "" + einfo "In streamdev-client, you should set \"Minimum Priority\" to -99. Adjust \"Live TV" + einfo "Priority\" if necessary." + fi +} -- cgit v1.2.3