diff options
| author | root <root@elwms02.(none)> | 2010-04-06 16:13:08 +0200 |
|---|---|---|
| committer | root <root@elwms02.(none)> | 2010-04-06 16:13:08 +0200 |
| commit | 0e7005fcc7483c01aa102fbea358c5ac65a48d62 (patch) | |
| tree | 11517ce0d3d2977c6732b3aa583b0008083e0bd3 /plugins/podcatcher | |
| download | x-vdr-0e7005fcc7483c01aa102fbea358c5ac65a48d62.tar.gz x-vdr-0e7005fcc7483c01aa102fbea358c5ac65a48d62.tar.bz2 | |
hello world
Diffstat (limited to 'plugins/podcatcher')
| -rw-r--r-- | plugins/podcatcher/patches/p1/podcatcher-0.1.1_gcc43.diff | 34 | ||||
| -rw-r--r-- | plugins/podcatcher/plugin.sh | 56 |
2 files changed, 90 insertions, 0 deletions
diff --git a/plugins/podcatcher/patches/p1/podcatcher-0.1.1_gcc43.diff b/plugins/podcatcher/patches/p1/podcatcher-0.1.1_gcc43.diff new file mode 100644 index 0000000..351afd1 --- /dev/null +++ b/plugins/podcatcher/patches/p1/podcatcher-0.1.1_gcc43.diff @@ -0,0 +1,34 @@ +diff -ruNp podcatcher-0.1.1/src/pesaudiopacket.h podcatcher-0.1.1-new/src/pesaudiopacket.h +--- podcatcher-0.1.1/src/pesaudiopacket.h 2006-04-24 23:30:29.000000000 +0200 ++++ podcatcher-0.1.1-new/src/pesaudiopacket.h 2009-01-30 19:41:46.000000000 +0100 +@@ -23,6 +23,8 @@ + #ifndef ___PESAUDIOPACKET_H + #define ___PESAUDIOPACKET_H + ++#include <stdlib.h> ++#include <string.h> + #include "refptr.h" + + class PesAudioPacket +diff -ruNp podcatcher-0.1.1/src/rfc822datetime.h podcatcher-0.1.1-new/src/rfc822datetime.h +--- podcatcher-0.1.1/src/rfc822datetime.h 2006-04-24 23:30:29.000000000 +0200 ++++ podcatcher-0.1.1-new/src/rfc822datetime.h 2009-01-30 19:41:48.000000000 +0100 +@@ -23,6 +23,7 @@ + #ifndef ___RFC822DATETIME_H + #define ___RFC822DATETIME_H + ++#include <stdlib.h> + #include <string> + + class Rfc822DateTime +diff -ruNp podcatcher-0.1.1/src/rssfeedparser.h podcatcher-0.1.1-new/src/rssfeedparser.h +--- podcatcher-0.1.1/src/rssfeedparser.h 2006-04-24 23:30:29.000000000 +0200 ++++ podcatcher-0.1.1-new/src/rssfeedparser.h 2009-01-30 19:41:33.000000000 +0100 +@@ -23,6 +23,7 @@ + #ifndef ___RSSFEEDPARSER_H + #define ___RSSFEEDPARSER_H + ++#include <string.h> + #include <libxml++/libxml++.h> + #include "feedparser.h" + diff --git a/plugins/podcatcher/plugin.sh b/plugins/podcatcher/plugin.sh new file mode 100644 index 0000000..ba81986 --- /dev/null +++ b/plugins/podcatcher/plugin.sh @@ -0,0 +1,56 @@ +#!/bin/sh + +# x-vdr (Installations-Skript fuer einen VDR mit Debian als Basis) +# von Marc Wernecke - www.zulu-entertainment.de +# 30.01.2009 +# +# vdr-podcatcher + +# defaults +source ./../../x-vdr.conf +source ./../../setup.conf +source ./../../functions + +WEB="http://vdr-wiki.de/vdr/vdr-podcatcher/vdr-podcatcher-0.1.1.tar.gz" +VERSION="podcatcher-0.1.1" +LINK="podcatcher" + +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 + patch_p1_plugin + + ## plugin specials - start ## + mkdir -p /var/cache/podcatcher + chown -R $VDRUSER:$VDRGROUP /var/cache/podcatcher + cp -f $SOURCEDIR/VDR/PLUGINS/src/$LINK/examples/podcatchersources.conf $VDRCONFDIR/plugins + chown $VDRUSER:$VDRGROUP $VDRCONFDIR/plugins/podcatchersources.conf + ## 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 |
