From c91f855eefd62b1550ccb706c99eb76993006f81 Mon Sep 17 00:00:00 2001 From: midoks Date: Sat, 2 Jul 2022 16:07:20 +0800 Subject: [PATCH] up --- plugins/php/lib/openssl_10.sh | 27 +++++++++++++++++++++++++++ plugins/php/versions/53/openssl.sh | 4 ++-- 2 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 plugins/php/lib/openssl_10.sh diff --git a/plugins/php/lib/openssl_10.sh b/plugins/php/lib/openssl_10.sh new file mode 100644 index 000000000..90c1155e3 --- /dev/null +++ b/plugins/php/lib/openssl_10.sh @@ -0,0 +1,27 @@ +#!/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 + +if [ ! -d ${SERVER_ROOT}/openssl10 ];then + cd ${SOURCE_ROOT} + if [ ! -f ${SOURCE_ROOT}/openssl-1.0.2q.tar.gz ];then + wget https://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 + ./config --openssldir=${SERVER_ROOT}/openssl10 zlib-dynamic shared + make && make install +fi + + diff --git a/plugins/php/versions/53/openssl.sh b/plugins/php/versions/53/openssl.sh index 17950eef8..f1f581a5d 100755 --- a/plugins/php/versions/53/openssl.sh +++ b/plugins/php/versions/53/openssl.sh @@ -36,7 +36,7 @@ Install_lib() return fi - cd $serverPath/mdserver-web/plugins/php/lib && /bin/bash openssl.sh + cd $serverPath/mdserver-web/plugins/php/lib && /bin/bash openssl_10.sh if [ ! -f "$extFile" ];then @@ -50,7 +50,7 @@ Install_lib() mv config0.m4 config.m4 fi - export PKG_CONFIG_PATH=$serverPath/lib/openssl/lib/pkgconfig + export PKG_CONFIG_PATH=$serverPath/lib/openssl10/lib/pkgconfig $serverPath/php/$version/bin/phpize ./configure --with-php-config=$serverPath/php/$version/bin/php-config \ --with-openssl