summaryrefslogtreecommitdiff
path: root/plugins/muggle
diff options
context:
space:
mode:
authorroot <root@elwms02.(none)>2010-04-06 16:13:08 +0200
committerroot <root@elwms02.(none)>2010-04-06 16:13:08 +0200
commit0e7005fcc7483c01aa102fbea358c5ac65a48d62 (patch)
tree11517ce0d3d2977c6732b3aa583b0008083e0bd3 /plugins/muggle
downloadx-vdr-0e7005fcc7483c01aa102fbea358c5ac65a48d62.tar.gz
x-vdr-0e7005fcc7483c01aa102fbea358c5ac65a48d62.tar.bz2
hello world
Diffstat (limited to 'plugins/muggle')
-rw-r--r--plugins/muggle/muggle-server.diff11
-rw-r--r--plugins/muggle/patches/muggle-sqlite.diff14
-rw-r--r--plugins/muggle/plugin.sh83
3 files changed, 108 insertions, 0 deletions
diff --git a/plugins/muggle/muggle-server.diff b/plugins/muggle/muggle-server.diff
new file mode 100644
index 0000000..71a33fe
--- /dev/null
+++ b/plugins/muggle/muggle-server.diff
@@ -0,0 +1,11 @@
+--- Makefile.org 2007-03-27 20:14:55.000000000 +0200
++++ Makefile 2007-03-24 09:20:58.000000000 +0100
+@@ -20,7 +20,7 @@
+
+ #if you do not want to compile in code for embedded mysql,
+ #define this:
+-#HAVE_ONLY_SERVER=1
++HAVE_ONLY_SERVER=1
+
+ # Define what database you want to use, one of MySQL (HAVE_MYSQL=1),
+ # PostgreSQL (HAVE_PG=1) or SQLite (HAVE_SQLITE=1). Default is MySQL.
diff --git a/plugins/muggle/patches/muggle-sqlite.diff b/plugins/muggle/patches/muggle-sqlite.diff
new file mode 100644
index 0000000..f709d52
--- /dev/null
+++ b/plugins/muggle/patches/muggle-sqlite.diff
@@ -0,0 +1,14 @@
+--- Makefile.orig
++++ Makefile
+@@ -24,9 +24,9 @@
+
+ # Define what database you want to use, one of MySQL (HAVE_MYSQL=1),
+ # PostgreSQL (HAVE_PG=1) or SQLite (HAVE_SQLITE=1). Default is MySQL.
+-#HAVE_SQLITE = 1
++HAVE_SQLITE = 1
+ #HAVE_PG = 1
+-HAVE_MYSQL = 1
++#HAVE_MYSQL = 1
+
+ ### The version number of this plugin (taken from the main source file):
+
diff --git a/plugins/muggle/plugin.sh b/plugins/muggle/plugin.sh
new file mode 100644
index 0000000..e4d15ed
--- /dev/null
+++ b/plugins/muggle/plugin.sh
@@ -0,0 +1,83 @@
+#!/bin/sh
+
+# x-vdr (Installations-Skript fuer einen VDR mit Debian als Basis)
+# von Marc Wernecke - www.zulu-entertainment.de
+# 23.01.2009
+#
+# vdr-muggle
+
+# defaults
+source ./../../x-vdr.conf
+source ./../../setup.conf
+source ./../../functions
+
+WEB="http://projects.vdr-developer.org/attachments/download/53/vdr-muggle-0.2.3.tgz"
+VERSION="muggle-0.2.3"
+LINK="muggle"
+
+VAR=`basename $WEB`
+DIR=`pwd`
+
+# plugin entfernen
+function clean_plugin() {
+ cd $SOURCEDIR/VDR/PLUGINS/src
+ rm -rf $LINK*
+ rm -f $VDRLIBDIR/libvdr-$LINK*
+ rm -f $VDRBINDIR/image_convert.sh
+ log "cleaning $LINK"
+}
+
+# plugin installieren
+function install_plugin() {
+ download_plugin
+ extract_plugin
+ cd $SOURCEDIR/VDR/PLUGINS/src
+ rm -f $LINK
+ ln -vfs $VERSION $LINK
+ patch_plugin
+
+ ## plugin specials - start ##
+ apt_install "sqlite3 libsqlite3-dev"
+ # oder Patch entfernen und...
+# apt_install "libmysqlclient15-dev mysql-server mysql-client"
+
+ apt_install "libmad0-dev libtag1-dev libvorbis-dev"
+ apt_install "libwrap0-dev"
+ # Googlyric2 Beta 3 und Python
+ apt_install "python"
+ if [ -f /usr/share/apps/amarok/scripts/Googlyrics2.Beta3.amarokscript.tar.gz ]; then
+ echo "Googlyrics vorhanden"
+ else
+ cd /usr/share/apps
+ mkdir amarok
+ mkdir amarok/scripts
+ cd /usr/share/apps/amarok/scripts/
+ wget http://quicode.com/Googlyrics2.Beta3.amarokscript.tar.gz
+ tar -xzf Googlyrics2.Beta3.amarokscript.tar.gz
+ fi
+ mkdir $VDRCONFDIR/plugins/$LINK
+ mkdir $VDRCONFDIR/plugins/$LINK/scripts
+ cp -f $SOURCEDIR/VDR/PLUGINS/src/$LINK/scripts/* $VDRCONFDIR/plugins/$LINK/scripts
+ chmod 0755 $VDRCONFDIR/plugins/$LINK/scripts/muggle_getlyrics
+ chmod 0755 $VDRCONFDIR/plugins/$LINK/scripts/*.py
+
+ # scripts
+ if [ -f $DIR/muggle-image-convert ]; then
+ cp -f $DIR/muggle-image-convert $VDRBINDIR
+ else
+ cp -f $SOURCEDIR/VDR/PLUGINS/src/$LINK/scripts/muggle-image-convert $VDRBINDIR
+ fi
+ chmod 0755 $VDRBINDIR/muggle-image-convert
+ ## plugin specials - ende ##
+}
+
+# plugin commands
+if [ $# \> 0 ]; then
+ cmd=$1
+ cmd_plugin
+else
+ install_plugin
+ log "install-plugin fuer $VERSION ist fertig"
+fi
+
+exit 0