blob: c100ed9ecaa7c4b83f1221b6f2ab23d177935148 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
|
#!/bin/sh
# x-vdr (Installations-Skript fuer einen VDR mit Debian als Basis)
# von Marc Wernecke - www.zulu-entertainment.de
# 05.03.2009
# kwacker: Burn auf 0.2.0-beta3 aktualisiert
# vdr-burn
# defaults
source ./../../x-vdr.conf
source ./../../setup.conf
source ./../../functions
WEB="http://projects.vdr-developer.org/attachments/download/285/vdr-burn-0.2.0-beta3.tgz"
#WEB="http://www.zulu-entertainment.de/files/vdr-burn/vdr-burn-0.1.0-pre22x.tgz"
VERSION="burn-0.2.0-beta3"
LINK="burn"
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/vdrburn-archive.sh
rm -f $VDRBINDIR/vdrburn-dvd.sh
rm -f $VDRBINDIR/burn-buffers
# rm -f /usr/bin/vdrsync.pl
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 ############################################################
# scripte
if [ -f $DIR/vdrburn-archive.sh ]; then
cp -f $DIR/vdrburn-archive.sh $VDRBINDIR
else
cp -f $SOURCEDIR/VDR/PLUGINS/src/$LINK/vdrburn-archive.sh $VDRBINDIR
fi
if [ -f $DIR/vdrburn-dvd.sh ]; then
cp -f $DIR/vdrburn-dvd.sh $VDRBINDIR
else
cp -f $SOURCEDIR/VDR/PLUGINS/src/$LINK/vdrburn-dvd.sh $VDRBINDIR
fi
chmod 0755 $VDRBINDIR/vdrburn-archive.sh
chmod 0755 $VDRBINDIR/vdrburn-dvd.sh
chown $VDRUSER.$VDRGROUP $VDRBINDIR/vdrburn-archive.sh $VDRBINDIR/vdrburn-dvd.sh
if [ -d $DIR/burn ]; then
cp -rf $DIR/burn $VDRCONFDIR/plugins
else
cp -rf $SOURCEDIR/VDR/PLUGINS/src/$LINK/burn $VDRCONFDIR/plugins
fi
# vdrsync
var=`which vdrsync.pl`
if [ "$var" ]; then
log "found $var"
else
cd $SOURCEDIR/x-vdr/utilities/vdrsync
chmod 0744 ./utilitie-test.sh
./utilitie-test.sh
fi
# genindex
var=`which genindex`
if [ "$var" ]; then
log "found $var"
else
cd $SOURCEDIR/x-vdr/utilities/genindex
chmod 0744 ./utilitie-test.sh
./utilitie-test.sh
fi
# m2vrequantizer
var=`which requant`
if [ "$var" ]; then
log "found $var"
else
cd $SOURCEDIR/x-vdr/utilities/m2vrequantizer
chmod 0744 ./utilitie-test.sh
./utilitie-test.sh
fi
# rechte setzen
chown -R $VDRUSER:$VDRGROUP $VDRCONFDIR/plugins/burn
## plugin specials - ende #############################################################
}
# plugin commands
if [ $# \> 0 ]; then
cmd=$1
cmd_plugin
else
install_plugin
log "install-plugin fuer $VERSION ist fertig"
fi
# burn-buffer
if [ "$cmd" = "-m" ] || [ "$cmd" = "--make" ] || [ "$cmd" = "-r" ] || [ "$cmd" = "--remake" ]; then
cp -f $SOURCEDIR/VDR/PLUGINS/src/$LINK/burn-buffers $VDRBINDIR
fi
exit 0
|