diff --git a/util/configure b/util/configure index 59a8299..b9cfe25 100755 --- a/util/configure +++ b/util/configure @@ -176,6 +176,9 @@ for my $opt (@ARGV) { } elsif ($opt eq '--without-lua_resty_string') { $resty_opts{no_lua_resty_string} = 1; + } elsif ($opt eq '--without-lua_resty_websocket') { + $resty_opts{no_lua_resty_websocket} = 1; + } elsif ($opt eq '--without-lua_rds_parser') { $resty_opts{no_lua_rds_parser} = 1; @@ -780,7 +783,7 @@ _EOC_ "\$(MAKE) install$extra_opts"; } - for my $key (qw(dns memcached redis mysql string upload)) { + for my $key (qw(dns memcached redis mysql string upload websocket)) { unless ($opts->{"no_lua_resty_$key"}) { my $name = "lua-resty-$key"; my $dir = auto_complete $name; @@ -901,6 +904,7 @@ _EOC_ --without-lua_resty_mysql disable the lua-resty-mysql library --without-lua_resty_upload disable the lua-resty-upload library --without-lua_resty_string disable the lua-resty-string library + --without-lua_resty_websocket disable the lua-resty-websocket library --without-lua51 disable the bundled Lua 5.1 interpreter --with-lua51=PATH specify the external installation of Lua 5.1 by PATH diff --git a/util/mirror-tarballs b/util/mirror-tarballs index 054f81a..5d81f99 100755 --- a/util/mirror-tarballs +++ b/util/mirror-tarballs @@ -457,6 +457,13 @@ mv agentzh-lua-resty-string-* lua-resty-string-$ver || exit 1 ################################# +ver=0.01 +$root/util/get-tarball "http://github.com/agentzh/lua-resty-websocket/tarball/v$ver" -O "lua-resty-websocket-$ver.tar.gz" || exit 1 +tar -xzf lua-resty-websocket-$ver.tar.gz || exit 1 +mv agentzh-lua-resty-websocket-* lua-resty-websocket-$ver || exit 1 + +################################# + rm *.tar.gz cd ..