summaryrefslogtreecommitdiff
path: root/plugins/vdrtvtime
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/vdrtvtime
downloadx-vdr-0e7005fcc7483c01aa102fbea358c5ac65a48d62.tar.gz
x-vdr-0e7005fcc7483c01aa102fbea358c5ac65a48d62.tar.bz2
hello world
Diffstat (limited to 'plugins/vdrtvtime')
-rw-r--r--plugins/vdrtvtime/patches/vdrtvtime-0.0.1e_vdr-1.5.2.diff48
-rw-r--r--plugins/vdrtvtime/plugin.sh51
2 files changed, 99 insertions, 0 deletions
diff --git a/plugins/vdrtvtime/patches/vdrtvtime-0.0.1e_vdr-1.5.2.diff b/plugins/vdrtvtime/patches/vdrtvtime-0.0.1e_vdr-1.5.2.diff
new file mode 100644
index 0000000..5df1273
--- /dev/null
+++ b/plugins/vdrtvtime/patches/vdrtvtime-0.0.1e_vdr-1.5.2.diff
@@ -0,0 +1,48 @@
+diff -ruN vdrtvtime-0.0.1e-orig/vdrcommands.c vdrtvtime-0.0.1e/vdrcommands.c
+--- vdrtvtime-0.0.1e-orig/vdrcommands.c 2007-03-24 21:11:52.000000000 +0100
++++ vdrtvtime-0.0.1e/vdrcommands.c 2007-04-24 00:09:22.000000000 +0200
+@@ -29,7 +29,7 @@
+
+ struct tKbdMap {
+ eKbdFunc func;
+- uint64 code;
++ uint64_t code;
+ };
+
+ static tKbdMap KbdMap[] = {
+@@ -76,7 +76,7 @@
+ rawMode = RawMode;
+ }
+
+-uint64 cTvtimeRemote::MapFuncToCode(int Func) {
++uint64_t cTvtimeRemote::MapFuncToCode(int Func) {
+ for (tKbdMap *p = KbdMap; p->func != kfNone; p++) {
+ if (p->func == Func)
+ return p->code;
+@@ -84,7 +84,7 @@
+ return (Func <= 0xFF) ? Func : 0;
+ }
+
+-int cTvtimeRemote::MapCodeToFunc(uint64 Code) {
++int cTvtimeRemote::MapCodeToFunc(uint64_t Code) {
+ #ifdef KBD_DEBUG
+ d(4,"MapCodeToFunc(Code %x)",(int) Code);
+ #endif
+diff -ruN vdrtvtime-0.0.1e-orig/vdrcommands.h vdrtvtime-0.0.1e/vdrcommands.h
+--- vdrtvtime-0.0.1e-orig/vdrcommands.h 2007-03-17 19:08:12.000000000 +0100
++++ vdrtvtime-0.0.1e/vdrcommands.h 2007-04-24 00:04:46.000000000 +0200
+@@ -25,12 +25,12 @@
+ private:
+ static bool kbdAvailable;
+ static bool rawMode;
+- int MapCodeToFunc(uint64 Code);
++ int MapCodeToFunc(uint64_t Code);
+ public:
+ cTvtimeRemote(void);
+ virtual ~cTvtimeRemote();
+ static bool KbdAvailable(void) { return kbdAvailable; }
+- static uint64 MapFuncToCode(int Func);
++ static uint64_t MapFuncToCode(int Func);
+ static void SetRawMode(bool RawMode);
+ void ProcessCommand(uint64_t command);
+ };
diff --git a/plugins/vdrtvtime/plugin.sh b/plugins/vdrtvtime/plugin.sh
new file mode 100644
index 0000000..b7826f8
--- /dev/null
+++ b/plugins/vdrtvtime/plugin.sh
@@ -0,0 +1,51 @@
+#!/bin/sh
+
+# x-vdr (Installations-Skript fuer einen VDR mit Debian als Basis)
+# von Marc Wernecke - www.zulu-entertainment.de
+# 18.12.2007
+#
+# vdrtvtime
+
+# defaults
+source ./../../x-vdr.conf
+source ./../../setup.conf
+source ./../../functions
+WEB="http://www.wirbel.htpc-forum.de/unofficial_stuff/vdr-vdrtvtime-0.0.1e.tgz"
+VERSION="vdrtvtime-0.0.1e"
+LINK="vdrtvtime"
+
+VAR=`basename $WEB`
+DIR=`pwd`
+
+# plugin entfernen
+function clean_plugin() {
+ cd $SOURCEDIR/VDR/PLUGINS/src
+ rm -rf $LINK*
+ rm -f $VDRLIBDIR/libvdr-$LINK*
+ 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 ##
+
+ ## 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