summaryrefslogtreecommitdiff
path: root/media-plugins/vdr-extb
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /media-plugins/vdr-extb
reinit the tree, so we can have metadata
Diffstat (limited to 'media-plugins/vdr-extb')
-rw-r--r--media-plugins/vdr-extb/Manifest9
-rw-r--r--media-plugins/vdr-extb/files/vdr-extb-0.3.1-gentoo.diff71
-rw-r--r--media-plugins/vdr-extb/files/vdr-extb-0.3.1_vdr-1.7.13.diff25
-rw-r--r--media-plugins/vdr-extb/metadata.xml9
-rw-r--r--media-plugins/vdr-extb/vdr-extb-0.3.1.ebuild71
5 files changed, 185 insertions, 0 deletions
diff --git a/media-plugins/vdr-extb/Manifest b/media-plugins/vdr-extb/Manifest
new file mode 100644
index 000000000000..916bb00b97fb
--- /dev/null
+++ b/media-plugins/vdr-extb/Manifest
@@ -0,0 +1,9 @@
+AUX vdr-extb-0.3.1-gentoo.diff 1793 SHA256 010ad26b16c996b6ccf48d62f0e25c35a2717bb161d7748d4c58628f7e825d20 SHA512 9fe2a4206df2b9624031e73e39ce488fcff09fb42e480806924380cd4da79f92af5466823c6658dfdde7370f1b94665c49258dbb1b012674dcd325103c300633 WHIRLPOOL c34d4e66d7a51742ed28346b60481341213e48b3dca22783cc79ad9c059734d0a3e183867a5abb0a503820bc426109f9f3e2e5c105cd3a374803f8e1e83191b0
+AUX vdr-extb-0.3.1_vdr-1.7.13.diff 873 SHA256 6f54eebddb7772251ea61e323b2592ce3df1c45cd84ad7f08bfbfc6261e5aeb2 SHA512 373fe82c955a49310b936dd9ec34c714168ce88d9c4ad4996df73357ca8b186921afe63906d8df4a4e3d5ef31f903f4f833a59f980526bf13c59444165f97ea6 WHIRLPOOL 24670e02b4f028e0d128988631bf053b75e5632b5e1e80b976437944eb03627fdb304a10c987ab1af1d7f412e24036c7bc8f92c487372d6228eff54afe0fa24e
+DIST extb.tar.gz 45417 SHA256 9a9b873a3b04d32da164f5c8199ddaa1ce67a824d40ed3653c2d79e879739345 SHA512 2fd539425b773419aaca27ee6c00879a420b8bc47fc3033082eef03275f5e8cdeba0c6562fe160cbdf1146f5cb4a45ad4e723f7e63d627e1937a847615456381 WHIRLPOOL 8e8ca7379b583541ff82fd2807202602812186c7ca763ee6b4f8e74b83075cd6352d832ad1b157c475edaf8ada14258fcb916628b2810655c612c2f1ff5f12be
+DIST extb_firmware_1.08_lircd.conf.zip 8197 SHA256 149021182aadc3d1b62b81c4fe4a5d12f467a1762e3a5dd5e1619ce52db029b3 SHA512 bee864bdf876a117f4235ab415feb04dfc31f59118ed9c601a46ee90b0df010d890e61bf12f9351fe9b3977815d3c3b9985e069a1ad9e72ceb177691bbd70609 WHIRLPOOL e1c3bf8351e0f40a791b1aea67f6d98719610804478f0783da7473aed24a69d6280d76559686fdd7c5344f39ebd7e795c0860eefef26c526da7f7c805656872a
+DIST vdr-extb-0.3.1.tar.gz 53136 SHA256 4473fb52f4b284e23c47facbc240289340ee0109e89887d6cfb9b62b31a4b37e SHA512 cbef33eef77e22266adc10fe305be2ae50c69c312dce44711d3e889387638daf9e6a0d71e8342a63f6655eb82f51c15f274b3a9815f876d17fbc4079da2ee391 WHIRLPOOL 6b4592df2c31c95d72f0a5e2bf92abfb0191cb73f319bbb69b9d130754bcb42916f2aa7fdce1eba8be2f92d24a8ed75f09cfecf96803d5562f9af05bf8548999
+EBUILD vdr-extb-0.3.1.ebuild 1784 SHA256 21932e374893a0640cb47c3b57bf185f27c1fe2181bb9c215f0ced591c2d1c49 SHA512 71d3f19cfe27e0a2f1b5ccce24e877e7ac252a3848b5319f5b6d1f20fecba6d71a0ee73901b7048b5b474c4da81a28abb26cc5d20bc98a18fce041e5b0a772f2 WHIRLPOOL db785fd5debe4426a4f7652670b720095b238f7928329eaae181a360f68ac9ccc8a24b3914b6cec426706b7e699cda95ac8bf2884a1f516f0e11da39761f1e3b
+MISC ChangeLog 2511 SHA256 692c561b3b2d2dbba068be0235f9c6b867be9a9941ef34d8968c6c96a14df231 SHA512 fcb617584f2453072d882e6707a4d99341f6aa1382739b944a2537b47bd1d3a659c1e20c90c72e25bc1610e1cfea4e96727a6a88ecc2ce8b1ba77805b8291933 WHIRLPOOL b6dae7eb9222f67532d8de95c197f405ccfbe2343504ffcc3064b5ed00f5d2fb107fe543ad1b88a96c7d4a4c271297722bd99dea708f7656e44f3c6ff7017215
+MISC ChangeLog-2015 1673 SHA256 3d8006591fccdaccb810a1f57747c84af72283ff4c5e4ea4014adb04f5b5ad80 SHA512 fbe00e6534f318fa48ebf537a871c322d946eba50e562eb99af11ce8126b6d1b6876348853f0b80b4b12be667a77626e725b7a0801fee0d911486c4d2a6d3fb6 WHIRLPOOL 2574776527f6fad41be877c43cb6c8dd591a309f8f8fe41f447cf6bd36405e12dc6fff3c10719e6dfed9f3447439e35f9459935c18c8077d1ea39ca844eeb80d
+MISC metadata.xml 326 SHA256 edeabc496893e45f78b474dcb42431f9ff2f667a0e71b7a2bd56daa12b021568 SHA512 ab292243f2de07735059f4f98c72be9198abb330eda2bb51269a727bc60294778bb93094c34db3ffe39bfa4b50e36c163fd379e276a03b24bf5fad92072d2863 WHIRLPOOL 3ad320fcffe03563314748e8dd7de9982c1da3c6a37fe5fd998f233bbff012d25e883bd693ecc6214af923b20aba6ab92111ca2c146e76b684d5b89984f17fc4
diff --git a/media-plugins/vdr-extb/files/vdr-extb-0.3.1-gentoo.diff b/media-plugins/vdr-extb/files/vdr-extb-0.3.1-gentoo.diff
new file mode 100644
index 000000000000..84169755a93c
--- /dev/null
+++ b/media-plugins/vdr-extb/files/vdr-extb-0.3.1-gentoo.diff
@@ -0,0 +1,71 @@
+diff -ur extb.orig/bin/extb.sh extb/bin/extb.sh
+--- extb.orig/bin/extb.sh 2004-05-05 17:38:29.000000000 +0200
++++ extb/bin/extb.sh 2004-07-19 22:19:49.459865904 +0200
+@@ -10,17 +10,11 @@
+ trap 'rm /tmp/tmp{1,2,3}.$$; exit 0' 2 15
+
+ #Defaults
+-SCRIPT_PATH="/opt/extb/bin/"
+-LINPIC_PATH="/opt/extb/bin/"
+-HEX_FILES_PATH="/opt/extb/src/PIC/firm/"
+-LIRCD_CMD="lircd"
+-IREXEC_CMD="irexec"
++SCRIPT_PATH="/usr/bin/"
++LINPIC_PATH="/usr/bin/"
++HEX_FILES_PATH=/usr/share/extb/"
+ SETSERIAL_CMD="setserial"
+-LIRC_CONF="/etc/lircd.conf"
+-LIRC_RC="/etc/lircrc"
+ COM_PORT="/dev/ttyS1"
+-VDR_PATH="/VDR/1.2.5/VDR/"
+-VDR_CMD="./runvdr"
+
+ # -----------------------------------------------------------------------------
+
+@@ -329,7 +323,7 @@
+ ;;
+
+ 1)
+- cp /tmp/PICflags PICflags.conf
++ cp /tmp/PICflags /etc/extb/PICflags.conf
+ _MAIN
+ ;;
+
+@@ -477,7 +471,8 @@
+ 0)
+ tx.sh M2 # sending M2 to Extension Board to disable video/audio
+ clear
+- killall irexec; killall lircd
++ /etc/init.d/irexec stop
++ /etc/init.d/lircd stop
+ sleep 1
+ $SETSERIAL_CMD $COM_PORT uart 16550
+ sleep 1
+@@ -487,14 +482,15 @@
+ echo ""
+ $SETSERIAL_CMD $COM_PORT uart none
+ sleep 1
+- $LIRCD_CMD $LIRC_CONF; $IREXEC_CMD $LIRC_RC &
++ /etc/init.d/lircd start
++ /etc/init.d/irexc start
+ echo ""
+ echo "Stopping VDR ..."
+- killall vdr
++ /etc/init.d/vdr stop
+ sleep 1
+ echo ""
+ echo "Restarting VDR ..."
+- cd $VDR_PATH; $VDR_CMD
++ rcvdr start
+ cd $SCRIPT_PATH
+ echo ""
+ # just in case the Extension Board plugin is not installed ...
+diff -ur extb.orig/bin/tx.sh extb/bin/tx.sh
+--- extb.orig/bin/tx.sh 2004-04-12 18:23:16.000000000 +0200
++++ extb/bin/tx.sh 2004-07-19 22:17:08.373354776 +0200
+@@ -1,2 +1,2 @@
+ #!/bin/bash
+-rc send_once EXTB_TX $1
+\ No newline at end of file
++irsend send_once EXTB_TX $1
+\ No newline at end of file
diff --git a/media-plugins/vdr-extb/files/vdr-extb-0.3.1_vdr-1.7.13.diff b/media-plugins/vdr-extb/files/vdr-extb-0.3.1_vdr-1.7.13.diff
new file mode 100644
index 000000000000..b9fdd2051178
--- /dev/null
+++ b/media-plugins/vdr-extb/files/vdr-extb-0.3.1_vdr-1.7.13.diff
@@ -0,0 +1,25 @@
+http://toms-cafe.de/vdr/download/extb-0.3.1-vdr-1.7.13.diff
+compile fix up from vdr-1.7.13
+
+--- extb-0.3.1/extboardio.c
++++ extb-0.3.1/extboardio.c
+@@ -361,10 +361,16 @@ void cExtBoardIO::Channel(int nChannelNu
+ m_nChannel |= (0 != pChannel->Tpid()) ?eHasTpid:0;
+
+ if(pChannel->IsSat()) {
++#if VDRVERSNUM >= 10713
++ cDvbTransponderParameters dtp(pChannel->Parameters());
++ char polarization = dtp.Polarization();
++#else
++ char polarization = pChannel->Polarization();
++#endif
+ m_nChannel |= eIsSourceSat;
+- if (toupper(pChannel->Polarization()) == 'V')
++ if (toupper(polarization) == 'V')
+ m_nChannel |= eIsSatVPolar;
+- if (toupper(pChannel->Polarization()) == 'H')
++ if (toupper(polarization) == 'H')
+ m_nChannel |= eIsSatHPolar;
+ }
+ else if(pChannel->IsCable())
+
diff --git a/media-plugins/vdr-extb/metadata.xml b/media-plugins/vdr-extb/metadata.xml
new file mode 100644
index 000000000000..51ad9a486270
--- /dev/null
+++ b/media-plugins/vdr-extb/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>vdr@gentoo.org</email>
+ <name>Gentoo VDR Project</name>
+ </maintainer>
+ <longdescription>VDR plugin to rename records on OSD</longdescription>
+</pkgmetadata>
diff --git a/media-plugins/vdr-extb/vdr-extb-0.3.1.ebuild b/media-plugins/vdr-extb/vdr-extb-0.3.1.ebuild
new file mode 100644
index 000000000000..32b90261d7db
--- /dev/null
+++ b/media-plugins/vdr-extb/vdr-extb-0.3.1.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit vdr-plugin-2
+
+DESCRIPTION="VDR Plugin: used to control the VDR Extension Board"
+HOMEPAGE="http://www.deltab.de/content/view/74/76/"
+SRC_URI="http://www.deltab.de/component/option,com_docman/task,doc_download/gid,102/ -> "${P}".tar.gz
+ mirror://vdrfiles/${PN}/extb_firmware_1.08_lircd.conf.zip
+ mirror://vdrfiles/${PN}/extb.tar.gz"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~x86 ~amd64"
+IUSE=""
+
+DEPEND=">=media-video/vdr-1.6.0
+ app-misc/lirc"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ vdr-plugin-2_src_prepare
+
+ sed -i "${WORKDIR}"/extb/src/LinPIC/Makefile \
+ -e "s:\$(LDLIBS):\$(LDFLAGS) \$(LDLIBS):"
+
+ cd "${WORKDIR}"
+ epatch "${FILESDIR}/${P}-gentoo.diff"
+ epatch "${FILESDIR}/${P}_vdr-1.7.13.diff"
+}
+
+src_compile() {
+ vdr-plugin-2_src_compile
+
+ emake -C "${WORKDIR}/extb/src/LinPIC" all
+}
+src_install() {
+ vdr-plugin-2_src_install
+
+ dodoc README.de
+ dodoc "${WORKDIR}/lircd.conf.extb_FW1.08"
+ docinto wakeup
+ dodoc "${S}/wakeup/README.de"
+
+ dobin "${WORKDIR}/extb/src/LinPIC/picdl"
+ dobin "${WORKDIR}/extb/bin/extb.sh"
+ dobin "${WORKDIR}/extb/bin/status.sh"
+ dobin "${WORKDIR}/extb/bin/tx.sh"
+ dobin "${S}/wakeup/extb-poweroff.pl"
+ dobin "${S}/wakeup/examples/checkscript.sh"
+
+ insinto /usr/share/extb/
+ doins "${WORKDIR}/extb_1.08.hex"
+
+ insinto /etc/extb
+ doins "${WORKDIR}/extb/bin/PICflags.conf"
+ doins "${S}/wakeup/examples/extb-poweroff.conf"
+}
+
+pkg_postinst() {
+ vdr-plugin-2_pkg_postinst
+
+ einfo
+ einfo "You need to upload the included firmware (1.08)"
+ einfo "(you will find it in /usr/share/extb/)"
+ einfo "into the extension board and update your lircd.conf"
+ einfo "See the supplied lircd.conf.extb_FW1.08 in"
+ einfo "/usr/share/doc/vdrplugin-extb"
+}