#!/bin/sh
# @function install PHP server
function InstallOPENSSL()
{
    ShowResult "[green]正在安装 OPENSSL 1.1.0e ... [/green]" 1
	cd ${_PATH_COMPILATION_} ${_SYS_SHOW_INSTALL_DETAILS_}
    tar zxvf ${_PATH_SOFTWARE_}/openssl-1.*.tar.gz ${_SYS_SHOW_INSTALL_DETAILS_}
    eval cd openssl-1.* ${_SYS_SHOW_INSTALL_DETAILS_}
 	eval ./config --prefix=/usr/local/openssl shared zlib
 	eval make ${_SYS_SHOW_INSTALL_DETAILS_}
    eval make install ${_SYS_SHOW_INSTALL_DETAILS_}
    eval mv /usr/bin/openssl /usr/bin/openssl.bak
	eval mv /usr/include/openssl /usr/include/openssl.bak
	eval ln -s /usr/local/openssl/bin/openssl /usr/bin/openssl
	eval ln -s /usr/local/openssl/include/openssl /usr/include/openssl
	echo "/usr/local/openssl/lib" >> /etc/ld.so.conf
	ldconfig
	openssl version ${_SYS_SHOW_INSTALL_DETAILS_}
	ShowStatus $? 
}