mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
new addon: add initial addon 'vdr-addon'
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
1d0def8d4f
commit
98dd9b21a5
55
packages/addons/service/multimedia/vdr-addon/addon
Executable file
55
packages/addons/service/multimedia/vdr-addon/addon
Executable file
@ -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
|
@ -0,0 +1,2 @@
|
|||||||
|
2.0.0
|
||||||
|
- initial version vdr-1.7.22
|
@ -0,0 +1,3 @@
|
|||||||
|
<settings>
|
||||||
|
<setting id="VDR" value="" />
|
||||||
|
</settings>
|
BIN
packages/addons/service/multimedia/vdr-addon/icon/icon.png
Normal file
BIN
packages/addons/service/multimedia/vdr-addon/icon/icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 43 KiB |
38
packages/addons/service/multimedia/vdr-addon/meta
Normal file
38
packages/addons/service/multimedia/vdr-addon/meta
Normal file
@ -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"
|
26
packages/addons/service/multimedia/vdr-addon/source/bin/vdr
Executable file
26
packages/addons/service/multimedia/vdr-addon/source/bin/vdr
Executable file
@ -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 $@
|
62
packages/addons/service/multimedia/vdr-addon/source/bin/vdr.service
Executable file
62
packages/addons/service/multimedia/vdr-addon/source/bin/vdr.service
Executable file
@ -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
|
@ -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__)
|
Loading…
x
Reference in New Issue
Block a user