bundled new library lua-resty-websocket.

This commit is contained in:
Yichun Zhang (agentzh) 2013-09-27 15:37:00 -07:00
parent 457d0526ea
commit 937985fc03
2 changed files with 12 additions and 1 deletions

6
util/configure vendored
View File

@ -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

View File

@ -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 ..