From 4b672788e4724879210de0fb8e2eba6bf8a38557 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Sun, 23 Jan 2011 00:38:18 +0100 Subject: [PATCH] new package: add package 'xbmc-addon-settings' a initially options dialog for OpenELEC OS via XBMC Signed-off-by: Stephan Raue --- .../config/default_settings.xml | 21 +++++++++++ .../init.d/05_systemconfig | 34 ++++++++++++++++++ .../mediacenter/xbmc-addon-settings/install | 27 ++++++++++++++ packages/mediacenter/xbmc-addon-settings/meta | 36 +++++++++++++++++++ packages/mediacenter/xbmc/meta | 2 +- 5 files changed, 119 insertions(+), 1 deletion(-) create mode 100644 packages/mediacenter/xbmc-addon-settings/config/default_settings.xml create mode 100644 packages/mediacenter/xbmc-addon-settings/init.d/05_systemconfig create mode 100755 packages/mediacenter/xbmc-addon-settings/install create mode 100644 packages/mediacenter/xbmc-addon-settings/meta diff --git a/packages/mediacenter/xbmc-addon-settings/config/default_settings.xml b/packages/mediacenter/xbmc-addon-settings/config/default_settings.xml new file mode 100644 index 0000000000..79040012d8 --- /dev/null +++ b/packages/mediacenter/xbmc-addon-settings/config/default_settings.xml @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/packages/mediacenter/xbmc-addon-settings/init.d/05_systemconfig b/packages/mediacenter/xbmc-addon-settings/init.d/05_systemconfig new file mode 100644 index 0000000000..8e5d7e761f --- /dev/null +++ b/packages/mediacenter/xbmc-addon-settings/init.d/05_systemconfig @@ -0,0 +1,34 @@ +################################################################################ +# 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 +################################################################################ + +# +# copy userconfig and samples +# +# runlevels: openelec, textmode + +progress "copy system config" + +if [ -f /usr/share/xbmc/addons/os.openelec.settings/default_settings.xml ]; then + if [ ! -f $HOME/.xbmc/userdata/addon_data/os.openelec.settings/settings.xml ]; then + mkdir -p $HOME/.xbmc/userdata/addon_data/os.openelec.settings + cp /usr/share/xbmc/addons/os.openelec.settings/default_settings.xml \ + $HOME/.xbmc/userdata/addon_data/os.openelec.settings/settings.xml + fi +fi diff --git a/packages/mediacenter/xbmc-addon-settings/install b/packages/mediacenter/xbmc-addon-settings/install new file mode 100755 index 0000000000..0ef231fb45 --- /dev/null +++ b/packages/mediacenter/xbmc-addon-settings/install @@ -0,0 +1,27 @@ +#!/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/share/xbmc/addons/os.openelec.settings + cp -R $PKG_DIR/sources/* $INSTALL/usr/share/xbmc/addons/os.openelec.settings + cp -R $PKG_DIR/config/* $INSTALL/usr/share/xbmc/addons/os.openelec.settings diff --git a/packages/mediacenter/xbmc-addon-settings/meta b/packages/mediacenter/xbmc-addon-settings/meta new file mode 100644 index 0000000000..cda7bb94a1 --- /dev/null +++ b/packages/mediacenter/xbmc-addon-settings/meta @@ -0,0 +1,36 @@ +################################################################################ +# 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="xbmc-addon-settings" +PKG_VERSION="1" +PKG_REV="1" +PKG_ARCH="any" +PKG_LICENSE="GPL" +PKG_SITE="http://www.openelec.tv" +PKG_URL="" +PKG_DEPENDS="" +PKG_BUILD_DEPENDS="toolchain" +PKG_PRIORITY="optional" +PKG_SECTION="mediacenter" +PKG_SHORTDESC="xbmc-addon-settings: Settings dialog for OpenELEC" +PKG_LONGDESC="xbmc-addon-settings: is a settings dialog for OpenELEC" +PKG_IS_ADDON="no" + +PKG_AUTORECONF="no" diff --git a/packages/mediacenter/xbmc/meta b/packages/mediacenter/xbmc/meta index d5dba3a5aa..22e3bd97ba 100644 --- a/packages/mediacenter/xbmc/meta +++ b/packages/mediacenter/xbmc/meta @@ -25,7 +25,7 @@ PKG_ARCH="any" PKG_LICENSE="GPL" PKG_SITE="http://www.xbmc.org" PKG_URL="$OPENELEC_SRC/$PKG_NAME-$PKG_VERSION.tar.bz2" -PKG_DEPENDS="boost Python zlib bzip2 lzo pcre alsa-lib libass enca curl libssh rtmpdump dbus libXt libXtst libXmu libXrandr Mesa glew fontconfig fribidi $LIBJPEG libpng tiff freetype jasper libmad libsamplerate libogg libvorbis libcdio libmms libmodplug faad2 flac wavpack libmpeg2 libbluray SDL SDL_mixer SDL_image sqlite mysql samba alsa bc" +PKG_DEPENDS="boost Python zlib bzip2 lzo pcre alsa-lib libass enca curl libssh rtmpdump dbus libXt libXtst libXmu libXrandr Mesa glew fontconfig fribidi $LIBJPEG libpng tiff freetype jasper libmad libsamplerate libogg libvorbis libcdio libmms libmodplug faad2 flac wavpack libmpeg2 libbluray SDL SDL_mixer SDL_image sqlite mysql samba alsa bc xbmc-addon-settings" PKG_BUILD_DEPENDS="toolchain boost Python zlib bzip2 lzo pcre alsa-lib libass enca curl libssh rtmpdump dbus libXt libXtst libXmu libXrandr Mesa glew fontconfig fribidi $LIBJPEG libpng tiff freetype jasper libmad libsamplerate libogg libvorbis libcdio libmms libmodplug faad2 flac wavpack libmpeg2 libbluray SDL SDL_mixer SDL_image sqlite mysql samba" PKG_PRIORITY="optional" PKG_SECTION="mediacenter"