separate gnutls for Trusty

This commit is contained in:
Timofey Turenko
2017-05-31 02:12:28 +03:00
parent 6e75147b84
commit 06c97f31e9

View File

@ -16,17 +16,22 @@ then
build-essential libssl-dev ncurses-dev bison flex \ build-essential libssl-dev ncurses-dev bison flex \
perl libtool libcurl4-openssl-dev libpcre3-dev tcl tcl-dev uuid \ perl libtool libcurl4-openssl-dev libpcre3-dev tcl tcl-dev uuid \
uuid-dev libsqlite3-dev uuid-dev libsqlite3-dev
sudo apt-get install -y --force-yes libgnutls30 ## separatelibgnutls installation process for Ubuntu Trusty
res1=$? cat /etc/*release | grep "Trusty"
sudo apt-get install -y --force-yes libgnutls-dev if [ $? == 0 ]
if [ $? != 0 ] || [ $res1 != 0 ]
then then
sudo apt-get install -y --force-yes libgnutls28-dev sudo apt-get install -y --force-yes libgnutls-dev libgcrypt11-dev
fi else
sudo apt-get install -y --force-yes libgcrypt20-dev sudo apt-get install -y --force-yes libgnutls30 libgnutls-dev
if [ $? != 0 ] if [ $? != 0 ]
then then
sudo apt-get install -y --force-yes libgcrypt11-dev sudo apt-get install -y --force-yes libgnutls28-dev
fi
sudo apt-get install -y --force-yes libgcrypt20-dev
if [ $? != 0 ]
then
sudo apt-get install -y --force-yes libgcrypt11-dev
fi
fi fi
else else
## RPM-based distro ## RPM-based distro