diff --git a/packages/addons/service/multimedia/vdr-addon/addon b/packages/addons/service/multimedia/vdr-addon/addon new file mode 100755 index 0000000000..37809d6378 --- /dev/null +++ b/packages/addons/service/multimedia/vdr-addon/addon @@ -0,0 +1,55 @@ +#!/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 $ADDON_BUILD/$PKG_ADDON_ID + cp -PR $PKG_DIR/config/settings.xml $ADDON_BUILD/$PKG_ADDON_ID/settings-default.xml + +mkdir -p $ADDON_BUILD/$PKG_ADDON_ID/config + cp $BUILD/vdr-[0-9]*/channels.conf* $ADDON_BUILD/$PKG_ADDON_ID/config + cp $BUILD/vdr-[0-9]*/diseqc.conf $ADDON_BUILD/$PKG_ADDON_ID/config + cp $BUILD/vdr-[0-9]*/keymacros.conf $ADDON_BUILD/$PKG_ADDON_ID/config + cp $BUILD/vdr-[0-9]*/scr.conf $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/plugin + cp -PR $BUILD/vdr-plugin-xvdr-*/libvdr*.so* $ADDON_BUILD/$PKG_ADDON_ID/plugin + cp -PR $BUILD/vdr-dynamite-*/libvdr*.so* $ADDON_BUILD/$PKG_ADDON_ID/plugin + cp -PR $BUILD/wirbelscan-*/libvdr*.so* $ADDON_BUILD/$PKG_ADDON_ID/plugin + cp -PR $BUILD/vdr-dvbapi-plugin-*/libvdr*.so* $ADDON_BUILD/$PKG_ADDON_ID/plugin + cp -PR $BUILD/vdr-dvbapi-plugin-*/dvbapi_ca.so $ADDON_BUILD/$PKG_ADDON_ID/plugin + cp -PR $BUILD/vdr-sc-*/libvdr*.so* $ADDON_BUILD/$PKG_ADDON_ID/plugin + cp -PR $BUILD/vdr-sc-*/systems/*/libsc*.so* $ADDON_BUILD/$PKG_ADDON_ID/plugin + +mkdir -p $ADDON_BUILD/$PKG_ADDON_ID/config/plugins/xvdr + cp -PR $BUILD/vdr-plugin-xvdr-*/xvdr/allowed_hosts.conf $ADDON_BUILD/$PKG_ADDON_ID/config/plugins/xvdr + +mkdir -p $ADDON_BUILD/$PKG_ADDON_ID/bin + cp -P $BUILD/vdr-[0-9]*/vdr $ADDON_BUILD/$PKG_ADDON_ID/bin/vdr.bin + cp -P $BUILD/w_scan-[0-9]*/w_scan $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 diff --git a/packages/addons/service/multimedia/vdr-addon/changelog.txt b/packages/addons/service/multimedia/vdr-addon/changelog.txt new file mode 100644 index 0000000000..741a804cc4 --- /dev/null +++ b/packages/addons/service/multimedia/vdr-addon/changelog.txt @@ -0,0 +1,2 @@ +2.0.0 +- initial version vdr-1.7.22 diff --git a/packages/addons/service/multimedia/vdr-addon/config/settings.xml b/packages/addons/service/multimedia/vdr-addon/config/settings.xml new file mode 100644 index 0000000000..6255b07c62 --- /dev/null +++ b/packages/addons/service/multimedia/vdr-addon/config/settings.xml @@ -0,0 +1,3 @@ + + + diff --git a/packages/addons/service/multimedia/vdr-addon/icon/icon.png b/packages/addons/service/multimedia/vdr-addon/icon/icon.png new file mode 100644 index 0000000000..759e481b68 Binary files /dev/null and b/packages/addons/service/multimedia/vdr-addon/icon/icon.png differ diff --git a/packages/addons/service/multimedia/vdr-addon/meta b/packages/addons/service/multimedia/vdr-addon/meta new file mode 100644 index 0000000000..9a6bdfbfcb --- /dev/null +++ b/packages/addons/service/multimedia/vdr-addon/meta @@ -0,0 +1,38 @@ +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2009-2011 Stephan Raue (stephan@openelec.tv) +# Copyright (C) 2011 Anthony Nash (nash.ant@gmail.com) +# +# 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-addon" +PKG_VERSION="2.0" +PKG_REV="0" +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-wirbelscan vdr-sc vdr-dvbapi-plugin vdr-dynamite w_scan" +PKG_PRIORITY="optional" +PKG_SECTION="service.multimedia" +PKG_SHORTDESC="vdr: A powerful DVB TV application" +PKG_LONGDESC="This project describes how to build your own digital satellite receiver and video disk recorder. It is based mainly on the DVB-S digital satellite receiver card, which used to be available from Fujitsu Siemens and the driver software developed by the LinuxTV project." +PKG_AUTORECONF="no" + +PKG_IS_ADDON="yes" +PKG_ADDON_TYPE="xbmc.service" diff --git a/packages/addons/service/multimedia/vdr-addon/source/bin/vdr b/packages/addons/service/multimedia/vdr-addon/source/bin/vdr new file mode 100755 index 0000000000..8ce42cd952 --- /dev/null +++ b/packages/addons/service/multimedia/vdr-addon/source/bin/vdr @@ -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 +################################################################################ + +. /etc/profile + +ADDON_DIR="$HOME/.xbmc/addons/service.multimedia.vdr-addon" +LD_LIBRARY_PATH="$ADDON_DIR/lib:$LD_LIBRARY_PATH" vdr.bin $@ diff --git a/packages/addons/service/multimedia/vdr-addon/source/bin/vdr.service b/packages/addons/service/multimedia/vdr-addon/source/bin/vdr.service new file mode 100755 index 0000000000..f839e7b206 --- /dev/null +++ b/packages/addons/service/multimedia/vdr-addon/source/bin/vdr.service @@ -0,0 +1,62 @@ +#!/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 +################################################################################ + +. /etc/profile + +ADDON_DIR="$HOME/.xbmc/addons/service.multimedia.vdr-addon" +ADDON_HOME="$HOME/.xbmc/userdata/addon_data/service.multimedia.vdr-addon" +LOG_FILE="$ADDON_HOME/service.log" +ADDON_SETTINGS="$ADDON_HOME/settings.xml" + +ADDON_CONFIG_DIR="$ADDON_HOME/config" +ADDON_PLUGIN_DIR="$ADDON_DIR/plugin" +ADDON_VIDEO_DIR="$HOME/videos" + +VDR_ARG="--daemon -g /tmp --no-kbd --log=3 --port=0" +VDR_ARG="$VDR_ARG --config=$ADDON_CONFIG_DIR" +VDR_ARG="$VDR_ARG --lib=$ADDON_PLUGIN_DIR" +VDR_ARG="$VDR_ARG --video=$ADDON_VIDEO_DIR" +VDR_ARG="$VDR_ARG -P xvdr -P sc -P wirbelscan" +VDR_ARG="$VDR_ARG -P dynamite" + +if [ ! -f "$ADDON_SETTINGS" ]; then + cp $ADDON_DIR/settings-default.xml $ADDON_SETTINGS +fi + +( + cd $ADDON_DIR/config + mkdir -p $ADDON_CONFIG_DIR + + for dir in `find . -type d`; do + mkdir -p $ADDON_CONFIG_DIR/$dir + done + + for config in `find . -type f -name "*.conf*"`; do + if [ ! -f $ADDON_CONFIG_DIR/$config ]; then + cp $config $ADDON_CONFIG_DIR/$config + fi + done +) + +if [ ! $(pidof vdr.bin) ];then + LD_LIBRARY_PATH="$ADDON_DIR/lib:$LD_LIBRARY_PATH" vdr.bin $VDR_ARG &>$LOG_FILE +fi diff --git a/packages/addons/service/multimedia/vdr-addon/source/default.py b/packages/addons/service/multimedia/vdr-addon/source/default.py new file mode 100644 index 0000000000..af886007bc --- /dev/null +++ b/packages/addons/service/multimedia/vdr-addon/source/default.py @@ -0,0 +1,32 @@ +################################################################################ +# 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 +################################################################################ + +import os +import sys +import xbmcaddon + +__scriptname__ = "VDR Service" +__author__ = "OpenELEC" +__url__ = "http://www.openelec.tv" +__settings__ = xbmcaddon.Addon(id='service.multimedia.vdr-addon') +__cwd__ = __settings__.getAddonInfo('path') +__path__ = xbmc.translatePath( os.path.join( __cwd__, 'bin', "vdr.service") ) + +os.system(__path__)