From 834a17217ff411ff4338ee3a20ad617e54a3c364 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Mon, 22 Nov 2010 06:23:20 +0100 Subject: [PATCH] new package: add initial package 'tvheadend' Signed-off-by: Stephan Raue --- packages/multimedia/tvheadend/build | 12 +++++++ .../multimedia/tvheadend/init.d/55_tvheadend | 31 +++++++++++++++++++ packages/multimedia/tvheadend/install | 6 ++++ packages/multimedia/tvheadend/meta | 14 +++++++++ projects/ATV/options | 6 ++++ projects/ION/options | 6 ++++ projects/generic/options | 3 ++ projects/intel/options | 3 ++ scripts/image | 1 + 9 files changed, 82 insertions(+) create mode 100755 packages/multimedia/tvheadend/build create mode 100755 packages/multimedia/tvheadend/init.d/55_tvheadend create mode 100755 packages/multimedia/tvheadend/install create mode 100644 packages/multimedia/tvheadend/meta diff --git a/packages/multimedia/tvheadend/build b/packages/multimedia/tvheadend/build new file mode 100755 index 0000000000..c3b94196c5 --- /dev/null +++ b/packages/multimedia/tvheadend/build @@ -0,0 +1,12 @@ +#!/bin/sh + +. config/options $1 + +cd $PKG_BUILD +./configure --prefix=/usr \ + --arch=$TARGET_ARCH \ + --cpu=$TARGET_CPU \ + --cc=$TARGET_CC \ + --release + +make diff --git a/packages/multimedia/tvheadend/init.d/55_tvheadend b/packages/multimedia/tvheadend/init.d/55_tvheadend new file mode 100755 index 0000000000..06c3b0456f --- /dev/null +++ b/packages/multimedia/tvheadend/init.d/55_tvheadend @@ -0,0 +1,31 @@ +#!/bin/sh + +################################################################################ +# Copyright (C) 2009-2010 OpenELEC.tv +# http://www.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 +################################################################################ + +# start tvheadend tv server +# +# runlevels: openelec, textmode + +. /etc/profile + + progress "starting TV Server" + + tvheadend -C -s -f -u root -g root diff --git a/packages/multimedia/tvheadend/install b/packages/multimedia/tvheadend/install new file mode 100755 index 0000000000..fad8da7b9b --- /dev/null +++ b/packages/multimedia/tvheadend/install @@ -0,0 +1,6 @@ +#!/bin/sh + +. config/options $1 + +mkdir -p $INSTALL/usr/bin + cp -P $PKG_BUILD/build.Linux/tvheadend $INSTALL/usr/bin diff --git a/packages/multimedia/tvheadend/meta b/packages/multimedia/tvheadend/meta new file mode 100644 index 0000000000..c64f26ddda --- /dev/null +++ b/packages/multimedia/tvheadend/meta @@ -0,0 +1,14 @@ +PKG_NAME="tvheadend" +PKG_VERSION="5650" +PKG_REV="1" +PKG_ARCH="any" +PKG_LICENSE="GPL" +PKG_SITE="http://www.lonelycoder.com/hts/tvheadend_overview.html" +PKG_URL="http://sources.openelec.tv/svn/$PKG_NAME-$PKG_VERSION.tar.bz2" +PKG_DEPENDS="avahi" +PKG_BUILD_DEPENDS="toolchain avahi" +PKG_PRIORITY="optional" +PKG_SECTION="multimedia" +PKG_SHORTDESC="tvheadend: a TV streaming server for Linux supporting DVB-S, DVB-S2, DVB-C, DVB-T, ATSC, IPTV, and Analog video (V4L) as input sources." +PKG_LONGDESC="Tvheadend is a TV streaming server for Linux supporting DVB-S, DVB-S2, DVB-C, DVB-T, ATSC, IPTV, and Analog video (V4L) as input sources. It also comes with a powerful and easy to use web interface both used for configuration and day-to-day operations, such as searching the EPG and scheduling recordings. Even so, the most notable feature of Tvheadend is how easy it is to set up: Install it, navigate to the web user interface, drill into the TV adapters tab, select your current location and Tvheadend will start scanning channels and present them to you in just a few minutes" +PKG_IS_ADDON="no" diff --git a/projects/ATV/options b/projects/ATV/options index f28aeb12c9..60fe8965ba 100644 --- a/projects/ATV/options +++ b/projects/ATV/options @@ -53,6 +53,9 @@ # Mediacenter to use (xbmc / no) MEDIACENTER="xbmc-dharma" +# build and install Tvheadend TV server (yes / no) + TVHEADEND="no" + # Skins to install (Confluence) SKINS="Confluence" @@ -79,6 +82,9 @@ # FAAC is an MPEG-4 and MPEG-2 AAC encoder (yes / no) FAAC_SUPPORT="yes" +# build and install Tvheadend TV server (yes / no) + TVHEADEND="no" + # additional drivers to install: # bcm_sta: Broadcom STA WLAN Driver # rtl8192se: Realtek RTL8192SE WLAN driver diff --git a/projects/ION/options b/projects/ION/options index 4d63090531..387acfeecc 100644 --- a/projects/ION/options +++ b/projects/ION/options @@ -53,6 +53,9 @@ # Mediacenter to use (xbmc / no) MEDIACENTER="xbmc-dharma" +# build and install Tvheadend TV server (yes / no) + TVHEADEND="yes" + # Skins to install (Confluence) SKINS="Confluence" @@ -79,6 +82,9 @@ # FAAC is an MPEG-4 and MPEG-2 AAC encoder (yes / no) FAAC_SUPPORT="yes" +# build and install Tvheadend TV server (yes / no) + TVHEADEND="no" + # additional drivers to install: # bcm_sta: Broadcom STA WLAN Driver # rtl8192se: Realtek RTL8192SE WLAN driver diff --git a/projects/generic/options b/projects/generic/options index 5a2e708bfd..2c0b268c0a 100644 --- a/projects/generic/options +++ b/projects/generic/options @@ -79,6 +79,9 @@ # FAAC is an MPEG-4 and MPEG-2 AAC encoder (yes / no) FAAC_SUPPORT="yes" +# build and install Tvheadend TV server (yes / no) + TVHEADEND="yes" + # additional drivers to install: # bcm_sta: Broadcom STA WLAN Driver # rtl8192se: Realtek RTL8192SE WLAN driver diff --git a/projects/intel/options b/projects/intel/options index 832f54e17d..9446bc5f01 100644 --- a/projects/intel/options +++ b/projects/intel/options @@ -79,6 +79,9 @@ # FAAC is an MPEG-4 and MPEG-2 AAC encoder (yes / no) FAAC_SUPPORT="yes" +# build and install Tvheadend TV server (yes / no) + TVHEADEND="yes" + # additional drivers to install: # bcm_sta: Broadcom STA WLAN Driver # rtl8192se: Realtek RTL8192SE WLAN driver diff --git a/scripts/image b/scripts/image index e3986992fe..ac242fb063 100755 --- a/scripts/image +++ b/scripts/image @@ -69,6 +69,7 @@ mkdir -p $INSTALL # Multimedia support [ ! "$MEDIACENTER" = no ] && $SCRIPTS/install mediacenter + [ "$TVHEADEND" = yes ] && $SCRIPTS/install tvheadend # Automounter support [ "$UDISKS" = yes ] && $SCRIPTS/install udisks