From dfda05378f11d343047d6b47b57ceab1eeef6488 Mon Sep 17 00:00:00 2001 From: Stefan Saraev Date: Mon, 23 Apr 2012 22:47:51 +0300 Subject: [PATCH 1/5] new package: cxxtools --- packages/3rdparty/lib/cxxtools/build | 52 ++++++++++++++++++++++++++ packages/3rdparty/lib/cxxtools/install | 23 ++++++++++++ packages/3rdparty/lib/cxxtools/meta | 36 ++++++++++++++++++ 3 files changed, 111 insertions(+) create mode 100755 packages/3rdparty/lib/cxxtools/build create mode 100755 packages/3rdparty/lib/cxxtools/install create mode 100644 packages/3rdparty/lib/cxxtools/meta diff --git a/packages/3rdparty/lib/cxxtools/build b/packages/3rdparty/lib/cxxtools/build new file mode 100755 index 0000000000..5e62aa7ec8 --- /dev/null +++ b/packages/3rdparty/lib/cxxtools/build @@ -0,0 +1,52 @@ +#!/bin/sh + +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2009-2012 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, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +. config/options $1 + +cd $PKG_BUILD + +setup_toolchain host + +mkdir -p .build-host && cd .build-host + +../configure --host=$HOST_NAME \ + --build=$HOST_NAME \ + --prefix=$ROOT/$TOOLCHAIN \ + --disable-static \ + --enable-shared + +make +make install + +cd .. + +setup_toolchain target + +mkdir -p .build-target && cd .build-target +../configure --host=$TARGET_NAME \ + --build=$HOST_NAME \ + --prefix=/usr \ + --sysconfdir=/etc \ + --disable-static \ + --enable-shared + +$MAKEINSTALL diff --git a/packages/3rdparty/lib/cxxtools/install b/packages/3rdparty/lib/cxxtools/install new file mode 100755 index 0000000000..0ca72c8177 --- /dev/null +++ b/packages/3rdparty/lib/cxxtools/install @@ -0,0 +1,23 @@ +#!/bin/sh + +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2009-2012 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, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +. config/options $1 diff --git a/packages/3rdparty/lib/cxxtools/meta b/packages/3rdparty/lib/cxxtools/meta new file mode 100644 index 0000000000..2efb614de4 --- /dev/null +++ b/packages/3rdparty/lib/cxxtools/meta @@ -0,0 +1,36 @@ +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2009-2012 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, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +PKG_NAME="cxxtools" +PKG_VERSION="2.1" +PKG_REV="1" +PKG_ARCH="any" +PKG_LICENSE="GPL-2" +PKG_SITE="http://www.tntnet.org/cxxtools.html" +PKG_URL="http://www.tntnet.org/download/${PKG_NAME}-${PKG_VERSION}.tar.gz" +PKG_DEPENDS="" +PKG_BUILD_DEPENDS="toolchain" +PKG_PRIORITY="optional" +PKG_SECTION="python/web" +PKG_SHORTDESC="cxxtools: a collection of general-purpose C++ classes" +PKG_LONGDESC="Cxxtools is a collection of general-purpose C++ classes" +PKG_IS_ADDON="no" + +PKG_AUTORECONF="yes" From 0c80c4a7371d4622f28b612deacc40face20c4c6 Mon Sep 17 00:00:00 2001 From: Stefan Saraev Date: Mon, 23 Apr 2012 22:51:41 +0300 Subject: [PATCH 2/5] new package: tntnet --- packages/3rdparty/web/tntnet/build | 64 ++++++++++++++++++++++++++++ packages/3rdparty/web/tntnet/install | 23 ++++++++++ packages/3rdparty/web/tntnet/meta | 36 ++++++++++++++++ 3 files changed, 123 insertions(+) create mode 100755 packages/3rdparty/web/tntnet/build create mode 100755 packages/3rdparty/web/tntnet/install create mode 100644 packages/3rdparty/web/tntnet/meta diff --git a/packages/3rdparty/web/tntnet/build b/packages/3rdparty/web/tntnet/build new file mode 100755 index 0000000000..62f76f3c26 --- /dev/null +++ b/packages/3rdparty/web/tntnet/build @@ -0,0 +1,64 @@ +#!/bin/sh + +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2009-2012 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, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +. config/options $1 + +cd $PKG_BUILD + +setup_toolchain host + +mkdir -p .build-host && cd .build-host +../configure --host=$HOST_NAME \ + --build=$HOST_NAME \ + --prefix=$ROOT/$TOOLCHAIN \ + --disable-static \ + --enable-shared \ + --with-server=no \ + --with-cgi=no \ + --with-sdk=yes \ + --with-demos=no \ + --with-epoll=yes \ + --with-stressjob=no + +make +make install + +cd .. + +setup_toolchain target + +mkdir -p .build-target && cd .build-target + +../configure --host=$TARGET_NAME \ + --build=$HOST_NAME \ + --prefix=/usr \ + --sysconfdir=/etc \ + --disable-static \ + --enable-shared \ + --with-server=no \ + --with-cgi=no \ + --with-sdk=yes \ + --with-demos=no \ + --with-epoll=yes \ + --with-stressjob=no + +$MAKEINSTALL diff --git a/packages/3rdparty/web/tntnet/install b/packages/3rdparty/web/tntnet/install new file mode 100755 index 0000000000..0ca72c8177 --- /dev/null +++ b/packages/3rdparty/web/tntnet/install @@ -0,0 +1,23 @@ +#!/bin/sh + +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2009-2012 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, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +. config/options $1 diff --git a/packages/3rdparty/web/tntnet/meta b/packages/3rdparty/web/tntnet/meta new file mode 100644 index 0000000000..ddbb53c13c --- /dev/null +++ b/packages/3rdparty/web/tntnet/meta @@ -0,0 +1,36 @@ +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2009-2012 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, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +PKG_NAME="tntnet" +PKG_VERSION="2.1" +PKG_REV="1" +PKG_ARCH="any" +PKG_LICENSE="GPL-2" +PKG_SITE="http://www.tntnet.org/" +PKG_URL="http://www.tntnet.org/download/${PKG_NAME}-${PKG_VERSION}.tar.gz" +PKG_DEPENDS="libtool" +PKG_BUILD_DEPENDS="toolchain libtool cxxtools" +PKG_PRIORITY="optional" +PKG_SECTION="python/web" +PKG_SHORTDESC="tntnet: C++ Dynamite for the Web" +PKG_LONGDESC="Tntnet is a modular, multithreaded, high performance webapplicationserver for C++" +PKG_IS_ADDON="no" + +PKG_AUTORECONF="yes" From 3e0036d049ee1d0f8dafb0bdbef52c8e6ffcf9f7 Mon Sep 17 00:00:00 2001 From: Stefan Saraev Date: Mon, 23 Apr 2012 22:52:32 +0300 Subject: [PATCH 3/5] vdr: add -recording_h_deprecated.patch --- .../vdr-1.7.27-11_recording_h_deprecated.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 packages/3rdparty/multimedia/vdr/patches/vdr-1.7.27-11_recording_h_deprecated.patch diff --git a/packages/3rdparty/multimedia/vdr/patches/vdr-1.7.27-11_recording_h_deprecated.patch b/packages/3rdparty/multimedia/vdr/patches/vdr-1.7.27-11_recording_h_deprecated.patch new file mode 100644 index 0000000000..b5eb918628 --- /dev/null +++ b/packages/3rdparty/multimedia/vdr/patches/vdr-1.7.27-11_recording_h_deprecated.patch @@ -0,0 +1,13 @@ +diff --git a/recording.h b/recording.h +index 5f94ee2..0b44fe8 100644 +--- a/recording.h ++++ b/recording.h +@@ -22,7 +22,7 @@ + #define TIMERMACRO_TITLE "TITLE" + #define TIMERMACRO_EPISODE "EPISODE" + +-//#define __RECORDING_H_DEPRECATED_DIRECT_MEMBER_ACCESS // Code enclosed with this macro is deprecated and may be removed in a future version ++#define __RECORDING_H_DEPRECATED_DIRECT_MEMBER_ACCESS // Code enclosed with this macro is deprecated and may be removed in a future version + + extern bool VfatFileSystem; + extern int InstanceId; From bd92cffca5bbeaf3d6803111c99fe5307ef28a56 Mon Sep 17 00:00:00 2001 From: Stefan Saraev Date: Mon, 23 Apr 2012 22:54:11 +0300 Subject: [PATCH 4/5] new package: vdr-live --- packages/3rdparty/multimedia/vdr-live/build | 36 ++++++++++ packages/3rdparty/multimedia/vdr-live/meta | 37 ++++++++++ .../patches/vdr-live-0.2.0-01_ipv6.patch | 39 +++++++++++ .../vdr-live-0.2.0-02_timers_colon.patch | 18 +++++ .../vdr-live-0.2.0-03_fix-INCLUDES.patch | 70 +++++++++++++++++++ .../vdr-live-0.2.0-04_tntnet-2.0.patch | 12 ++++ packages/3rdparty/multimedia/vdr-live/rename | 26 +++++++ 7 files changed, 238 insertions(+) create mode 100755 packages/3rdparty/multimedia/vdr-live/build create mode 100644 packages/3rdparty/multimedia/vdr-live/meta create mode 100644 packages/3rdparty/multimedia/vdr-live/patches/vdr-live-0.2.0-01_ipv6.patch create mode 100644 packages/3rdparty/multimedia/vdr-live/patches/vdr-live-0.2.0-02_timers_colon.patch create mode 100644 packages/3rdparty/multimedia/vdr-live/patches/vdr-live-0.2.0-03_fix-INCLUDES.patch create mode 100644 packages/3rdparty/multimedia/vdr-live/patches/vdr-live-0.2.0-04_tntnet-2.0.patch create mode 100755 packages/3rdparty/multimedia/vdr-live/rename diff --git a/packages/3rdparty/multimedia/vdr-live/build b/packages/3rdparty/multimedia/vdr-live/build new file mode 100755 index 0000000000..78f11df54e --- /dev/null +++ b/packages/3rdparty/multimedia/vdr-live/build @@ -0,0 +1,36 @@ +#!/bin/sh + +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2009-2012 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, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +. config/options $1 + +VDR_DIR=`basename $BUILD/vdr-[0-9]*` + +CFLAGS="$CFLAGS -fPIC" +CXXFLAGS="$CXXFLAGS -fPIC" +LDFLAGS="$LDFLAGS -fPIC" + +# dont build parallel + MAKEFLAGS=-j1 + +cd $PKG_BUILD + PWD=`pwd` + make VDRDIR="$PWD/../$VDR_DIR" LIBDIR="." LOCALEDIR="./locale" diff --git a/packages/3rdparty/multimedia/vdr-live/meta b/packages/3rdparty/multimedia/vdr-live/meta new file mode 100644 index 0000000000..769fd60a65 --- /dev/null +++ b/packages/3rdparty/multimedia/vdr-live/meta @@ -0,0 +1,37 @@ +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2009-2012 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, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +PKG_NAME="vdr-live" +PKG_VERSION="0.2.0" +PKG_REV="1" +PKG_ARCH="any" +PKG_LICENSE="GPL" +PKG_SITE="http://live.vdr-developer.org/en/index.php" +PKG_URL="http://live.vdr-developer.org/downloads/${PKG_NAME}-${PKG_VERSION}.tar.gz" +PKG_DEPENDS="vdr" +PKG_BUILD_DEPENDS="toolchain vdr tntnet" +PKG_PRIORITY="optional" +PKG_SECTION="multimedia" +PKG_SHORTDESC="vdr-live: the LIVE Interactive VDR Environment/" +PKG_LONGDESC="vdr-live allows a comfortable operation of VDR and some of its plugins trough a web interface" + +PKG_IS_ADDON="no" + +PKG_AUTORECONF="no" diff --git a/packages/3rdparty/multimedia/vdr-live/patches/vdr-live-0.2.0-01_ipv6.patch b/packages/3rdparty/multimedia/vdr-live/patches/vdr-live-0.2.0-01_ipv6.patch new file mode 100644 index 0000000000..827b6b5d84 --- /dev/null +++ b/packages/3rdparty/multimedia/vdr-live/patches/vdr-live-0.2.0-01_ipv6.patch @@ -0,0 +1,39 @@ +Description: Allows to use IPV6 addresses +Forwarded: not-needed +Origin: vendor, http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=630627#10 +Bug-Debian: http://bugs.debian.org/630627 +Author: Luboš Doležel + +--- live-0.2.0/setup.cpp.orig 2008-04-23 01:01:53.000000000 +0200 ++++ live-0.2.0/setup.cpp 2011-06-15 20:22:36.577961061 +0200 +@@ -151,13 +151,28 @@ + + bool Setup::CheckServerIps() + { ++ bool v6supported = false; ++ int s = socket(AF_INET6, SOCK_STREAM, 0); ++ ++ if (s != -1) { ++ close(s); ++ v6supported = true; ++ } ++ + if ( m_serverIps.empty() ) { +- m_serverIps.push_back( "0.0.0.0" ); ++ if (v6supported) ++ m_serverIps.push_back( "::" ); ++ else ++ m_serverIps.push_back( "0.0.0.0" ); + return true; + } + ++ union { ++ in_addr in4; ++ in6_addr in6; ++ }; + for ( IpList::const_iterator ip = m_serverIps.begin(); ip != m_serverIps.end(); ++ip ) { +- if ( inet_addr( ip->c_str() ) == static_cast< in_addr_t >( -1 ) ) { ++ if ( !inet_pton(AF_INET, ip->c_str(), &in4) && !inet_pton(AF_INET6, ip->c_str(), &in6) ) { + esyslog( "ERROR: live server ip %s is not a valid ip address", ip->c_str() ); + cerr << "ERROR: live server ip " << *ip << " is not a valid ip address" << endl; + return false; diff --git a/packages/3rdparty/multimedia/vdr-live/patches/vdr-live-0.2.0-02_timers_colon.patch b/packages/3rdparty/multimedia/vdr-live/patches/vdr-live-0.2.0-02_timers_colon.patch new file mode 100644 index 0000000000..f84d00dcb9 --- /dev/null +++ b/packages/3rdparty/multimedia/vdr-live/patches/vdr-live-0.2.0-02_timers_colon.patch @@ -0,0 +1,18 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 02_timers_colon.dpatch by Timo Weingärtner +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: colons have to be replaced by pipes in timer titles. + +@DPATCH@ +--- vdr-plugin-live-0.2.0/timers.cpp 2008-04-10 22:06:05.000000000 +0200 ++++ vdr-plugin-live-0.2.0.new/timers.cpp 2009-07-25 23:39:02.000000000 +0200 +@@ -138,7 +138,7 @@ + ostringstream builder; + builder << flags << ":" << channel << ":" << ( weekdays != "-------" ? weekdays : "" ) + << ( weekdays == "-------" || day.empty() ? "" : "@" ) << day << ":" << start << ":" << stop << ":" +- << priority << ":" << lifetime << ":" << title << ":" << aux; ++ << priority << ":" << lifetime << ":" << StringReplace(title, ":", "|") << ":" << aux; + // dsyslog("%s", builder.str().c_str()); + + TimerPair timerData( timer, builder.str() ); diff --git a/packages/3rdparty/multimedia/vdr-live/patches/vdr-live-0.2.0-03_fix-INCLUDES.patch b/packages/3rdparty/multimedia/vdr-live/patches/vdr-live-0.2.0-03_fix-INCLUDES.patch new file mode 100644 index 0000000000..1b8760f953 --- /dev/null +++ b/packages/3rdparty/multimedia/vdr-live/patches/vdr-live-0.2.0-03_fix-INCLUDES.patch @@ -0,0 +1,70 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 03_live-0.2.0-fix-INCLUDES.dpatch by Thomas Günther +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Fixes compilation with VDR >= 1.7.13. + +@DPATCH@ +--- live-0.2.0/Makefile ++++ live-0.2.0/Makefile +@@ -38,6 +38,7 @@ + ### Allow user defined options to overwrite defaults: + + -include $(VDRDIR)/Make.config ++EXTRA_INCLUDES = $(INCLUDES) + + ### The version number of VDR's plugin API (taken from VDR's "config.h"): + +@@ -139,10 +140,10 @@ + subdirs: $(SUBDIRS) + + $(SUBDIRS): +- $(MAKE) -C $@ CXX="$(CXX)" CXXFLAGS="$(CXXFLAGS)" $(MAKECMDGOALS) ++ $(MAKE) -C $@ CXX="$(CXX)" CXXFLAGS="$(CXXFLAGS)" EXTRA_INCLUDES="$(EXTRA_INCLUDES)" $(MAKECMDGOALS) + + PAGES: +- $(MAKE) -C pages CXX="$(CXX)" CXXFLAGS="$(CXXFLAGS)" .dependencies ++ $(MAKE) -C pages CXX="$(CXX)" CXXFLAGS="$(CXXFLAGS)" EXTRA_INCLUDES="$(EXTRA_INCLUDES)" .dependencies + + $(VERSIONSUFFIX): FORCE + ./buildutil/version-util $(VERSIONSUFFIX) || ./buildutil/version-util -F $(VERSIONSUFFIX) +--- live-0.2.0/css/Makefile ++++ live-0.2.0/css/Makefile +@@ -7,6 +7,7 @@ + CXXFLAGS += `tntnet-config --cxxflags` + LDFLAGS += `tntnet-config --libs` + ++INCLUDES += $(EXTRA_INCLUDES) + INCLUDES += -I.. + + ### The directory environment: +--- live-0.2.0/httpd/Makefile ++++ live-0.2.0/httpd/Makefile +@@ -7,6 +7,7 @@ + + ### Includes and Defines (add further entries here): + ++INCLUDES += $(EXTRA_INCLUDES) + INCLUDES += -I. + + ### The object files (add further files here): +--- live-0.2.0/javascript/Makefile ++++ live-0.2.0/javascript/Makefile +@@ -7,6 +7,7 @@ + CXXFLAGS += `tntnet-config --cxxflags` + LDFLAGS += `tntnet-config --libs` + ++INCLUDES += $(EXTRA_INCLUDES) + INCLUDES += -I.. -I$(VDRDIR)/include + + ### The directory environment: +--- live-0.2.0/pages/Makefile ++++ live-0.2.0/pages/Makefile +@@ -2,6 +2,7 @@ + AR ?= ar + ECPPC ?= ecppc + ++INCLUDES += $(EXTRA_INCLUDES) + INCLUDES += -I.. -I$(VDRDIR)/include + + ### The directory environment: diff --git a/packages/3rdparty/multimedia/vdr-live/patches/vdr-live-0.2.0-04_tntnet-2.0.patch b/packages/3rdparty/multimedia/vdr-live/patches/vdr-live-0.2.0-04_tntnet-2.0.patch new file mode 100644 index 0000000000..add77c9476 --- /dev/null +++ b/packages/3rdparty/multimedia/vdr-live/patches/vdr-live-0.2.0-04_tntnet-2.0.patch @@ -0,0 +1,12 @@ +Index: vdr-plugin-live-0.2.0/thread.cpp +=================================================================== +--- vdr-plugin-live-0.2.0.orig/thread.cpp 2011-08-25 21:58:33.000000000 +0200 ++++ vdr-plugin-live-0.2.0/thread.cpp 2011-08-25 21:58:37.000000000 +0200 +@@ -3,6 +3,7 @@ + #include + #include + #include ++#include + #include "thread.h" + #include "tntconfig.h" + diff --git a/packages/3rdparty/multimedia/vdr-live/rename b/packages/3rdparty/multimedia/vdr-live/rename new file mode 100755 index 0000000000..c423056d33 --- /dev/null +++ b/packages/3rdparty/multimedia/vdr-live/rename @@ -0,0 +1,26 @@ +#!/bin/sh + +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2009-2012 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, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +. config/options $1 + +cd $BUILD +mv live-${PKG_VERSION} ${PKG_NAME}-${PKG_VERSION} From fba722659cb48cdb3018954d8e7105abc9844a05 Mon Sep 17 00:00:00 2001 From: Stefan Saraev Date: Tue, 24 Apr 2012 00:35:07 +0300 Subject: [PATCH 5/5] vdr-addon: add vdr-live plugin --- packages/addons/service/multimedia/vdr-addon/addon | 5 +++++ .../addons/service/multimedia/vdr-addon/changelog.txt | 3 +++ .../service/multimedia/vdr-addon/config/settings.xml | 3 +++ packages/addons/service/multimedia/vdr-addon/meta | 4 ++-- .../service/multimedia/vdr-addon/source/bin/vdr.start | 9 ++++++++- .../source/resources/language/English/strings.xml | 3 +++ .../multimedia/vdr-addon/source/resources/settings.xml | 3 +++ 7 files changed, 27 insertions(+), 3 deletions(-) diff --git a/packages/addons/service/multimedia/vdr-addon/addon b/packages/addons/service/multimedia/vdr-addon/addon index 997ce8c0a3..7edea716c3 100755 --- a/packages/addons/service/multimedia/vdr-addon/addon +++ b/packages/addons/service/multimedia/vdr-addon/addon @@ -33,6 +33,8 @@ mkdir -p $ADDON_BUILD/$PKG_ADDON_ID/config cp $BUILD/vdr-[0-9]*/sources.conf $ADDON_BUILD/$PKG_ADDON_ID/config cp $BUILD/vdr-[0-9]*/svdrphosts.conf $ADDON_BUILD/$PKG_ADDON_ID/config echo '0.0.0.0/0' >> $ADDON_BUILD/$PKG_ADDON_ID/config/svdrphosts.conf + mkdir -p $ADDON_BUILD/$PKG_ADDON_ID/config/plugins/live + cp -PR $BUILD/vdr-live-*/live/* $ADDON_BUILD/$PKG_ADDON_ID/config/plugins/live mkdir -p $ADDON_BUILD/$PKG_ADDON_ID/plugin cp -PR $BUILD/vdr-plugin-xvdr-*/libvdr*.so.* $ADDON_BUILD/$PKG_ADDON_ID/plugin @@ -44,6 +46,7 @@ mkdir -p $ADDON_BUILD/$PKG_ADDON_ID/plugin cp -PR $BUILD/vdr-sc-*/systems/*/libsc*.so.* $ADDON_BUILD/$PKG_ADDON_ID/plugin cp -PR $BUILD/vdr-plugin-streamdev-*/server/libvdr*.so.* $ADDON_BUILD/$PKG_ADDON_ID/plugin cp -PR $BUILD/vdr-plugin-streamdev-*/client/libvdr*.so.* $ADDON_BUILD/$PKG_ADDON_ID/plugin + cp -PR $BUILD/vdr-live-*/libvdr*.so.* $ADDON_BUILD/$PKG_ADDON_ID/plugin # ENABLED_PLUGINS="cardclient constcw sc-conax sc-cryptoworks sc-irdeto sc-nagra sc-seca sc-viaccess sc-videoguard2" # for plugin in $ENABLED_PLUGINS; do @@ -59,6 +62,8 @@ mkdir -p $ADDON_BUILD/$PKG_ADDON_ID/bin mkdir -p $ADDON_BUILD/$PKG_ADDON_ID/lib cp -P $BUILD/attr-[0-9]*/libattr/.libs/*.so* $ADDON_BUILD/$PKG_ADDON_ID/lib cp -P $BUILD/libcap-[0-9]*/libcap/*.so* $ADDON_BUILD/$PKG_ADDON_ID/lib + cp -P $BUILD/cxxtools-[0-9]*/.build-target/src/.libs/*.so* $ADDON_BUILD/$PKG_ADDON_ID/lib + cp -P $BUILD/tntnet-[0-9]*/.build-target/framework/common/.libs/*.so* $ADDON_BUILD/$PKG_ADDON_ID/lib mkdir -p $ADDON_BUILD/$PKG_ADDON_ID/config/plugins/streamdev-server cp -PR $BUILD/vdr-plugin-streamdev-*/streamdev-server/streamdevhosts.conf $ADDON_BUILD/$PKG_ADDON_ID/config/plugins/streamdev-server diff --git a/packages/addons/service/multimedia/vdr-addon/changelog.txt b/packages/addons/service/multimedia/vdr-addon/changelog.txt index 01c724931c..93c8a7e1b6 100644 --- a/packages/addons/service/multimedia/vdr-addon/changelog.txt +++ b/packages/addons/service/multimedia/vdr-addon/changelog.txt @@ -1,3 +1,6 @@ +2.1.4 +- added live plugin + 2.1.3 - adjust for fontconfig 2.9.0 - update patchset diff --git a/packages/addons/service/multimedia/vdr-addon/config/settings.xml b/packages/addons/service/multimedia/vdr-addon/config/settings.xml index b69e9636bb..6a3a3c9a30 100644 --- a/packages/addons/service/multimedia/vdr-addon/config/settings.xml +++ b/packages/addons/service/multimedia/vdr-addon/config/settings.xml @@ -7,5 +7,8 @@ + + + diff --git a/packages/addons/service/multimedia/vdr-addon/meta b/packages/addons/service/multimedia/vdr-addon/meta index e9f0da55c2..272d7d2260 100755 --- a/packages/addons/service/multimedia/vdr-addon/meta +++ b/packages/addons/service/multimedia/vdr-addon/meta @@ -21,13 +21,13 @@ PKG_NAME="vdr-addon" PKG_VERSION="2.1" -PKG_REV="3" +PKG_REV="4" PKG_ARCH="any" PKG_LICENSE="GPL" PKG_SITE="http://www.openelec.tv" PKG_URL="" PKG_DEPENDS="" -PKG_BUILD_DEPENDS="toolchain attr libcap vdr vdr-plugin-xvdr vdr-iptv vdr-wirbelscan vdr-sc vdr-plugin-dvbapi vdr-dynamite vdr-plugin-streamdev" +PKG_BUILD_DEPENDS="toolchain attr libcap vdr vdr-plugin-xvdr vdr-iptv vdr-wirbelscan vdr-sc vdr-plugin-dvbapi vdr-dynamite vdr-plugin-streamdev vdr-live" PKG_PRIORITY="optional" PKG_SECTION="service.multimedia" PKG_SHORTDESC="vdr: A powerful DVB TV application" diff --git a/packages/addons/service/multimedia/vdr-addon/source/bin/vdr.start b/packages/addons/service/multimedia/vdr-addon/source/bin/vdr.start index 06bc1e4a5d..1d1d4fd81b 100755 --- a/packages/addons/service/multimedia/vdr-addon/source/bin/vdr.start +++ b/packages/addons/service/multimedia/vdr-addon/source/bin/vdr.start @@ -66,6 +66,9 @@ fi if [ "$ENABLE_WIRBELSCAN" == "true" ] ; then VDR_ARG="$VDR_ARG -P wirbelscan" fi +if [ "$ENABLE_LIVE" == "true" ] ; then + VDR_ARG="$VDR_ARG -P 'live -i $LIVE_IP -p $LIVE_PORT'" +fi # dynamite must be LAST loaded plugin if [ "$ENABLE_DYNAMITE" == "true" ] ; then VDR_ARG="$VDR_ARG -P dynamite" @@ -75,6 +78,10 @@ fi cd $ADDON_DIR/config mkdir -p $ADDON_CONFIG_DIR + # copy live plugin html content + mkdir -p $ADDON_CONFIG_DIR/plugins/live + cp -PR plugins/live/* $ADDON_CONFIG_DIR/plugins/live + for dir in `find . -type d`; do mkdir -p $ADDON_CONFIG_DIR/$dir done @@ -105,6 +112,6 @@ if [ ! "$(pidof vdr.bin)" ];then sleep 1 continue fi - LANG=en_US.UTF-8 LD_LIBRARY_PATH="$ADDON_DIR/lib:$LD_LIBRARY_PATH" vdr.bin $VDR_ARG &>$LOG_FILE + LANG=en_US.UTF-8 LD_LIBRARY_PATH="$ADDON_DIR/lib:$LD_LIBRARY_PATH" eval vdr.bin $VDR_ARG &>$LOG_FILE done & fi diff --git a/packages/addons/service/multimedia/vdr-addon/source/resources/language/English/strings.xml b/packages/addons/service/multimedia/vdr-addon/source/resources/language/English/strings.xml index d496033fdf..69f912936d 100644 --- a/packages/addons/service/multimedia/vdr-addon/source/resources/language/English/strings.xml +++ b/packages/addons/service/multimedia/vdr-addon/source/resources/language/English/strings.xml @@ -10,6 +10,9 @@ Enable plugin: streamdev-client Enable plugin: streamdev-server Enable plugin: wirbelscan + Enable plugin: live + live: listen on ip + live: listen on port Enable plugin: dynamite Enable softcam softcam plugin diff --git a/packages/addons/service/multimedia/vdr-addon/source/resources/settings.xml b/packages/addons/service/multimedia/vdr-addon/source/resources/settings.xml index d12777bf7c..e9ab574de5 100644 --- a/packages/addons/service/multimedia/vdr-addon/source/resources/settings.xml +++ b/packages/addons/service/multimedia/vdr-addon/source/resources/settings.xml @@ -13,6 +13,9 @@ + + +