feature: bundled the lua-resty-signal and lua-resty-shell libraries.

This commit is contained in:
Thibault Charbonnier
2019-02-01 15:36:03 -08:00
committed by Thibault Charbonnier
parent 06468602b9
commit 2e7e51e649
3 changed files with 371 additions and 46 deletions

17
util/configure vendored
View File

@ -188,6 +188,7 @@ for my $opt (@ARGV) {
} elsif ($opt eq '--without-lua_tablepool') {
$resty_opts{no_lua_tablepool} = 1;
$resty_opts{no_lua_resty_shell} = 1;
} elsif ($opt eq '--without-lua_redis_parser') {
$resty_opts{no_lua_redis_parser} = 1;
@ -222,6 +223,13 @@ for my $opt (@ARGV) {
} elsif ($opt eq '--without-lua_resty_lrucache') {
$resty_opts{no_lua_resty_lrucache} = 1;
} elsif ($opt eq '--without-lua_resty_signal') {
$resty_opts{no_lua_resty_signal} = 1;
$resty_opts{no_lua_resty_shell} = 1;
} elsif ($opt eq '--without-lua_resty_shell') {
$resty_opts{no_lua_resty_shell} = 1;
} elsif ($opt eq '--without-lua_resty_core') {
$resty_opts{no_lua_resty_core} = 1;
@ -1113,7 +1121,8 @@ _EOC_
}
for my $key (qw(dns memcached redis mysql string upload websocket
lock lrucache core upstream_healthcheck limit_traffic))
lock lrucache core upstream_healthcheck limit_traffic
signal shell))
{
add_lua_lib($opts, "lua_resty", $key);
}
@ -1307,7 +1316,8 @@ _EOC_
$msg .= <<'_EOC_';
--without-lua_cjson disable the lua-cjson library
--without-lua_tablepool disable the lua-tablepool library
--without-lua_tablepool disable the lua-tablepool library (and by consequence, the
lua-resty-shell library)
--without-lua_redis_parser disable the lua-redis-parser library
--without-lua_rds_parser disable the lua-rds-parser library
--without-lua_resty_dns disable the lua-resty-dns library
@ -1322,6 +1332,9 @@ _EOC_
--without-lua_resty_limit_traffic disable the lua-resty-limit-traffic library
--without-lua_resty_lock disable the lua-resty-lock library
--without-lua_resty_lrucache disable the lua-resty-lrucache library
--without-lua_resty_signal disable the lua-resty-signal library (and by consequence,
the lua-resty-shell library)
--without-lua_resty_shell disable the lua-resty-shell library
--without-lua_resty_core disable the lua-resty-core library
--with-luajit enable and build the bundled LuaJIT 2.1 (the default)

View File

@ -861,6 +861,28 @@ cd ..
#################################
ver=0.02
$root/util/get-tarball "https://github.com/openresty/lua-resty-signal/tarball/v$ver" -O "lua-resty-signal-$ver.tar.gz" || exit 1
tar -xzf lua-resty-signal-$ver.tar.gz || exit 1
mv openresty-lua-resty-signal-* lua-resty-signal-$ver || exit 1
cd lua-resty-signal-$ver || exit 1
sed 's/\$(DESTDIR)\//$(DESTDIR)/g' Makefile > mk || exit 1
mv mk Makefile || exit 1
cd ..
#################################
ver=0.01
$root/util/get-tarball "https://github.com/openresty/lua-resty-shell/tarball/v$ver" -O "lua-resty-shell-$ver.tar.gz" || exit 1
tar -xzf lua-resty-shell-$ver.tar.gz || exit 1
mv openresty-lua-resty-shell-* lua-resty-shell-$ver || exit 1
cd lua-resty-shell-$ver || exit 1
sed 's/\$(DESTDIR)\//$(DESTDIR)/g' Makefile > mk || exit 1
mv mk Makefile || exit 1
cd ..
#################################
rm *.tar.gz
rm *.tar.bz2