mirror of
https://github.com/openresty/openresty.git
synced 2024-10-13 00:29:41 +00:00
feature: bundled and enabled ngx_stream_lua_module by default. this module is still experimental.
This commit is contained in:
16
util/configure
vendored
16
util/configure
vendored
@ -89,6 +89,7 @@ my @modules = (
|
||||
#[http_auth_request => 'auth-request-nginx-module'],
|
||||
[http_rds_json => 'rds-json-nginx-module'],
|
||||
[http_rds_csv => 'rds-csv-nginx-module'],
|
||||
[stream_lua => 'ngx_stream_lua'],
|
||||
);
|
||||
|
||||
my $without_resty_mods_regex;
|
||||
@ -96,7 +97,7 @@ my $without_resty_mods_regex;
|
||||
my $s = '^--without-('
|
||||
. join('|',
|
||||
map { $_->[0] }
|
||||
grep { @$_ == 2 && $_->[0] =~ /^http_/ }
|
||||
grep { @$_ == 2 && $_->[0] =~ /^(?:http|stream)_/ }
|
||||
@modules
|
||||
)
|
||||
. ')_module$';
|
||||
@ -111,7 +112,7 @@ my $with_resty_mods_regex;
|
||||
my $s = '^--with-('
|
||||
. join('|',
|
||||
map { $_->[0] }
|
||||
grep { @$_ == 3 && $_->[0] =~ /^http_/ }
|
||||
grep { @$_ == 3 && $_->[0] =~ /^(?:http|stream)_/ }
|
||||
@modules
|
||||
)
|
||||
. ')_module$';
|
||||
@ -472,14 +473,21 @@ _END_
|
||||
}
|
||||
}
|
||||
|
||||
if (!$opts->{no_stream_lua}) {
|
||||
push @ngx_opts, '--with-stream', '--with-stream_ssl_module';
|
||||
}
|
||||
|
||||
if (!$opts->{lua}
|
||||
&& !$opts->{lua_path}
|
||||
&& !$opts->{no_http_lua}
|
||||
&& (!$opts->{no_http_lua} || !$opts->{no_stream_lua})
|
||||
&& !$opts->{luajit_path})
|
||||
{
|
||||
#warn "HIT!";
|
||||
$opts->{luajit} = 1;
|
||||
}
|
||||
|
||||
#die "luajit: ", $opts->{luajit};
|
||||
|
||||
if ($opts->{luajit} && $opts->{luajit_path}) {
|
||||
die "--with-luajit and --with-luajit=DIR are mutually exclusive.\n";
|
||||
}
|
||||
@ -1117,7 +1125,7 @@ _EOC_
|
||||
|
||||
for my $mod (@modules) {
|
||||
my $name = $mod->[0];
|
||||
if ($name =~ /^http_/) {
|
||||
if ($name =~ /^(?:http|stream)_/) {
|
||||
if (@$mod == 2) {
|
||||
my $opt = " --without-${name}_module";
|
||||
$msg .= $opt;
|
||||
|
@ -485,6 +485,13 @@ mv openresty-lua-upstream-nginx-module-* ngx_lua_upstream-$ver || exit 1
|
||||
|
||||
#################################
|
||||
|
||||
ver=0.0.2
|
||||
$root/util/get-tarball "https://github.com/openresty/stream-lua-nginx-module/tarball/v$ver" -O stream-lua-nginx-module-$ver.tar.gz || exit 1
|
||||
tar -xzf stream-lua-nginx-module-$ver.tar.gz || exit 1
|
||||
mv openresty-stream-lua-nginx-module-* ngx_stream_lua-$ver || exit 1
|
||||
|
||||
#################################
|
||||
|
||||
ver=0.05
|
||||
$root/util/get-tarball "https://github.com/openresty/array-var-nginx-module/tarball/v$ver" -O array-var-nginx-module-$ver.tar.gz || exit 1
|
||||
tar -xzf array-var-nginx-module-$ver.tar.gz || exit 1
|
||||
@ -834,9 +841,11 @@ mkdir patches/ || exit 1
|
||||
cp $root/patches/openssl-1.0.2h-sess_set_get_cb_yield.patch patches/ || exit 1
|
||||
|
||||
restydoc_index=$bundle_dir/$resty_cli/bin/restydoc-index
|
||||
#restydoc_index=echo
|
||||
#restydoc_index=$HOME/git/resty-cli/bin/restydoc-index
|
||||
|
||||
nginx_xml2pod=$bundle_dir/$resty_cli/bin/nginx-xml2pod
|
||||
#nginx_xml2pod=echo
|
||||
#nginx_xml2pod=$HOME/git/resty-cli/bin/nginx-xml2pod
|
||||
|
||||
# generate restydoc index from nginx docs
|
||||
@ -852,6 +861,7 @@ else
|
||||
hg clone http://hg.nginx.org/nginx.org || exit 1
|
||||
fi
|
||||
cd nginx.org/ || exit 1
|
||||
hg purge --config extensions.purge= || exit 1
|
||||
find xml/en/docs -name 'ngx_http_api_module.xml' -delete
|
||||
$nginx_xml2pod xml/en/docs || exit 1
|
||||
cd $curdir || exit 1
|
||||
@ -868,6 +878,7 @@ $restydoc_index --outdir bundle $root/doc/LuaJIT-2.1 || exit 1
|
||||
# generate restydoc index from openresty docs
|
||||
|
||||
for indir in bundle/*/; do
|
||||
#echo "processing directory $indir ..."
|
||||
if [ "$indir" == "bundle/pod/" ]; then
|
||||
continue
|
||||
fi
|
||||
|
Reference in New Issue
Block a user