From 90cf13b83801884384c8b9f5fba318125a82287d Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Sun, 15 Jan 2012 20:18:04 +0100 Subject: [PATCH] new package: add package 'vdr-iptv' Signed-off-by: Stephan Raue --- packages/3rdparty/multimedia/vdr-iptv/build | 29 +++++++++++++++ packages/3rdparty/multimedia/vdr-iptv/install | 26 +++++++++++++ packages/3rdparty/multimedia/vdr-iptv/meta | 37 +++++++++++++++++++ .../vdr-1.7.22-disable_ca_updates.patch | 11 ++++++ .../patches/vdr-1.7.22-disable_eitscan.patch | 12 ++++++ 5 files changed, 115 insertions(+) create mode 100755 packages/3rdparty/multimedia/vdr-iptv/build create mode 100755 packages/3rdparty/multimedia/vdr-iptv/install create mode 100644 packages/3rdparty/multimedia/vdr-iptv/meta create mode 100644 packages/3rdparty/multimedia/vdr/patches/vdr-1.7.22-disable_ca_updates.patch create mode 100644 packages/3rdparty/multimedia/vdr/patches/vdr-1.7.22-disable_eitscan.patch diff --git a/packages/3rdparty/multimedia/vdr-iptv/build b/packages/3rdparty/multimedia/vdr-iptv/build new file mode 100755 index 0000000000..51608e5a3c --- /dev/null +++ b/packages/3rdparty/multimedia/vdr-iptv/build @@ -0,0 +1,29 @@ +#!/bin/sh + +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2009-2011 Stephan Raue (stephan@openelec.tv) +# +# This Program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. +# +# This Program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with OpenELEC.tv; see the file COPYING. If not, write to +# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +. config/options $1 + +VDR_DIR=`basename $BUILD/vdr-[0-9]*` + +cd $BUILD/iptv-* +make VDRDIR="../$VDR_DIR" LIBDIR="." LOCALEDIR="./locale" + diff --git a/packages/3rdparty/multimedia/vdr-iptv/install b/packages/3rdparty/multimedia/vdr-iptv/install new file mode 100755 index 0000000000..41b90a35f2 --- /dev/null +++ b/packages/3rdparty/multimedia/vdr-iptv/install @@ -0,0 +1,26 @@ +#!/bin/sh + +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2009-2011 Stephan Raue (stephan@openelec.tv) +# +# This Program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. +# +# This Program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with OpenELEC.tv; see the file COPYING. If not, write to +# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +. config/options $1 + +mkdir -p $INSTALL/usr/lib/vdr + cp $BUILD/iptv-*/libvdr-iptv.so.* $INSTALL/usr/lib/vdr diff --git a/packages/3rdparty/multimedia/vdr-iptv/meta b/packages/3rdparty/multimedia/vdr-iptv/meta new file mode 100644 index 0000000000..e7e1ea9d0b --- /dev/null +++ b/packages/3rdparty/multimedia/vdr-iptv/meta @@ -0,0 +1,37 @@ +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2009-2011 Stephan Raue (stephan@openelec.tv) +# +# This Program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. +# +# This Program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with OpenELEC.tv; see the file COPYING. If not, write to +# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +PKG_NAME="vdr-iptv" +PKG_VERSION="0.4.2" +PKG_REV="1" +PKG_ARCH="any" +PKG_LICENSE="GPL" +PKG_SITE="http://www.saunalahti.fi/~rahrenbe/vdr/iptv/" +PKG_URL="http://www.saunalahti.fi/~rahrenbe/vdr/iptv/files/$PKG_NAME-$PKG_VERSION.tgz" +PKG_DEPENDS="vdr" +PKG_BUILD_DEPENDS="toolchain vdr" +PKG_PRIORITY="optional" +PKG_SECTION="multimedia" +PKG_SHORTDESC="vdr-iptv: an IPTV plugin for the Video Disk Recorder (VDR)" +PKG_LONGDESC="vdr-iptv is an IPTV plugin for the Video Disk Recorder (VDR)" + +PKG_IS_ADDON="no" + +PKG_AUTORECONF="no" diff --git a/packages/3rdparty/multimedia/vdr/patches/vdr-1.7.22-disable_ca_updates.patch b/packages/3rdparty/multimedia/vdr/patches/vdr-1.7.22-disable_ca_updates.patch new file mode 100644 index 0000000000..4f41d8ff1d --- /dev/null +++ b/packages/3rdparty/multimedia/vdr/patches/vdr-1.7.22-disable_ca_updates.patch @@ -0,0 +1,11 @@ +diff -Nru vdr-1.7.15-vanilla/pat.c vdr-1.7.15-disable_ca_updates/pat.c +--- vdr-1.7.15-vanilla/pat.c 2010-06-06 19:11:15.000000000 +0300 ++++ vdr-1.7.15-disable_ca_updates/pat.c 2010-06-06 20:42:47.000000000 +0300 +@@ -490,6 +490,7 @@ + } + if (Setup.UpdateChannels >= 2) { + Channel->SetPids(Vpid, Ppid, Vtype, Apids, Atypes, ALangs, Dpids, Dtypes, DLangs, Spids, SLangs, Tpid); ++ if (!cSource::IsType(Channel->Source(), 'I')) + Channel->SetCaIds(CaDescriptors->CaIds()); + Channel->SetSubtitlingDescriptors(SubtitlingTypes, CompositionPageIds, AncillaryPageIds); + } diff --git a/packages/3rdparty/multimedia/vdr/patches/vdr-1.7.22-disable_eitscan.patch b/packages/3rdparty/multimedia/vdr/patches/vdr-1.7.22-disable_eitscan.patch new file mode 100644 index 0000000000..c6f95d0f22 --- /dev/null +++ b/packages/3rdparty/multimedia/vdr/patches/vdr-1.7.22-disable_eitscan.patch @@ -0,0 +1,12 @@ +diff -Nru vdr-1.7.15-vanilla/eitscan.c vdr-1.7.15-disable_eitscan/eitscan.c +--- vdr-1.7.15-vanilla/eitscan.c 2010-06-06 19:11:14.000000000 +0300 ++++ vdr-1.7.15-disable_eitscan/eitscan.c 2010-06-06 20:44:07.000000000 +0300 +@@ -146,7 +146,7 @@ + if (Device) { + for (cScanData *ScanData = scanList->First(); ScanData; ScanData = scanList->Next(ScanData)) { + const cChannel *Channel = ScanData->GetChannel(); +- if (Channel) { ++ if (Channel && !cSource::IsType(Channel->Source(), 'I')) { + if (!Channel->Ca() || Channel->Ca() == Device->DeviceNumber() + 1 || Channel->Ca() >= CA_ENCRYPTED_MIN) { + if (Device->ProvidesTransponder(Channel)) { + if (!Device->Receiving()) {