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/mailbox | |
| download | x-vdr-0e7005fcc7483c01aa102fbea358c5ac65a48d62.tar.gz x-vdr-0e7005fcc7483c01aa102fbea358c5ac65a48d62.tar.bz2 | |
hello world
Diffstat (limited to 'plugins/mailbox')
| -rw-r--r-- | plugins/mailbox/patches/mailbox-0.4.0-debian.diff | 27 | ||||
| -rw-r--r-- | plugins/mailbox/plugin.sh | 57 |
2 files changed, 84 insertions, 0 deletions
diff --git a/plugins/mailbox/patches/mailbox-0.4.0-debian.diff b/plugins/mailbox/patches/mailbox-0.4.0-debian.diff new file mode 100644 index 0000000..e9c672b --- /dev/null +++ b/plugins/mailbox/patches/mailbox-0.4.0-debian.diff @@ -0,0 +1,27 @@ +--- mailbox-0.4.0/Makefile.orig ++++ mailbox-0.4.0/Makefile +@@ -43,18 +43,18 @@ + # Gentoo + # ------ + # emerge c-client +- +-IMAPINCDIR ?= /usr/include/imap +-IMAPLFLAGS ?= -lc-client -lssl -lpam ++# ++# IMAPINCDIR ?= /usr/include/imap ++# IMAPLFLAGS ?= -lc-client -lssl -lpam + + # + # Debian 3.0 + # ---------- + # install the packages 'libc-client2001-dev' + # and set the following variables +-# +-# IMAPINCDIR ?= /usr/include/c-client +-# IMAPLFLAGS ?= -lc-client ++ ++IMAPINCDIR ?= /usr/include/c-client ++IMAPLFLAGS ?= -lc-client + # + # or install 'libc-client-ssh2001-dev' + # and set the following variables diff --git a/plugins/mailbox/plugin.sh b/plugins/mailbox/plugin.sh new file mode 100644 index 0000000..4278cfb --- /dev/null +++ b/plugins/mailbox/plugin.sh @@ -0,0 +1,57 @@ +#!/bin/sh + +# x-vdr (Installations-Skript fuer einen VDR mit Debian als Basis) +# von Marc Wernecke - www.zulu-entertainment.de +# 23.10.2007 +# +# vdr-mailbox + +# defaults +source ./../../x-vdr.conf +source ./../../setup.conf +source ./../../functions +WEB="http://sites.inka.de/~seca/vdr/download/vdr-mailbox-0.5.0.tgz" +VERSION="mailbox-0.5.0" +LINK="mailbox" + +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 $VDRCONFDIR/plugins/mailbox + rm -f $VDRSCRIPTDIR/mailcmd.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 libc-client-dev + mkdir -p $VDRCONFDIR/plugins/mailbox + chown -R $VDRUSER:$VDRGROUP $VDRCONFDIR/plugins/mailbox + cp -f $SOURCEDIR/VDR/PLUGINS/src/$LINK/mailcmd.sh $VDRSCRIPTDIR + chmod 0744 $VDRSCRIPTDIR/mailcmd.sh + ## 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 |
