2011-02-16 08:25:19 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2011-06-10 13:31:20 +00:00
|
|
|
#root=$(readlink -f -- "$(dirname -- "$0")/..")
|
|
|
|
root=`perl -MCwd -e'print Cwd::abs_path(shift)' $(dirname -- "$0")/..`
|
2011-02-16 08:25:19 +00:00
|
|
|
|
2011-03-06 07:11:20 +00:00
|
|
|
. util/ver
|
|
|
|
|
2011-02-16 08:25:19 +00:00
|
|
|
name=ngx_openresty-$version
|
|
|
|
work=$root/work
|
|
|
|
|
|
|
|
if [ -z $debug ]; then
|
|
|
|
rm -rf $name || exit 1
|
|
|
|
mkdir -p $name/bundle || exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
cd $name/bundle || exit 1
|
|
|
|
|
|
|
|
if [ ! -d $work ]; then
|
|
|
|
mkdir $work || exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
ver="$main_ver"
|
|
|
|
$root/util/get-tarball "http://nginx.org/download/nginx-$ver.tar.gz" -O nginx-$ver.tar.gz || exit 1
|
|
|
|
tar -xzf nginx-$ver.tar.gz || exit 1
|
|
|
|
cd nginx-$ver || exit 1
|
|
|
|
|
|
|
|
# patch the patch
|
|
|
|
|
2012-03-21 13:29:32 +00:00
|
|
|
echo "INFO: applying the upstream-pipelining patch"
|
|
|
|
patch -p1 < $root/patches/nginx-$main_ver-upstream_pipelining.patch || exit 1
|
|
|
|
|
2011-02-16 08:25:19 +00:00
|
|
|
cp $root/patches/nginx-$main_ver-server_header.patch server_header.patch || exit 1
|
2012-01-15 10:11:30 +00:00
|
|
|
sed $"s/NGINX_VERSION \".unknown\"/NGINX_VERSION \".$minor_ver\"/" server_header.patch \
|
|
|
|
> server_header.patch.tmp && mv -f server_header.patch.tmp server_header.patch || exit 1
|
2011-02-16 08:25:19 +00:00
|
|
|
|
|
|
|
patch -p2 < server_header.patch || exit 1
|
|
|
|
|
2011-07-08 12:23:59 +00:00
|
|
|
#patch -p1 < $root/patches/nginx-$main_ver-redirect_memcpy_overlap.patch || exit 1
|
2011-02-16 08:25:19 +00:00
|
|
|
|
|
|
|
patch -p1 < $root/patches/nginx-$main_ver-no_error_pages.patch || exit 1
|
|
|
|
|
2011-06-27 12:00:19 +00:00
|
|
|
patch -p1 < $root/patches/nginx-$main_ver-no_Werror.patch || exit 1
|
|
|
|
|
2012-04-05 08:00:32 +00:00
|
|
|
#patch -p1 < $root/patches/nginx-$main_ver-epoll_check_stale_wev.patch || exit 1
|
2011-07-05 08:33:12 +00:00
|
|
|
|
2011-10-07 05:44:20 +00:00
|
|
|
#patch -p1 < $root/patches/nginx-$main_ver-request_body_in_single_buf.patch || exit 1
|
2011-07-05 08:33:12 +00:00
|
|
|
|
2012-02-20 08:04:30 +00:00
|
|
|
echo "INFO: applying the max_subrequests patch...";
|
|
|
|
patch -p1 < $root/patches/nginx-$main_ver-max_subrequests.patch || exit 1
|
|
|
|
|
2011-07-07 08:54:51 +00:00
|
|
|
patch -p1 -l < $root/patches/nginx-$main_ver-subrequest_loop.patch || exit 1
|
|
|
|
|
2011-09-14 08:01:01 +00:00
|
|
|
patch -p1 -l < $root/patches/nginx-$main_ver-gzip_empty_flush_buf.patch || exit 1
|
|
|
|
|
2012-04-05 08:00:32 +00:00
|
|
|
#patch -p1 < $root/patches/nginx-$main_ver-variable_header_ignore_no_hash.patch || exit 1
|
2011-10-07 05:44:20 +00:00
|
|
|
|
2011-10-13 13:25:15 +00:00
|
|
|
patch -p1 < $root/patches/nginx-$main_ver-named_location_clear_mods_ctx.patch || exit 1
|
|
|
|
|
2011-10-21 09:43:37 +00:00
|
|
|
patch -p1 < $root/patches/nginx-$main_ver-allow_request_body_updating.patch || exit 1
|
|
|
|
|
2011-11-10 08:25:02 +00:00
|
|
|
patch -p1 < $root/patches/nginx-$main_ver-log_escape_non_ascii.patch || exit 1
|
|
|
|
|
2012-05-02 14:11:27 +00:00
|
|
|
echo applying reset_wev_handler_in_named_locations.patch ...
|
|
|
|
patch -p1 < $root/patches/nginx-$main_ver-reset_wev_handler_in_named_locations.patch || exit 1
|
|
|
|
|
2012-04-05 08:00:32 +00:00
|
|
|
#echo "INFO: applying null-character-fixes patch"
|
|
|
|
#patch -p0 < $root/patches/nginx-$main_ver-null_character_fixes.patch || exit 1
|
2012-03-16 02:37:53 +00:00
|
|
|
|
2011-12-24 16:02:27 +00:00
|
|
|
#patch -p1 < $root/patches/nginx-$main_ver-gzip_ok_invalid_read_fix.patch || exit 1
|
2011-12-22 03:39:27 +00:00
|
|
|
|
2011-02-16 08:25:19 +00:00
|
|
|
rm -f *.patch || exit 1
|
|
|
|
|
|
|
|
cd .. || exit 1
|
|
|
|
|
2011-08-05 02:04:23 +00:00
|
|
|
cp $root/patches/nginx-$main_ver-no_pool.patch ./nginx-no_pool.patch || exit 1
|
2012-01-15 10:11:30 +00:00
|
|
|
sed $"s/NGINX_VERSION \".unknown/NGINX_VERSION \".$minor_ver/" \
|
|
|
|
./nginx-no_pool.patch > ./nginx-no_pool.patch.tmp && \
|
|
|
|
mv ./nginx-no_pool.patch.tmp ./nginx-no_pool.patch \
|
|
|
|
|| exit 1
|
2011-08-05 02:04:23 +00:00
|
|
|
rm -rf no-pool-nginx-$ver
|
|
|
|
|
2012-03-21 12:52:27 +00:00
|
|
|
ver=0.38rc2
|
2011-02-16 08:25:19 +00:00
|
|
|
$root/util/get-tarball "http://github.com/agentzh/echo-nginx-module/tarball/v$ver" -O echo-nginx-module-$ver.tar.gz || exit 1
|
2011-08-05 02:04:23 +00:00
|
|
|
tar -xzf echo-nginx-module-$ver.tar.gz || exit 1
|
|
|
|
mv agentzh-echo-nginx-module-* echo-nginx-module-$ver || exit 1
|
2011-02-16 08:25:19 +00:00
|
|
|
|
2012-02-15 09:45:13 +00:00
|
|
|
ver=0.03rc9
|
2011-02-16 08:25:19 +00:00
|
|
|
$root/util/get-tarball "http://github.com/agentzh/xss-nginx-module/tarball/v$ver" -O xss-nginx-module-$ver.tar.gz || exit 1
|
|
|
|
tar -xzf xss-nginx-module-$ver.tar.gz || exit 1
|
|
|
|
mv agentzh-xss-nginx-module-* xss-nginx-module-$ver || exit 1
|
|
|
|
|
2011-03-10 09:07:41 +00:00
|
|
|
ver=0.2.17
|
2011-02-16 08:25:19 +00:00
|
|
|
$root/util/get-tarball "http://github.com/simpl/ngx_devel_kit/tarball/v$ver" -O ngx_devel_kit-$ver.tar.gz
|
|
|
|
tar -xzf ngx_devel_kit-$ver.tar.gz || exit 1
|
|
|
|
mv simpl-ngx_devel_kit-* ngx_devel_kit-$ver || exit 1
|
|
|
|
|
2012-05-10 07:31:10 +00:00
|
|
|
ver=0.22rc8
|
2011-02-16 08:25:19 +00:00
|
|
|
$root/util/get-tarball "http://github.com/agentzh/set-misc-nginx-module/tarball/v$ver" -O set-misc-nginx-module-$ver.tar.gz || exit 1
|
|
|
|
tar -xzf set-misc-nginx-module-$ver.tar.gz || exit 1
|
|
|
|
mv agentzh-set-misc-nginx-module-* set-misc-nginx-module-$ver || exit 1
|
|
|
|
|
2012-04-17 02:17:23 +00:00
|
|
|
ver=0.12rc8
|
2011-02-16 08:25:19 +00:00
|
|
|
$root/util/get-tarball "http://github.com/agentzh/rds-json-nginx-module/tarball/v$ver" -O rds-json-nginx-module-$ver.tar.gz || exit 1
|
|
|
|
tar -xzf rds-json-nginx-module-$ver.tar.gz || exit 1
|
|
|
|
mv agentzh-rds-json-nginx-module-* rds-json-nginx-module-$ver || exit 1
|
|
|
|
|
2012-02-15 09:45:13 +00:00
|
|
|
ver=0.05rc1
|
2011-08-31 05:12:44 +00:00
|
|
|
$root/util/get-tarball "http://github.com/agentzh/rds-csv-nginx-module/tarball/v$ver" -O rds-csv-nginx-module-$ver.tar.gz || exit 1
|
|
|
|
tar -xzf rds-csv-nginx-module-$ver.tar.gz || exit 1
|
|
|
|
mv agentzh-rds-csv-nginx-module-* rds-csv-nginx-module-$ver || exit 1
|
|
|
|
|
2012-01-17 06:55:15 +00:00
|
|
|
ver=0.17rc1
|
2011-02-16 08:25:19 +00:00
|
|
|
$root/util/get-tarball "http://github.com/agentzh/headers-more-nginx-module/tarball/v$ver" -O headers-more-nginx-module-$ver.tar.gz || exit 1
|
|
|
|
tar -xzf headers-more-nginx-module-$ver.tar.gz || exit 1
|
|
|
|
mv agentzh-headers-more-nginx-module-* headers-more-nginx-module-$ver || exit 1
|
|
|
|
|
|
|
|
#################################
|
|
|
|
|
2012-04-29 02:30:17 +00:00
|
|
|
ver=0.1.2rc7
|
2011-02-16 08:25:19 +00:00
|
|
|
$root/util/get-tarball "http://github.com/chaoslawful/drizzle-nginx-module/tarball/v$ver" -O drizzle-nginx-module-$ver.tar.gz || exit 1
|
|
|
|
tar -xzf drizzle-nginx-module-$ver.tar.gz || exit 1
|
|
|
|
mv chaoslawful-drizzle-nginx-module-* drizzle-nginx-module-$ver || exit 1
|
|
|
|
|
|
|
|
#################################
|
|
|
|
|
2012-05-11 10:58:50 +00:00
|
|
|
ver=0.5.0rc26
|
2011-02-16 08:25:19 +00:00
|
|
|
$root/util/get-tarball "http://github.com/chaoslawful/lua-nginx-module/tarball/v$ver" -O lua-nginx-module-$ver.tar.gz || exit 1
|
|
|
|
tar -xzf lua-nginx-module-$ver.tar.gz || exit 1
|
2011-03-07 11:32:13 +00:00
|
|
|
mv chaoslawful-lua-nginx-module-* ngx_lua-$ver || exit 1
|
2011-02-16 08:25:19 +00:00
|
|
|
|
|
|
|
#################################
|
|
|
|
|
2011-07-26 03:56:29 +00:00
|
|
|
ver=0.03rc1
|
2011-02-16 08:25:19 +00:00
|
|
|
$root/util/get-tarball "http://github.com/agentzh/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
|
|
|
|
mv agentzh-array-var-nginx-module-* array-var-nginx-module-$ver || exit 1
|
|
|
|
|
|
|
|
#################################
|
|
|
|
|
2012-01-17 06:55:15 +00:00
|
|
|
ver=0.13rc3
|
2011-02-16 08:25:19 +00:00
|
|
|
$root/util/get-tarball "http://github.com/agentzh/memc-nginx-module/tarball/v$ver" -O memc-nginx-module-$ver.tar.gz || exit 1
|
|
|
|
tar -xzf memc-nginx-module-$ver.tar.gz || exit 1
|
|
|
|
mv agentzh-memc-nginx-module-* memc-nginx-module-$ver || exit 1
|
|
|
|
|
|
|
|
#################################
|
|
|
|
|
2012-05-11 10:58:50 +00:00
|
|
|
ver=0.13rc7
|
2011-02-16 08:25:19 +00:00
|
|
|
$root/util/get-tarball "http://github.com/agentzh/srcache-nginx-module/tarball/v$ver" -O srcache-nginx-module-$ver.tar.gz || exit 1
|
|
|
|
tar -xzf srcache-nginx-module-$ver.tar.gz || exit 1
|
|
|
|
mv agentzh-srcache-nginx-module-* srcache-nginx-module-$ver || exit 1
|
|
|
|
|
|
|
|
#################################
|
|
|
|
|
2011-07-26 03:56:29 +00:00
|
|
|
ver=0.07rc5
|
2011-02-16 08:25:19 +00:00
|
|
|
$root/util/get-tarball "http://github.com/calio/form-input-nginx-module/tarball/v$ver" -O form-input-nginx-module-$ver.tar.gz || exit 1
|
|
|
|
tar -xzf form-input-nginx-module-$ver.tar.gz || exit 1
|
|
|
|
mv calio-form-input-nginx-module-* form-input-nginx-module-$ver || exit 1
|
|
|
|
|
|
|
|
#################################
|
|
|
|
|
2012-02-15 09:45:13 +00:00
|
|
|
ver=0.10rc7
|
2011-02-16 08:25:19 +00:00
|
|
|
$root/util/get-tarball "http://github.com/calio/iconv-nginx-module/tarball/v$ver" -O iconv-nginx-module-$ver.tar.gz || exit 1
|
|
|
|
tar -xzf iconv-nginx-module-$ver.tar.gz || exit 1
|
|
|
|
mv calio-iconv-nginx-module-* iconv-nginx-module-$ver || exit 1
|
|
|
|
|
|
|
|
#################################
|
|
|
|
|
2012-01-12 07:19:27 +00:00
|
|
|
ver=0.02
|
2011-02-16 08:25:19 +00:00
|
|
|
$root/util/get-tarball "http://github.com/agentzh/encrypted-session-nginx-module/tarball/v$ver" -O encrypted-session-nginx-module-$ver.tar.gz || exit 1
|
|
|
|
tar -xzf encrypted-session-nginx-module-$ver.tar.gz || exit 1
|
|
|
|
mv agentzh-encrypted-session-nginx-module-* encrypted-session-nginx-module-$ver || exit 1
|
|
|
|
|
|
|
|
#################################
|
|
|
|
|
|
|
|
|
2012-01-09 10:07:29 +00:00
|
|
|
ver=0.7
|
2011-02-16 08:25:19 +00:00
|
|
|
$root/util/get-tarball "http://mdounin.ru/files/ngx_http_upstream_keepalive-$ver.tar.gz" -O upstream_keepalive-$ver.tar.gz || exit 1
|
|
|
|
tar -xzf upstream_keepalive-$ver.tar.gz || exit 1
|
|
|
|
mv ngx_http_upstream_keepalive-* upstream-keepalive-nginx-module-$ver || exit 1
|
|
|
|
|
|
|
|
#################################
|
|
|
|
|
|
|
|
ver=0.2
|
2011-03-07 09:50:56 +00:00
|
|
|
$root/util/get-tarball "http://mdounin.ru/files/ngx_http_auth_request_module-$ver.tar.gz" -O auth_request-$ver.tar.gz || exit 1
|
2011-02-16 08:25:19 +00:00
|
|
|
tar -xzf auth_request-$ver.tar.gz || exit 1
|
|
|
|
mv ngx_http_auth_request_module-* auth-request-nginx-module-$ver || exit 1
|
|
|
|
|
|
|
|
#################################
|
|
|
|
|
2012-02-02 04:41:20 +00:00
|
|
|
ver=0.9
|
2011-02-16 09:30:31 +00:00
|
|
|
$root/util/get-tarball "https://github.com/FRiCKLE/ngx_postgres/tarball/$ver" -O ngx_postgres-$ver.tar.gz || exit 1
|
2011-02-16 08:31:09 +00:00
|
|
|
tar -xzf ngx_postgres-$ver.tar.gz || exit 1
|
|
|
|
mv FRiCKLE-ngx_postgres-* ngx_postgres-$ver || exit 1
|
2011-02-16 08:25:19 +00:00
|
|
|
|
|
|
|
#################################
|
|
|
|
|
2012-02-08 09:11:33 +00:00
|
|
|
ver=0.2rc1
|
2012-02-07 12:17:20 +00:00
|
|
|
$root/util/get-tarball "https://github.com/FRiCKLE/ngx_coolkit/tarball/$ver" -O ngx_coolkit-$ver.tar.gz || exit 1
|
|
|
|
tar -xzf ngx_coolkit-$ver.tar.gz || exit 1
|
|
|
|
mv FRiCKLE-ngx_coolkit-* ngx_coolkit-$ver || exit 1
|
|
|
|
|
|
|
|
#################################
|
|
|
|
|
2012-03-01 07:01:18 +00:00
|
|
|
ver=0.08rc4
|
2011-03-10 10:15:39 +00:00
|
|
|
$root/util/get-tarball "http://github.com/agentzh/redis2-nginx-module/tarball/v$ver" -O redis2-nginx-module-$ver.tar.gz || exit 1
|
|
|
|
tar -xzf redis2-nginx-module-$ver.tar.gz || exit 1
|
|
|
|
mv agentzh-redis2-nginx-module-* redis2-nginx-module-$ver || exit 1
|
|
|
|
|
|
|
|
#################################
|
|
|
|
|
2011-02-16 09:30:31 +00:00
|
|
|
ver=5.1.4
|
|
|
|
$root/util/get-tarball "http://www.lua.org/ftp/lua-$ver.tar.gz" -O "lua-$ver.tar.gz" || exit 1
|
|
|
|
tar -xzf lua-$ver.tar.gz || exit 1
|
|
|
|
|
2012-03-11 09:41:07 +00:00
|
|
|
$root/util/get-tarball "http://agentzh.org/misc/nginx/patch-lua-$ver-4" -O "patch-lua-$ver-4" || exit 1
|
2011-02-16 09:30:31 +00:00
|
|
|
|
|
|
|
cd lua-$ver/src || exit 1
|
2011-11-03 07:33:36 +00:00
|
|
|
patch -p0 < ../../patch-lua-$ver-4 || exit 1
|
2011-02-16 09:30:31 +00:00
|
|
|
cd ../.. || exit 1
|
|
|
|
|
2011-11-03 07:33:36 +00:00
|
|
|
rm "patch-lua-$ver-4" || exit 1
|
2011-02-16 09:30:31 +00:00
|
|
|
|
2011-03-09 13:01:41 +00:00
|
|
|
cp $root/patches/lua-$ver-makefile_install_fix.patch lua-makefile-fix.patch || exit 1
|
|
|
|
|
|
|
|
patch -p0 < lua-makefile-fix.patch || exit 1
|
|
|
|
|
2011-07-25 07:50:13 +00:00
|
|
|
rm lua-makefile-fix.patch || exit 1
|
2011-03-09 13:01:41 +00:00
|
|
|
|
2011-02-16 09:30:31 +00:00
|
|
|
#################################
|
|
|
|
|
2011-12-22 03:39:27 +00:00
|
|
|
ver=2.0.0-beta9
|
2011-02-16 09:33:55 +00:00
|
|
|
$root/util/get-tarball "http://luajit.org/download/LuaJIT-$ver.tar.gz" -O "LuaJIT-$ver.tar.gz" || exit 1
|
|
|
|
tar -xzf LuaJIT-$ver.tar.gz || exit 1
|
|
|
|
|
2011-12-25 12:40:19 +00:00
|
|
|
cd LuaJIT-$ver || exit 1;
|
2012-02-24 06:49:55 +00:00
|
|
|
$root/util/get-tarball http://luajit.org/download/beta9_hotfix1.patch -O beta9_hotfix1.patch
|
|
|
|
patch -p1 < beta9_hotfix1.patch || exit 1
|
|
|
|
rm beta9_hotfix1.patch || exit 1
|
|
|
|
|
2011-12-25 12:40:19 +00:00
|
|
|
cp $root/misc/unwind-generic.h ./unwind.h || exit 1
|
|
|
|
cd ..
|
2011-05-26 07:36:51 +00:00
|
|
|
|
2011-02-16 09:33:55 +00:00
|
|
|
#################################
|
|
|
|
|
2011-09-19 04:33:03 +00:00
|
|
|
ver=1.0.3
|
2011-12-12 08:03:37 +00:00
|
|
|
$root/util/get-tarball "http://www.kyne.com.au/~mark/software/old/lua-cjson-$ver.tar.gz" -O "lua-cjson-$ver.tar.gz" || exit 1
|
2011-08-09 15:46:50 +00:00
|
|
|
tar -xzf lua-cjson-$ver.tar.gz || exit 1
|
2011-08-10 02:44:17 +00:00
|
|
|
cd lua-cjson-$ver || exit 1
|
2011-09-19 04:33:03 +00:00
|
|
|
#patch -p1 < $root/patches/lua_cjson-$ver-array_detection_fix.patch || exit 1
|
2011-08-10 02:44:17 +00:00
|
|
|
cd ..
|
2011-08-09 15:46:50 +00:00
|
|
|
|
|
|
|
#################################
|
|
|
|
|
2012-03-01 07:50:25 +00:00
|
|
|
ver=0.09rc7
|
2011-08-11 02:04:00 +00:00
|
|
|
$root/util/get-tarball "http://github.com/agentzh/lua-redis-parser/tarball/v$ver" -O "lua-redis-parser-$ver.tar.gz" || exit 1
|
|
|
|
tar -xzf lua-redis-parser-$ver.tar.gz || exit 1
|
|
|
|
mv agentzh-lua-redis-parser-* lua-redis-parser-$ver || exit 1
|
|
|
|
|
|
|
|
#################################
|
|
|
|
|
2011-11-07 10:28:41 +00:00
|
|
|
ver=0.04
|
2011-08-31 05:57:49 +00:00
|
|
|
$root/util/get-tarball "http://github.com/agentzh/lua-rds-parser/tarball/v$ver" -O "lua-rds-parser-$ver.tar.gz" || exit 1
|
|
|
|
tar -xzf lua-rds-parser-$ver.tar.gz || exit 1
|
|
|
|
mv agentzh-lua-rds-parser-* lua-rds-parser-$ver || exit 1
|
|
|
|
|
|
|
|
#################################
|
|
|
|
|
2012-02-29 07:16:10 +00:00
|
|
|
ver=0.06
|
2012-02-28 14:04:31 +00:00
|
|
|
$root/util/get-tarball "http://github.com/agentzh/lua-resty-memcached/tarball/v$ver" -O "lua-resty-memcached-$ver.tar.gz" || exit 1
|
|
|
|
tar -xzf lua-resty-memcached-$ver.tar.gz || exit 1
|
|
|
|
mv agentzh-lua-resty-memcached-* lua-resty-memcached-$ver || exit 1
|
|
|
|
|
|
|
|
#################################
|
|
|
|
|
2012-03-11 10:50:52 +00:00
|
|
|
ver=0.08
|
2012-02-28 14:15:29 +00:00
|
|
|
$root/util/get-tarball "http://github.com/agentzh/lua-resty-redis/tarball/v$ver" -O "lua-resty-redis-$ver.tar.gz" || exit 1
|
|
|
|
tar -xzf lua-resty-redis-$ver.tar.gz || exit 1
|
|
|
|
mv agentzh-lua-resty-redis-* lua-resty-redis-$ver || exit 1
|
|
|
|
|
|
|
|
#################################
|
|
|
|
|
2012-04-05 08:00:32 +00:00
|
|
|
ver=0.07
|
2012-02-28 14:34:40 +00:00
|
|
|
$root/util/get-tarball "http://github.com/agentzh/lua-resty-mysql/tarball/v$ver" -O "lua-resty-mysql-$ver.tar.gz" || exit 1
|
|
|
|
tar -xzf lua-resty-mysql-$ver.tar.gz || exit 1
|
|
|
|
mv agentzh-lua-resty-mysql-* lua-resty-mysql-$ver || exit 1
|
|
|
|
|
|
|
|
#################################
|
|
|
|
|
2012-02-29 07:16:10 +00:00
|
|
|
ver=0.02
|
2012-02-28 14:34:40 +00:00
|
|
|
$root/util/get-tarball "http://github.com/agentzh/lua-resty-upload/tarball/v$ver" -O "lua-resty-upload-$ver.tar.gz" || exit 1
|
|
|
|
tar -xzf lua-resty-upload-$ver.tar.gz || exit 1
|
|
|
|
mv agentzh-lua-resty-upload-* lua-resty-upload-$ver || exit 1
|
|
|
|
|
|
|
|
#################################
|
|
|
|
|
2012-03-05 15:09:20 +00:00
|
|
|
ver=0.05
|
2012-02-28 14:34:40 +00:00
|
|
|
$root/util/get-tarball "http://github.com/agentzh/lua-resty-string/tarball/v$ver" -O "lua-resty-string-$ver.tar.gz" || exit 1
|
|
|
|
tar -xzf lua-resty-string-$ver.tar.gz || exit 1
|
|
|
|
mv agentzh-lua-resty-string-* lua-resty-string-$ver || exit 1
|
|
|
|
|
|
|
|
#################################
|
|
|
|
|
2011-02-16 08:25:19 +00:00
|
|
|
rm *.tar.gz
|
|
|
|
|
|
|
|
cd ..
|
|
|
|
cp $root/util/configure ./
|
2011-02-16 08:37:14 +00:00
|
|
|
cp $root/README ./
|
2011-08-08 07:56:33 +00:00
|
|
|
cp $root/util/install bundle/
|
2011-02-16 08:25:19 +00:00
|
|
|
|
|
|
|
cd $root
|
|
|
|
|
2012-03-22 08:09:44 +00:00
|
|
|
tar cf $name.tar $name
|
|
|
|
gzip -f --best $name.tar
|
2011-02-16 08:25:19 +00:00
|
|
|
|