Thunderbird

Opis po polsku

  <title>Thunderbird 2.0</title>
  <description>Klient poczty</description>
  <info>
  <![CDATA[
<b>Thunderbird 2.0</b> jest wieloplatformowym klientem poczty i Usenet. Zawiera inteligenty filtr spamu, czytnik kanałów RSS, tagowanie wiadomości, zawansowane przeglądanie folderówi wiele więcej.<br></br><br></br>

Po zainstalowaniu znajdziesz go w Start --> Internet<br></br><br></br>
   Będziesz mógł go także uruchomić w terminalu poprzez komende <i><b>thunderbird</b></i>   ]]>

Skrypt instalujący
function thunderbird2install {
if cat /opt/thunderbird/thunderbirdversion.txt | grep "2.0.0.0"
then
   if AX_question "Edumatix seems to think that the latest version of Thunderbird 2.0 is already installed! If YOU ARE SURE you want to reinstall Thunderbird 2.0 then hit YES or else hit NO. If you hit NO, Edumatix will resume with the rest of the chosen options.";
   then
      thunderbird2real
   fi
else
    thunderbird2real
fi
}

function thunderbird2real {
if AX_question "Edumatix will uninstall mozilla-thunderbird 1.5 and install Thunderbird 2.0 based on your selected language by downloading directly from www.mozilla.com and configuring it so that your all past thunderbird email accounts are correctly imported. Do you want to continue? ";
then
    AXOPTIONS=("Basque" "Belarusian" "Bulgarian" "Catalan" "Chinese (Simplified)" "Chinese (Traditional)" "Czech" "Danish" "Dutch"    "English (US)" "English (British)" "Finnish" "French" "German" "Greek" "Gujarati" "Hebrew" "Hungarian" "Irish" "Italian" "Japanese" "Lithuanian" "Macedonian" "Norwegian (Bokmal)" "Norwegian (Nynorsk)" "Portuguese (Brazilian)" "Portuguese (Portugal)" "Punjabi" "Russian" "Slovak" "Slovenian" "Spanish (Latin American)" "Spanish (Spain)" "Swedish" "Turkish")
    if AX_dropdown "Please select your desired language for Thunderbird"
    then
            rm -f $AXHOME/thunderbird-2.0.0.0.tar.gz
            if [ "$AXCHOICE" == "Basque" ]
            then
                dir_ch
                if ! wget http://ftp.uni-erlangen.de/pub/mozilla.org/thunderbird/releases/2.0.0.0/linux-i686/eu/thunderbird-2.0.0.0.tar.gz
                then
                    AX_fatal "The thunderbird package could not be downloaded. Please try again later!";
                fi
            elif [ "$AXCHOICE" == "Belarusian" ]
            then
                dir_ch
                if ! wget http://ftp.uni-erlangen.de/pub/mozilla.org/thunderbird/releases/2.0.0.0/linux-i686/be/thunderbird-2.0.0.0.tar.gz
                then
                    AX_fatal "The thunderbird package could not be downloaded. Please try again later!";
                fi
            elif [ "$AXCHOICE" == "Bulgarian" ]
            then
                dir_ch
                if ! wget http://ftp.uni-erlangen.de/pub/mozilla.org/thunderbird/releases/2.0.0.0/linux-i686/bg/thunderbird-2.0.0.0.tar.gz
                then
                    AX_fatal "The thunderbird package could not be downloaded. Please try again later!";
                fi
            elif [ "$AXCHOICE" == "Catalan" ]
            then
                dir_ch
                if ! wget http://ftp.uni-erlangen.de/pub/mozilla.org/thunderbird/releases/2.0.0.0/linux-i686/ca/thunderbird-2.0.0.0.tar.gz
                then
                    AX_fatal "The thunderbird package could not be downloaded. Please try again later!";
                fi
            elif [ "$AXCHOICE" == "Chinese (Simplified)" ]
            then
                dir_ch
                if ! wget http://ftp.uni-erlangen.de/pub/mozilla.org/thunderbird/releases/2.0.0.0/linux-i686/zh-CN/thunderbird-2.0.0.0.tar.gz
                then
                    AX_fatal "The thunderbird package could not be downloaded. Please try again later!";
                fi
            elif [ "$AXCHOICE" == "Chinese (Traditional)" ]
            then
                dir_ch
                if ! wget http://ftp.uni-erlangen.de/pub/mozilla.org/thunderbird/releases/2.0.0.0/linux-i686/zh-TW/thunderbird-2.0.0.0.tar.gz
                then
                    AX_fatal "The thunderbird package could not be downloaded. Please try again later!";
                fi
            elif [ "$AXCHOICE" == "Czech" ]
            then
                dir_ch
                if ! wget http://ftp.uni-erlangen.de/pub/mozilla.org/thunderbird/releases/2.0.0.0/linux-i686/cs/thunderbird-2.0.0.0.tar.gz
                then
                    AX_fatal "The thunderbird package could not be downloaded. Please try again later!";
                fi
            elif [ "$AXCHOICE" == "Danish" ]
            then
                dir_ch
                if ! wget http://ftp.uni-erlangen.de/pub/mozilla.org/thunderbird/releases/2.0.0.0/linux-i686/da/thunderbird-2.0.0.0.tar.gz
                then
                    AX_fatal "The thunderbird package could not be downloaded. Please try again later!";
                fi
            elif [ "$AXCHOICE" == "Dutch" ]
            then
                dir_ch
                if ! wget http://ftp.uni-erlangen.de/pub/mozilla.org/thunderbird/releases/2.0.0.0/linux-i686/nl/thunderbird-2.0.0.0.tar.gz
                then
                    AX_fatal "The thunderbird package could not be downloaded. Please try again later!";
                fi
            elif [ "$AXCHOICE" == "English (US)" ]
            then
                dir_ch
                if ! wget http://ftp.uni-erlangen.de/pub/mozilla.org/thunderbird/releases/2.0.0.0/linux-i686/en-US/thunderbird-2.0.0.0.tar.gz
                then
                    AX_fatal "The thunderbird package could not be downloaded. Please try again later!";
                fi
            elif [ "$AXCHOICE" == "English (British)" ]
            then
                dir_ch
                if ! wget http://ftp.uni-erlangen.de/pub/mozilla.org/thunderbird/releases/2.0.0.0/linux-i686/en-GB/thunderbird-2.0.0.0.tar.gz
                then
                    AX_fatal "The thunderbird package could not be downloaded. Please try again later!";
                fi
            elif [ "$AXCHOICE" == "Finnish" ]
            then
                dir_ch
                if ! wget http://ftp.uni-erlangen.de/pub/mozilla.org/thunderbird/releases/2.0.0.0/linux-i686/fi/thunderbird-2.0.0.0.tar.gz
                then
                    AX_fatal "The thunderbird package could not be downloaded. Please try again later!";
                fi
            elif [ "$AXCHOICE" == "French" ]
            then
                dir_ch
                if ! wget http://ftp.uni-erlangen.de/pub/mozilla.org/thunderbird/releases/2.0.0.0/linux-i686/fr/thunderbird-2.0.0.0.tar.gz
                then
                    AX_fatal "The thunderbird package could not be downloaded. Please try again later!";
                fi
            elif [ "$AXCHOICE" == "German" ]
            then
                dir_ch
                if ! wget http://ftp.uni-erlangen.de/pub/mozilla.org/thunderbird/releases/2.0.0.0/linux-i686/de/thunderbird-2.0.0.0.tar.gz
                then
                    AX_fatal "The thunderbird package could not be downloaded. Please try again later!";
                fi
            elif [ "$AXCHOICE" == "Greek" ]
            then
                dir_ch
                if ! wget http://ftp.uni-erlangen.de/pub/mozilla.org/thunderbird/releases/2.0.0.0/linux-i686/el/thunderbird-2.0.0.0.tar.gz
                then
                    AX_fatal "The thunderbird package could not be downloaded. Please try again later!";
                fi
            elif [ "$AXCHOICE" == "Gujarati" ]
            then
                dir_ch
                if ! wget http://ftp.uni-erlangen.de/pub/mozilla.org/thunderbird/releases/2.0.0.0/linux-i686/gu-IN/thunderbird-2.0.0.0.tar.gz
                then
                    AX_fatal "The thunderbird package could not be downloaded. Please try again later!";
                fi
            elif [ "$AXCHOICE" == "Hebrew" ]
            then
                dir_ch
                if ! wget http://ftp.uni-erlangen.de/pub/mozilla.org/thunderbird/releases/2.0.0.0/linux-i686/he/thunderbird-2.0.0.0.tar.gz
                then
                    AX_fatal "The thunderbird package could not be downloaded. Please try again later!";
                fi
            elif [ "$AXCHOICE" == "Hungarian" ]
            then
                dir_ch
                if ! wget http://ftp.uni-erlangen.de/pub/mozilla.org/thunderbird/releases/2.0.0.0/linux-i686/hu/thunderbird-2.0.0.0.tar.gz
                then
                    AX_fatal "The thunderbird package could not be downloaded. Please try again later!";
                fi
            elif [ "$AXCHOICE" == "Irish" ]
            then
                dir_ch
                if ! wget http://ftp.uni-erlangen.de/pub/mozilla.org/thunderbird/releases/2.0.0.0/linux-i686/ga-IE/thunderbird-2.0.0.0.tar.gz
                then
                    AX_fatal "The thunderbird package could not be downloaded. Please try again later!";
                fi
            elif [ "$AXCHOICE" == "Italian" ]
            then
                dir_ch
                if ! wget http://ftp.uni-erlangen.de/pub/mozilla.org/thunderbird/releases/2.0.0.0/linux-i686/it/thunderbird-2.0.0.0.tar.gz
                then
                    AX_fatal "The thunderbird package could not be downloaded. Please try again later!";
                fi
            elif [ "$AXCHOICE" == "Japanese" ]
            then
                dir_ch
                if ! wget http://ftp.uni-erlangen.de/pub/mozilla.org/thunderbird/releases/2.0.0.0/linux-i686/ja/thunderbird-2.0.0.0.tar.gz
                then
                    AX_fatal "The thunderbird package could not be downloaded. Please try again later!";
                fi
            elif [ "$AXCHOICE" == "Korean" ]
            then
                dir_ch
                if ! wget http://ftp.uni-erlangen.de/pub/mozilla.org/thunderbird/releases/2.0.0.0/linux-i686/ko/thunderbird-2.0.0.0.tar.gz
                then
                    AX_fatal "The thunderbird package could not be downloaded. Please try again later!";
                fi
            elif [ "$AXCHOICE" == "Lithuanian" ]
            then
                dir_ch
                if ! wget http://ftp.uni-erlangen.de/pub/mozilla.org/thunderbird/releases/2.0.0.0/linux-i686/lt/thunderbird-2.0.0.0.tar.gz
                then
                    AX_fatal "The thunderbird package could not be downloaded. Please try again later!";
                fi
            elif [ "$AXCHOICE" == "Macedonian" ]
            then
                dir_ch
                if ! wget http://ftp.uni-erlangen.de/pub/mozilla.org/thunderbird/releases/2.0.0.0/linux-i686/mk/thunderbird-2.0.0.0.tar.gz
                then
                    AX_fatal "The thunderbird package could not be downloaded. Please try again later!";
                fi
            elif [ "$AXCHOICE" == "Norwegian (Bokmal)" ]
            then
                dir_ch
                if ! wget http://ftp.uni-erlangen.de/pub/mozilla.org/thunderbird/releases/2.0.0.0/linux-i686/nb-NO/thunderbird-2.0.0.0.tar.gz
                then
                    AX_fatal "The thunderbird package could not be downloaded. Please try again later!";
                fi
            elif [ "$AXCHOICE" == "Norwegian (Nynorsk)" ]
            then
                dir_ch
                if ! wget http://ftp.uni-erlangen.de/pub/mozilla.org/thunderbird/releases/2.0.0.0/linux-i686/nn-NO/thunderbird-2.0.0.0.tar.gz
                then
                    AX_fatal "The thunderbird package could not be downloaded. Please try again later!";
                fi
            elif [ "$AXCHOICE" == "Polish" ]
            then
                dir_ch
                if ! wget http://ftp.uni-erlangen.de/pub/mozilla.org/thunderbird/releases/2.0.0.0/linux-i686/pl/thunderbird-2.0.0.0.tar.gz
                then
                    AX_fatal "The thunderbird package could not be downloaded. Please try again later!";
                fi
            elif [ "$AXCHOICE" == "Portuguese (Brazilian)" ]
            then
                dir_ch
                if ! wget http://ftp.uni-erlangen.de/pub/mozilla.org/thunderbird/releases/2.0.0.0/linux-i686/pt-BR/thunderbird-2.0.0.0.tar.gz
                then
                    AX_fatal "The thunderbird package could not be downloaded. Please try again later!";
                fi
            elif [ "$AXCHOICE" == "Portuguese (Portugal)" ]
            then
                dir_ch
                if ! wget http://ftp.uni-erlangen.de/pub/mozilla.org/thunderbird/releases/2.0.0.0/linux-i686/pt-PT/thunderbird-2.0.0.0.tar.gz
                then
                    AX_fatal "The thunderbird package could not be downloaded. Please try again later!";
                fi
            elif [ "$AXCHOICE" == "Punjabi" ]
            then
                dir_ch
                if ! wget http://ftp.uni-erlangen.de/pub/mozilla.org/thunderbird/releases/2.0.0.0/linux-i686/pa-IN/thunderbird-2.0.0.0.tar.gz
                then
                    AX_fatal "The thunderbird package could not be downloaded. Please try again later!";
                fi
            elif [ "$AXCHOICE" == "Russian" ]
            then
                dir_ch
                if ! wget http://ftp.uni-erlangen.de/pub/mozilla.org/thunderbird/releases/2.0.0.0/linux-i686/ru/thunderbird-2.0.0.0.tar.gz
                then
                    AX_fatal "The thunderbird package could not be downloaded. Please try again later!";
                fi
            elif [ "$AXCHOICE" == "Slovak" ]
            then
                dir_ch
                if ! wget http://ftp.uni-erlangen.de/pub/mozilla.org/thunderbird/releases/2.0.0.0/linux-i686/sk/thunderbird-2.0.0.0.tar.gz
                then
                    AX_fatal "The thunderbird package could not be downloaded. Please try again later!";
                fi
            elif [ "$AXCHOICE" == "Slovenian" ]
            then
                dir_ch
                if ! wget http://ftp.uni-erlangen.de/pub/mozilla.org/thunderbird/releases/2.0.0.0/linux-i686/sl/thunderbird-2.0.0.0.tar.gz
                then
                    AX_fatal "The thunderbird package could not be downloaded. Please try again later!";
                fi
            elif [ "$AXCHOICE" == "Spanish (Latin American)" ]
            then
                dir_ch
                if ! wget http://ftp.uni-erlangen.de/pub/mozilla.org/thunderbird/releases/2.0.0.0/linux-i686/es-AR/thunderbird-2.0.0.0.tar.gz
                then
                    AX_fatal "The thunderbird package could not be downloaded. Please try again later!";
                fi
            elif [ "$AXCHOICE" == "Spanish (Spain)" ]
            then
                dir_ch
                if ! wget http://ftp.uni-erlangen.de/pub/mozilla.org/thunderbird/releases/2.0.0.0/linux-i686/es-ES/thunderbird-2.0.0.0.tar.gz
                then
                    AX_fatal "The thunderbird package could not be downloaded. Please try again later!";
                fi
            elif [ "$AXCHOICE" == "Swedish" ]
            then
                dir_ch
                if ! wget http://ftp.uni-erlangen.de/pub/mozilla.org/thunderbird/releases/2.0.0.0/linux-i686/sv-SE/thunderbird-2.0.0.0.tar.gz
                then
                    AX_fatal "The thunderbird package could not be downloaded. Please try again later!";
                fi
            elif [ "$AXCHOICE" == "Turkish" ]
            then
                dir_ch
                if ! wget http://ftp.uni-erlangen.de/pub/mozilla.org/thunderbird/releases/2.0.0.0/linux-i686/tr/thunderbird-2.0.0.0.tar.gz
                then
                    AX_fatal "The thunderbird package could not be downloaded. Please try again later!";
                fi
            else
                AX_fatal "A language choice related error occurred. Please report to Edumatix Forums"
            fi
            sleep 1;
            dpkg_check
            sleep 1;
            apt-get --assume-yes remove mozilla-thunderbird
            AX_uninstalled "script49"
            mkdir -p /opt
            rm -f /usr/share/applications/thunderbird.desktop
            rm -rf /opt/thunderbird
            rm -f /usr/bin/thunderbird
            tar zxvf $AXHOME/thunderbird-2.0.0.0.tar.gz -C /opt/
            sleep 1
            ln -s /opt/thunderbird/thunderbird /usr/bin/thunderbird
            cp -f /usr/share/edumatix/conf/thunderbird.desktop /usr/share/applications/
                cp -f /usr/share/edumatix/conf/thunderbirdversion.txt /opt/thunderbird/
                rm -f $AXHOME/thunderbird-2.0.0.0.tar.gz
            if ! test -e $AXHOME/.thunderbird
            then
                if test -e $AXHOME/.mozilla-thunderbird
                then
                    su $AXUSER -c "cp -rf $AXHOME/.mozilla-thunderbird $AXHOME/.thunderbird"
                fi
            fi
    else
        AX_fatal "you chose to cancel the installation of Thunderbird 2.0. No changes have been made to your system."   
    fi
else
    AX_fatal "you chose to cancel the installation of Thunderbird 2.0. No changes have been made to your system."
fi
}

Skrypt usuwający
function thunderbird2remove {
rm -f /usr/share/applications/thunderbird.desktop
rm -rf /opt/thunderbird
rm -f /usr/bin/thunderbird
}
O ile nie zaznaczono inaczej, treść tej strony objęta jest licencją Creative Commons Attribution-NonCommercial 3.0 License