diff --git a/plugins/php/lib/icu.sh b/plugins/php/lib/icu.sh index c805e4a75..42802fdf2 100644 --- a/plugins/php/lib/icu.sh +++ b/plugins/php/lib/icu.sh @@ -22,7 +22,7 @@ fi if [ ! -d ${SERVER_ROOT}/icu ];then if [ ! -f ${SOURCE_ROOT}/icu4c-52_2-src.tgz ];then - wget -O ${SOURCE_ROOT}/icu4c-52_2-src.tgz ${HTTP_PREFIX}github.com/unicode-org/icu/releases/download/release-52-2/icu4c-52_2-src.tgz + wget --no-check-certificate -O ${SOURCE_ROOT}/icu4c-52_2-src.tgz ${HTTP_PREFIX}github.com/unicode-org/icu/releases/download/release-52-2/icu4c-52_2-src.tgz fi if [ ! -d ${SERVER_ROOT}/icu/52.2 ];then diff --git a/plugins/php/lib/libiconv.sh b/plugins/php/lib/libiconv.sh index 8ad47a112..b5316b310 100644 --- a/plugins/php/lib/libiconv.sh +++ b/plugins/php/lib/libiconv.sh @@ -21,7 +21,7 @@ fi if [ ! -d ${SERVER_ROOT}/libiconv ];then cd $SOURCE_ROOT - wget -O libiconv-1.15.tar.gz ${HTTP_PREFIX}github.com/midoks/mdserver-web/releases/download/init/libiconv-1.15.tar.gz -T 5 + wget --no-check-certificate -O libiconv-1.15.tar.gz ${HTTP_PREFIX}github.com/midoks/mdserver-web/releases/download/init/libiconv-1.15.tar.gz -T 5 tar zxvf libiconv-1.15.tar.gz cd libiconv-1.15 ./configure --prefix=${SERVER_ROOT}/libiconv --enable-static && make && make install diff --git a/plugins/php/lib/libmcrypt.sh b/plugins/php/lib/libmcrypt.sh index 48d9d38ab..9762d5ab1 100644 --- a/plugins/php/lib/libmcrypt.sh +++ b/plugins/php/lib/libmcrypt.sh @@ -25,7 +25,7 @@ done if [ $ISFIND == "0" ];then cd $SOURCE_ROOT if [ ! -f ${SOURCE_ROOT}/libmcrypt-2.5.8.tar.gz ];then - wget -O libmcrypt-2.5.8.tar.gz --no-check-certificate https://sourceforge.net/projects/mcrypt/files/Libmcrypt/2.5.8/libmcrypt-2.5.8.tar.gz -T 20 + wget --no-check-certificate -O libmcrypt-2.5.8.tar.gz https://sourceforge.net/projects/mcrypt/files/Libmcrypt/2.5.8/libmcrypt-2.5.8.tar.gz -T 20 fi tar -zxvf libmcrypt-2.5.8.tar.gz diff --git a/plugins/php/lib/libmemcached.sh b/plugins/php/lib/libmemcached.sh index a26b9fff0..b885a4376 100644 --- a/plugins/php/lib/libmemcached.sh +++ b/plugins/php/lib/libmemcached.sh @@ -30,7 +30,7 @@ SOURCE_ROOT=$rootPath/source/lib if [ ! -d ${SERVER_ROOT}/libmemcached ];then cd ${SOURCE_ROOT} if [ ! -f ${SOURCE_ROOT}/libmemcached-1.0.18.tar.gz ];then - wget -O libmemcached-1.0.18.tar.gz https://launchpad.net/libmemcached/1.0/1.0.18/+download/libmemcached-1.0.18.tar.gz -T 20 + wget --no-check-certificate -O libmemcached-1.0.18.tar.gz https://launchpad.net/libmemcached/1.0/1.0.18/+download/libmemcached-1.0.18.tar.gz -T 20 fi tar -zxf libmemcached-1.0.18.tar.gz cd libmemcached-1.0.18 diff --git a/plugins/php/lib/libsodium.sh b/plugins/php/lib/libsodium.sh new file mode 100644 index 000000000..fea9e9e29 --- /dev/null +++ b/plugins/php/lib/libsodium.sh @@ -0,0 +1,29 @@ +#!/bin/bash +PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin +export PATH + +curPath=`pwd` +rootPath=$(dirname "$curPath") +rootPath=$(dirname "$rootPath") +rootPath=$(dirname "$rootPath") +rootPath=$(dirname "$rootPath") + +# echo $rootPath + +SERVER_ROOT=$rootPath/lib +SOURCE_ROOT=$rootPath/source/lib + + +VERSION=1.0.18 +#----------------------------- libsodium start -------------------------# +if [ ! -d ${SERVER_ROOT}/libsodium-stable ];then + cd ${SOURCE_ROOT} + if [ ! -f ${SOURCE_ROOT}/libsodium-${VERSION}-stable.tar.gz ];then + # wget --no-check-certificate -O libsodium-1.0.18-stable.tar.gz https://download.libsodium.org/libsodium/releases/libsodium-1.0.18-stable.tar.gz -T 20 + wget --no-check-certificate -O libsodium-${VERSION}-stable.tar.gz https://download.libsodium.org/libsodium/releases/libsodium-${VERSION}-stable.tar.gz -T 20 + fi + tar -zxvf libsodium-${VERSION}-stable.tar.gz + cd libsodium-stable + ./configure && make && make check && sudo make install +fi +#----------------------------- libsodium end -------------------------# \ No newline at end of file diff --git a/plugins/php/lib/libzip.sh b/plugins/php/lib/libzip.sh index e296876ea..e68cc3da6 100644 --- a/plugins/php/lib/libzip.sh +++ b/plugins/php/lib/libzip.sh @@ -17,7 +17,7 @@ if [ ! -d ${SERVER_ROOT}/libzip ];then cd $SOURCE_ROOT if [ ! -f ${SOURCE_ROOT}/libzip-1.3.2.tar.gz ];then - wget -O libzip-1.3.2.tar.gz --no-check-certificate https://nih.at/libzip/libzip-1.3.2.tar.gz -T 20 + wget --no-check-certificate -O libzip-1.3.2.tar.gz --no-check-certificate https://nih.at/libzip/libzip-1.3.2.tar.gz -T 20 fi tar -zxvf libzip-1.3.2.tar.gz diff --git a/plugins/php/lib/oniguruma.sh b/plugins/php/lib/oniguruma.sh index 401950c7b..3c04b4c08 100644 --- a/plugins/php/lib/oniguruma.sh +++ b/plugins/php/lib/oniguruma.sh @@ -23,7 +23,7 @@ which onig-config if [ "$?" != "0" ];then cd ${SOURCE_ROOT} if [ ! -f ${SOURCE_ROOT}/oniguruma-6.9.4.tar.gz ];then - wget -O ${SOURCE_ROOT}/oniguruma-6.9.4.tar.gz ${HTTP_PREFIX}github.com/kkos/oniguruma/archive/v6.9.4.tar.gz + wget --no-check-certificate -O ${SOURCE_ROOT}/oniguruma-6.9.4.tar.gz ${HTTP_PREFIX}github.com/kkos/oniguruma/archive/v6.9.4.tar.gz fi cd ${SOURCE_ROOT} && tar -zxvf oniguruma-6.9.4.tar.gz cd ${SOURCE_ROOT}/oniguruma-6.9.4 && ./autogen.sh && ./configure --prefix=/usr && make && make install diff --git a/plugins/php/lib/openssl.sh b/plugins/php/lib/openssl.sh index d76ca49ca..1d34d9dc8 100644 --- a/plugins/php/lib/openssl.sh +++ b/plugins/php/lib/openssl.sh @@ -16,7 +16,7 @@ SOURCE_ROOT=$rootPath/source/lib if [ ! -d ${SERVER_ROOT}/openssl ];then cd ${SOURCE_ROOT} if [ ! -f ${SOURCE_ROOT}/openssl-1.1.1p.tar.gz ];then - wget -O ${SOURCE_ROOT}/openssl-1.1.1p.tar.gz https://www.openssl.org/source/openssl-1.1.1p.tar.gz + wget --no-check-certificate -O ${SOURCE_ROOT}/openssl-1.1.1p.tar.gz https://www.openssl.org/source/openssl-1.1.1p.tar.gz fi tar -zxvf openssl-1.1.1p.tar.gz cd openssl-1.1.1p diff --git a/plugins/php/lib/openssl_10.sh b/plugins/php/lib/openssl_10.sh index c0a6280e2..d39a6b46e 100644 --- a/plugins/php/lib/openssl_10.sh +++ b/plugins/php/lib/openssl_10.sh @@ -22,7 +22,7 @@ fi if [ ! -d ${SERVER_ROOT}/openssl10 ];then cd ${SOURCE_ROOT} if [ ! -f ${SOURCE_ROOT}/openssl-1.0.2q.tar.gz ];then - wget ${HTTP_PREFIX}github.com/midoks/mdserver-web/releases/download/init/openssl-1.0.2q.tar.gz -T 20 + wget --no-check-certificate ${HTTP_PREFIX}github.com/midoks/mdserver-web/releases/download/init/openssl-1.0.2q.tar.gz -T 20 fi tar -zxf openssl-1.0.2q.tar.gz cd openssl-1.0.2q diff --git a/plugins/php/lib/zlib.sh b/plugins/php/lib/zlib.sh index 44043a45f..f248192b5 100644 --- a/plugins/php/lib/zlib.sh +++ b/plugins/php/lib/zlib.sh @@ -23,7 +23,7 @@ if [ ! -d ${SERVER_ROOT}/zlib ];then cd $SOURCE_ROOT if [ ! -f ${SOURCE_ROOT}/zlib-1.2.11.tar.gz ];then - wget -O zlib-1.2.11.tar.gz --no-check-certificate ${HTTP_PREFIX}github.com/madler/zlib/archive/v1.2.11.tar.gz -T 20 + wget --no-check-certificate -O zlib-1.2.11.tar.gz ${HTTP_PREFIX}github.com/madler/zlib/archive/v1.2.11.tar.gz -T 20 fi tar -zxvf zlib-1.2.11.tar.gz