summaryrefslogtreecommitdiff
path: root/media-plugins/vdr-extb
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /media-plugins/vdr-extb
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.xz
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'media-plugins/vdr-extb')
-rw-r--r--media-plugins/vdr-extb/Manifest3
-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.xml10
-rw-r--r--media-plugins/vdr-extb/vdr-extb-0.3.1.ebuild72
5 files changed, 181 insertions, 0 deletions
diff --git a/media-plugins/vdr-extb/Manifest b/media-plugins/vdr-extb/Manifest
new file mode 100644
index 00000000000..58fe44fbf50
--- /dev/null
+++ b/media-plugins/vdr-extb/Manifest
@@ -0,0 +1,3 @@
+DIST extb.tar.gz 45417 SHA256 9a9b873a3b04d32da164f5c8199ddaa1ce67a824d40ed3653c2d79e879739345
+DIST extb_firmware_1.08_lircd.conf.zip 8197 SHA256 149021182aadc3d1b62b81c4fe4a5d12f467a1762e3a5dd5e1619ce52db029b3
+DIST vdr-extb-0.3.1.tar.gz 53136 SHA256 4473fb52f4b284e23c47facbc240289340ee0109e89887d6cfb9b62b31a4b37e
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 00000000000..84169755a93
--- /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 00000000000..b9fdd205117
--- /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 00000000000..4c7ba1e416d
--- /dev/null
+++ b/media-plugins/vdr-extb/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>media-tv</herd>
+ <maintainer>
+ <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 00000000000..8338a703a28
--- /dev/null
+++ b/media-plugins/vdr-extb/vdr-extb-0.3.1.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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"
+}