#!/usr/bin/env bash

Autoconf_Ver='autoconf-2.13'
Libiconv_Ver='libiconv-1.15'
LibMcrypt_Ver='libmcrypt-2.5.8'
Mcypt_Ver='mcrypt-2.6.8'
Mhash_Ver='mhash-0.9.9.9'
Freetype_Ver='freetype-2.7'
Freetype_New_Ver='freetype-2.10.1'
Curl_Ver='curl-7.62.0'
Pcre_Ver='pcre-8.42'
Jemalloc_Ver='jemalloc-5.2.1'
TCMalloc_Ver='gperftools-2.7'
Libunwind_Ver='libunwind-1.2.1'
Libicu4c_Ver='icu4c-58_3'
Boost_Ver='boost_1_59_0'
Boost_New_Ver='boost_1_67_0'
Openssl_Ver='openssl-1.0.2u'
Openssl_New_Ver='openssl-1.1.1k'
Nghttp2_Ver='nghttp2-1.40.0'
Libzip_Ver='libzip-1.3.2'
Luajit_Ver='luajit2-2.1-20190329'
LuaNginxModule='lua-nginx-module-0.10.14'
NgxDevelKit='ngx_devel_kit-0.3.1'
Nginx_Ver='nginx-1.20.1'
if [ "${DBSelect}" = "1" ]; then
    Mysql_Ver='mysql-5.1.73'
elif [ "${DBSelect}" = "2" ]; then
    Mysql_Ver='mysql-5.5.62'
elif [ "${DBSelect}" = "3" ]; then
    Mysql_Ver='mysql-5.6.51'
elif [ "${DBSelect}" = "4" ]; then
    Mysql_Ver='mysql-5.7.34'
elif [ "${DBSelect}" = "5" ]; then
    Mysql_Ver='mysql-8.0.25'
elif [ "${DBSelect}" = "6" ]; then
    Mariadb_Ver='mariadb-5.5.68'
elif [ "${DBSelect}" = "7" ]; then
    Mariadb_Ver='mariadb-10.1.48'
elif [ "${DBSelect}" = "8" ]; then
    Mariadb_Ver='mariadb-10.2.38'
elif [ "${DBSelect}" = "9" ]; then
    Mariadb_Ver='mariadb-10.3.29'
elif [ "${DBSelect}" = "10" ]; then
    Mariadb_Ver='mariadb-10.4.19'
fi
if [ "${PHPSelect}" = "1" ]; then
    Php_Ver='php-5.2.17'
elif [ "${PHPSelect}" = "2" ]; then
    Php_Ver='php-5.3.29'
elif [ "${PHPSelect}" = "3" ]; then
    Php_Ver='php-5.4.45'
elif [ "${PHPSelect}" = "4" ]; then
    Php_Ver='php-5.5.38'
elif [ "${PHPSelect}" = "5" ]; then
    Php_Ver='php-5.6.40'
elif [ "${PHPSelect}" = "6" ]; then
    Php_Ver='php-7.0.33'
elif [ "${PHPSelect}" = "7" ]; then
    Php_Ver='php-7.1.33'
elif [ "${PHPSelect}" = "8" ]; then
    Php_Ver='php-7.2.34'
elif [ "${PHPSelect}" = "9" ]; then
    Php_Ver='php-7.3.28'
elif [ "${PHPSelect}" = "10" ]; then
    Php_Ver='php-7.4.21'
elif [ "${PHPSelect}" = "11" ]; then
    Php_Ver='php-8.0.8'
fi
if [[ "${PHPSelect}" =~ ^[123]$ ]]; then
    PhpMyAdmin_Ver='phpMyAdmin-4.0.10.20-all-languages'
elif [[ "${PHPSelect}" =~ ^[456]$ ]]; then
    PhpMyAdmin_Ver='phpMyAdmin-4.9.7-all-languages'
else
    PhpMyAdmin_Ver='phpMyAdmin-5.1.1-all-languages'
fi
APR_Ver='apr-1.7.0'
APR_Util_Ver='apr-util-1.6.1'
if [ "${ApacheSelect}" = "1" ]; then
    Apache_Ver='httpd-2.2.34'
elif [ "${ApacheSelect}" = "2" ]; then
    Apache_Ver='httpd-2.4.48'
fi

Pureftpd_Ver='pure-ftpd-1.0.49'

XCache_Ver='xcache-3.2.0'
ImageMagick_Ver='ImageMagick-7.0.10-53'
Imagick_Ver='imagick-3.5.0'
ZendOpcache_Ver='zendopcache-7.0.5'
Redis_Stable_Ver='redis-6.2.3'
PHPRedis_Ver='redis-5.3.4'
Memcached_Ver='memcached-1.6.9'
Libmemcached_Ver='libmemcached-1.0.18'
PHPMemcached_Ver='memcached-2.2.0'
PHP7Memcached_Ver='memcached-3.1.5'
PHPMemcache_Ver='memcache-3.0.8'
PHP7Memcache_Ver='memcache-4.0.5.2'
PHP8Memcache_Ver='memcache-8.0'
PHPOldApcu_Ver='apcu-4.0.11'
PHPNewApcu_Ver='apcu-5.1.20'
PHPApcu_Bc_Ver='apcu_bc-1.0.5'
