1 --- install.sh.orig 2010-02-26 15:56:07.000000000 +0000
2 +++ install.sh 2010-03-14 09:13:11.360536599 +0000
4 checkPerlModule Digest::HMAC_MD5
5 echo "* Required if VDR and VDRAdmin-AM use different character encoding"
7 - echo "* Required for IPv6 support"
8 - checkPerlModule IO::Socket::INET6
9 - echo "* Required for SSL support (https)"
10 - checkPerlModule IO::Socket::SSL
11 +# echo "* Required for IPv6 support"
12 +# checkPerlModule IO::Socket::INET6
13 +# echo "* Required for SSL support (https)"
14 +# checkPerlModule IO::Socket::SSL
15 echo "* Required if you want to use gzip'ed HTTP responses"
16 checkPerlModule Compress::Zlib
17 echo "* Required if you want to log to syslog"
23 if [ -d $BINDIR ]; then
25 - if [ $? -ne 0 ] ; then
27 - echo "Killed running VDRAdmin-AM..."
29 sed <vdradmind.pl >$BINDIR/vdradmind \
30 -e "s/^\(my \$SEARCH_FILES_IN_SYSTEM *=\) 0;/\1 1;/" \
31 - -e "s:/usr/share/vdradmin/lib:${LIBDIR}/lib:" \
32 - -e "s:/usr/share/vdradmin/template:${LIBDIR}/template:" \
33 - -e "s:/var/log/vdradmin:${LOGDIR}:" \
34 - -e "s:/var/cache/vdradmin:${CACHEDIR}:" \
35 - -e "s:/var/run/vdradmin/vdradmind.pid:${PIDFILE}:" \
36 - -e "s:\(\$ETCDIR *= \)\"/etc/vdradmin\";:\1\"${ETCDIR}\";:" \
37 - -e "s:/usr/share/locale:${LOCDIR}:" \
38 -e "s:\(\$CONFIG{VIDEODIR} *= \)\"/video\";:\1\"${VIDEODIR}\";:" \
39 -e "s:\(\$CONFIG{EPGIMAGES} *= \)\"\$CONFIG{VIDEODIR}/epgimages\";:\1\"${EPGIMAGES}\";:" \
40 -e "s:\(\$CONFIG{VDRCONFDIR} *= \)\"\$CONFIG{VIDEODIR}\";:\1\"${VDRCONF}\";:"
42 chmod a+x $BINDIR/vdradmind
44 - if [ "$CONFIG" ]; then
45 - echo "Configuring VDRAdmin-AM..."
46 - $BINDIR/vdradmind -c
49 - if [ "$RESTART" ]; then
50 - echo "Restarting VDRAdmin-AM..."
55 - if [ -e $BINDIR/vdradmind.pl ]; then
56 - echo "Removing ancient $BINDIR/vdradmind.pl"
57 - rm -f $BINDIR/vdradmind.pl
59 - for man in man1/vdradmind.pl.1 man1/vdradmind.1; do
60 - if [ -e $MANDIR/$man ]; then
61 - echo "Removing ancient $MANDIR/$man"
66 echo "$BINDIR exists but is no directory!"
73 echo "VDRAdmin-AM has been installed!"
75 - if [ -z "$RESTART" ]; then
76 - echo "Run \"$BINDIR/vdradmind\" to start VDRAdmin-AM."
80 - echo "If you want to run VDRAdmin-AM in a different language you must set the LANG environment variable (see README)."
83 - echo "If you would like VDRAdmin-AM to start at system's boot, please modify your system's init scripts."
85 - local USED_DIRS="$(echo -e "$ETCDIR\n$LOGDIR\n$CACHEDIR\n$(dirname "$PIDFILE")" | sort -u)"
88 - echo "VDRAdmin-AM needs to access some directories:"
91 - echo "Please check that the user VDRAdmin-AM runs has enough permissions to access them!"