Created
April 25, 2016 13:51
-
-
Save rhykw/b7d10721937fab08c6d17890a7afa61c to your computer and use it in GitHub Desktop.
ngx_mruby add_with_openssl test shell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
openssl_ver=1.0.2g | |
nginx_ver=1.9.14 | |
set -ex | |
tempdir=/var/tmp/ngx_mruby_build_$( date "+%Y%m%d%H%M%S" ) | |
mkdir -p $tempdir | |
cd $tempdir | |
curl -ks https://www.openssl.org/source/openssl-${openssl_ver}.tar.gz | tar -zx | |
curl -ks http://nginx.org/download/nginx-${nginx_ver}.tar.gz | tar -zx | |
git clone https://github.com/rhykw/ngx_mruby.git | |
cd ngx_mruby | |
git checkout add_with_openssl | |
if [ -z "$WITH_OPENSSL" ] ; then | |
./configure --with-ngx-src-root=../nginx-${nginx_ver} | |
else | |
./configure --with-ngx-src-root=../nginx-${nginx_ver} --with-openssl-src=$(pwd)/../openssl-${openssl_ver} | |
fi | |
make build_mruby | |
make generate_gems_config | |
cd ../nginx-${nginx_ver} | |
./configure \ | |
--with-openssl=$(pwd)/../openssl-${openssl_ver} \ | |
--with-http_ssl_module \ | |
--add-module=../ngx_mruby \ | |
--prefix=$(pwd)/.install | |
make | |
make install | |
sed -e '/listen/ s/80/8080/' -i $(pwd)/.install/conf/nginx.conf | |
$(pwd)/.install/sbin/nginx -t |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
added
--with-openssl-src