Compare commits

..

21 Commits

Author SHA1 Message Date
46ec035831 released ngx_openresty 0.8.54.6. 2011-06-15 12:28:18 +08:00
7d6c400d3d upgraded ngx_lua to v0.1.6rc12 and ngx_drizzle to v0.0.15rc10; also released ngx_openresty v0.8.54.6rc5. 2011-06-14 17:12:33 +08:00
7df5c5c851 fixed a test in sanity.t. 2011-06-12 11:01:38 +08:00
8fa9eb77bd upgraded ngx_lua to 0.1.6rc11 and ngx_redis2 to 0.07rc2; also released ngx_openresty 0.8.54.6rc4. 2011-06-12 11:00:24 +08:00
cd77c676c3 version 0.8.54.6rc3. 2011-06-12 10:25:53 +08:00
3702d98b4a Merge branch 'master' of github.com:agentzh/ngx_openresty 2011-06-10 21:31:40 +08:00
04709aa2e6 ensure that ldconfig is in PATH on linux *and* luajit is enabled. 2011-06-10 21:31:20 +08:00
70d58760ef upgraded ngx_lua to 0.1.6rc10; marked ngx_openresty 0.8.54.6rc2. 2011-05-27 17:03:59 +08:00
942411c114 emphasized that you need to add the path of your "ldconfig" utility to your PATH env if you want to enable luajit. 2011-05-26 15:47:21 +08:00
b644d3d531 now we create symlinks to luajit library files. 2011-05-26 15:36:51 +08:00
087ec653a5 documented the autoconf.err file for debugging ./configure issues. 2011-05-26 15:26:27 +08:00
4df2272a77 documented that for certain Debian systems, it is required to specify --with-ld-opt="-ldl" when luajit is enabled. 2011-05-26 15:23:30 +08:00
73f13092eb broke lines that are too long in README. 2011-05-26 14:43:11 +08:00
777da53f2d upgraded ngx_lua to 0.1.6rc9 and ngx_echo to 0.36rc3; released ngx_openresty 0.8.54.5. 2011-05-25 14:37:33 +08:00
f43134c1fd release 0.8.54.4. 2011-05-13 15:56:51 +08:00
400de3c50d upgraded LuaJIT2.0, ngx_lua, ngx_headers_more, and ngx_srcache; also bumped the bundle version to 0.8.54.4rc3. 2011-05-13 15:37:45 +08:00
6271d106b4 added a note for starting the ngx_openresty server. 2011-05-12 18:06:02 +08:00
9415dafc3f upgraded ngx_lua to 0.1.16rc4 and ngx_redis2 to 0.07rc1. 2011-04-07 11:48:49 +08:00
1f051ab43f mentions that make -jN may not work at least for FreeBSD's bsdmake. 2011-04-02 15:21:52 +08:00
86024a6988 upgraded ngx_headers_more to 0.15rc1 and also updated version to 0.8.54.4rc1. 2011-03-29 18:39:19 +08:00
478518fe08 added a quick note to fedora/redhat users. 2011-03-29 17:57:25 +08:00
8 changed files with 217 additions and 122 deletions

61
README
View File

@ -15,6 +15,24 @@ A quick note to Debian and Ubuntu users:
apt-get install libreadline-dev libpcre3-dev libssl-dev perl apt-get install libreadline-dev libpcre3-dev libssl-dev perl
If you want to enable LuaJIT, ensure that your system's "ldconfig"
utility is in your PATH environment. You can check out
the path of your "ldconfig" by using the "whereis" command:
whereis ldconfig
On Debian systems, it's usually /sbin, and you just need to add
it to your PATH this way:
PATH=/sbin:$PATH
export PATH
A quick note to Fedora/RedHat users:
You're recommended to install the following packages using yum before
installing this bundle:
yum install readline-devel pcre-devel openssl-devel
A quick note to Mac OS X (Darwin) users: A quick note to Mac OS X (Darwin) users:
You're recommended to install prerequisites PCRE using some package You're recommended to install prerequisites PCRE using some package
management tool, like Homebrew: management tool, like Homebrew:
@ -28,11 +46,11 @@ in your PATH environment, and then follow the following steps:
1. download the latest ngx_openresty tarball can be downloaded from 1. download the latest ngx_openresty tarball can be downloaded from
http://agentzh.org/misc/nginx/ngx_openresty-0.8.54.3.tar.gz http://agentzh.org/misc/nginx/ngx_openresty-0.8.54.6.tar.gz
we will eventually migrate to the openresty.org domain. we will eventually migrate to the openresty.org domain.
2. and then enter the ngx_openresty-0.8.54.3/ directory, 2. and then enter the ngx_openresty-0.8.54.6/ directory,
and type the following command to configure: and type the following command to configure:
./configure ./configure
@ -52,15 +70,30 @@ in your PATH environment, and then follow the following steps:
so when it complaints about OpenSSL and you have indeed so when it complaints about OpenSSL and you have indeed
already installed it, specify the --with-ld-opt='-L/lib' option. already installed it, specify the --with-ld-opt='-L/lib' option.
Errors in running the ./configure script can be found in this file:
build/nginx-0.8.54/objs/autoconf.err
3. build everything locally 3. build everything locally
make make
Note that, "make -jN" may not work at least for FreeBSD's "bsdmake"; use
gmake (i.e., GNU make) instead or avoid using the jobserver feature with
your make.
4. install ngx_openresty into the target directory that you specified by 4. install ngx_openresty into the target directory that you specified by
the --prefix option in Step 2. the --prefix option in Step 2.
make install make install
Then you can start your server this way:
/usr/local/openresty/nginx/sbin/nginx -p /path/to/your/server/root \
-c /path/to/your/nginx.conf
assuming you're using the default "prefix", i.e., /usr/local/openresty, in Step 2.
For bundle maintainers: For bundle maintainers:
The bundle's source is at the following git repository: The bundle's source is at the following git repository:
@ -73,31 +106,39 @@ For bundle maintainers:
at the top of the bundle source tree. at the top of the bundle source tree.
The following packages are bundled in the 0.8.54.3 release: The following packages are bundled in the 0.8.54.6 release:
LuaJIT-2.0.0-beta6 LuaJIT-2.0.0-beta7
array-var-nginx-module-0.02 array-var-nginx-module-0.02
auth-request-nginx-module-0.2 auth-request-nginx-module-0.2
drizzle-nginx-module-0.0.15rc9 drizzle-nginx-module-0.0.15rc10
echo-nginx-module-0.36rc2 echo-nginx-module-0.36rc3
encrypted-session-nginx-module-0.01 encrypted-session-nginx-module-0.01
form-input-nginx-module-0.07rc4 form-input-nginx-module-0.07rc4
headers-more-nginx-module-0.14 headers-more-nginx-module-0.15rc1
iconv-nginx-module-0.10rc3 iconv-nginx-module-0.10rc3
libdrizzle-0.8 libdrizzle-0.8
lua-5.1.4 lua-5.1.4
memc-nginx-module-0.12rc1 memc-nginx-module-0.12rc1
nginx-0.8.54 nginx-0.8.54
ngx_devel_kit-0.2.17 ngx_devel_kit-0.2.17
ngx_lua-0.1.6rc3 ngx_lua-0.1.6rc12
ngx_postgres-0.8 ngx_postgres-0.8
rds-json-nginx-module-0.11rc2 rds-json-nginx-module-0.11rc2
redis2-nginx-module-0.06 redis2-nginx-module-0.07rc2
set-misc-nginx-module-0.21 set-misc-nginx-module-0.21
srcache-nginx-module-0.12rc2 srcache-nginx-module-0.12rc4
upstream-keepalive-nginx-module-0.3 upstream-keepalive-nginx-module-0.3
xss-nginx-module-0.03rc2 xss-nginx-module-0.03rc2
REPORT BUGS
You're very welcome to report issues on GitHub:
https://github.com/agentzh/ngx_openresty/issues
COPYRIGHT & LICENSE
The bundle itself is licensed under the 2-clause BSD license. The bundle itself is licensed under the 2-clause BSD license.
Copyright (c) 2011, Taobao Inc., Alibaba Group ( Copyright (c) 2011, Taobao Inc., Alibaba Group (

View File

@ -0,0 +1,17 @@
--- LuaJIT-2.0.0-beta7/Makefile 2011-05-05 22:30:00.000000000 +0800
+++ LuaJIT-2.0.0-beta7-patched/Makefile 2011-05-26 15:32:02.888893148 +0800
@@ -113,13 +113,8 @@
$(RM) $(FILE_PC).tmp
cd src && $(INSTALL_F) $(FILES_INC) $(INSTALL_INC)
cd lib && $(INSTALL_F) $(FILES_JITLIB) $(INSTALL_JITLIB)
+ $(SYMLINK) $(INSTALL_TNAME) $(INSTALL_TSYM)
@echo "==== Successfully installed LuaJIT $(VERSION) to $(PREFIX) ===="
- @echo ""
- @echo "Note: the beta releases deliberately do NOT install a symlink for luajit"
- @echo "You can do this now by running this command (with sudo):"
- @echo ""
- @echo " $(SYMLINK) $(INSTALL_TNAME) $(INSTALL_TSYM)"
- @echo ""
##############################################################################

View File

@ -194,19 +194,19 @@ cd ..
cd nginx-0.8.54 cd nginx-0.8.54
./configure --prefix=/usr/local/openresty/nginx \ ./configure --prefix=/usr/local/openresty/nginx \
--with-cc-opt='-O2' \ --with-cc-opt='-O2' \
--add-module=../echo-nginx-module-0.36rc2 \ --add-module=../echo-nginx-module-0.36rc3 \
--add-module=../xss-nginx-module-0.03rc2 \ --add-module=../xss-nginx-module-0.03rc2 \
--add-module=../ngx_devel_kit-0.2.17 \ --add-module=../ngx_devel_kit-0.2.17 \
--add-module=../set-misc-nginx-module-0.21 \ --add-module=../set-misc-nginx-module-0.21 \
--add-module=../form-input-nginx-module-0.07rc4 \ --add-module=../form-input-nginx-module-0.07rc4 \
--add-module=../encrypted-session-nginx-module-0.01 \ --add-module=../encrypted-session-nginx-module-0.01 \
--add-module=../drizzle-nginx-module-0.0.15rc9 \ --add-module=../drizzle-nginx-module-0.0.15rc10 \
--add-module=../ngx_lua-0.1.6rc3 \ --add-module=../ngx_lua-0.1.6rc12 \
--add-module=../headers-more-nginx-module-0.14 \ --add-module=../headers-more-nginx-module-0.15rc1 \
--add-module=../srcache-nginx-module-0.12rc2 \ --add-module=../srcache-nginx-module-0.12rc4 \
--add-module=../array-var-nginx-module-0.02 \ --add-module=../array-var-nginx-module-0.02 \
--add-module=../memc-nginx-module-0.12rc1 \ --add-module=../memc-nginx-module-0.12rc1 \
--add-module=../redis2-nginx-module-0.06 \ --add-module=../redis2-nginx-module-0.07rc2 \
--add-module=../upstream-keepalive-nginx-module-0.3 \ --add-module=../upstream-keepalive-nginx-module-0.3 \
--add-module=../auth-request-nginx-module-0.2 \ --add-module=../auth-request-nginx-module-0.2 \
--add-module=../rds-json-nginx-module-0.11rc2 \ --add-module=../rds-json-nginx-module-0.11rc2 \
@ -254,19 +254,19 @@ cd nginx-0.8.54
./configure --prefix=/usr/local/openresty/nginx \ ./configure --prefix=/usr/local/openresty/nginx \
--with-debug \ --with-debug \
--with-cc-opt='-O0' \ --with-cc-opt='-O0' \
--add-module=../echo-nginx-module-0.36rc2 \ --add-module=../echo-nginx-module-0.36rc3 \
--add-module=../xss-nginx-module-0.03rc2 \ --add-module=../xss-nginx-module-0.03rc2 \
--add-module=../ngx_devel_kit-0.2.17 \ --add-module=../ngx_devel_kit-0.2.17 \
--add-module=../set-misc-nginx-module-0.21 \ --add-module=../set-misc-nginx-module-0.21 \
--add-module=../form-input-nginx-module-0.07rc4 \ --add-module=../form-input-nginx-module-0.07rc4 \
--add-module=../encrypted-session-nginx-module-0.01 \ --add-module=../encrypted-session-nginx-module-0.01 \
--add-module=../drizzle-nginx-module-0.0.15rc9 \ --add-module=../drizzle-nginx-module-0.0.15rc10 \
--add-module=../ngx_lua-0.1.6rc3 \ --add-module=../ngx_lua-0.1.6rc12 \
--add-module=../headers-more-nginx-module-0.14 \ --add-module=../headers-more-nginx-module-0.15rc1 \
--add-module=../srcache-nginx-module-0.12rc2 \ --add-module=../srcache-nginx-module-0.12rc4 \
--add-module=../array-var-nginx-module-0.02 \ --add-module=../array-var-nginx-module-0.02 \
--add-module=../memc-nginx-module-0.12rc1 \ --add-module=../memc-nginx-module-0.12rc1 \
--add-module=../redis2-nginx-module-0.06 \ --add-module=../redis2-nginx-module-0.07rc2 \
--add-module=../upstream-keepalive-nginx-module-0.3 \ --add-module=../upstream-keepalive-nginx-module-0.3 \
--add-module=../auth-request-nginx-module-0.2 \ --add-module=../auth-request-nginx-module-0.2 \
--add-module=../rds-json-nginx-module-0.11rc2 \ --add-module=../rds-json-nginx-module-0.11rc2 \
@ -295,7 +295,7 @@ clean:
--- cmd: ./configure --with-http_ssl_module --without-http_ssl_module --- cmd: ./configure --with-http_ssl_module --without-http_ssl_module
--- exit: 255 --- exit: 255
--- err --- err
--with-http_ssl_module conflicts with --without-http_ssl_module --with-http_ssl_module conflicts with --without-http_ssl_module.
--- out --- out
platform: linux (linux) platform: linux (linux)
@ -314,7 +314,7 @@ make install DESTDIR=$OPENRESTY_BUILD_DIR/libdrizzle-root
export LIBDRIZZLE_LIB='$OPENRESTY_BUILD_DIR/libdrizzle-root/usr/local/openresty/libdrizzle/lib' export LIBDRIZZLE_LIB='$OPENRESTY_BUILD_DIR/libdrizzle-root/usr/local/openresty/libdrizzle/lib'
export LIBDRIZZLE_INC='$OPENRESTY_BUILD_DIR/libdrizzle-root/usr/local/openresty/libdrizzle/include' export LIBDRIZZLE_INC='$OPENRESTY_BUILD_DIR/libdrizzle-root/usr/local/openresty/libdrizzle/include'
cd .. cd ..
cd LuaJIT-2.0.0-beta6 cd LuaJIT-2.0.0-beta7
make PREFIX=/usr/local/openresty/luajit make PREFIX=/usr/local/openresty/luajit
make install PREFIX=/usr/local/openresty/luajit DESTDIR=$OPENRESTY_BUILD_DIR/luajit-root make install PREFIX=/usr/local/openresty/luajit DESTDIR=$OPENRESTY_BUILD_DIR/luajit-root
export LUAJIT_LIB='$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/lib' export LUAJIT_LIB='$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/lib'
@ -323,19 +323,19 @@ cd ..
cd nginx-0.8.54 cd nginx-0.8.54
./configure --prefix=/usr/local/openresty/nginx \ ./configure --prefix=/usr/local/openresty/nginx \
--with-cc-opt='-O2' \ --with-cc-opt='-O2' \
--add-module=../echo-nginx-module-0.36rc2 \ --add-module=../echo-nginx-module-0.36rc3 \
--add-module=../xss-nginx-module-0.03rc2 \ --add-module=../xss-nginx-module-0.03rc2 \
--add-module=../ngx_devel_kit-0.2.17 \ --add-module=../ngx_devel_kit-0.2.17 \
--add-module=../set-misc-nginx-module-0.21 \ --add-module=../set-misc-nginx-module-0.21 \
--add-module=../form-input-nginx-module-0.07rc4 \ --add-module=../form-input-nginx-module-0.07rc4 \
--add-module=../encrypted-session-nginx-module-0.01 \ --add-module=../encrypted-session-nginx-module-0.01 \
--add-module=../drizzle-nginx-module-0.0.15rc9 \ --add-module=../drizzle-nginx-module-0.0.15rc10 \
--add-module=../ngx_lua-0.1.6rc3 \ --add-module=../ngx_lua-0.1.6rc12 \
--add-module=../headers-more-nginx-module-0.14 \ --add-module=../headers-more-nginx-module-0.15rc1 \
--add-module=../srcache-nginx-module-0.12rc2 \ --add-module=../srcache-nginx-module-0.12rc4 \
--add-module=../array-var-nginx-module-0.02 \ --add-module=../array-var-nginx-module-0.02 \
--add-module=../memc-nginx-module-0.12rc1 \ --add-module=../memc-nginx-module-0.12rc1 \
--add-module=../redis2-nginx-module-0.06 \ --add-module=../redis2-nginx-module-0.07rc2 \
--add-module=../upstream-keepalive-nginx-module-0.3 \ --add-module=../upstream-keepalive-nginx-module-0.3 \
--add-module=../auth-request-nginx-module-0.2 \ --add-module=../auth-request-nginx-module-0.2 \
--add-module=../rds-json-nginx-module-0.11rc2 \ --add-module=../rds-json-nginx-module-0.11rc2 \
@ -347,12 +347,12 @@ cd ../..
all: all:
cd build/libdrizzle-0.8 && $(MAKE) cd build/libdrizzle-0.8 && $(MAKE)
cd build/LuaJIT-2.0.0-beta6 && $(MAKE) PREFIX=/usr/local/openresty/luajit cd build/LuaJIT-2.0.0-beta7 && $(MAKE) PREFIX=/usr/local/openresty/luajit
cd build/nginx-0.8.54 && $(MAKE) cd build/nginx-0.8.54 && $(MAKE)
install: install:
cd build/libdrizzle-0.8 && $(MAKE) install DESTDIR=$(DESTDIR) cd build/libdrizzle-0.8 && $(MAKE) install DESTDIR=$(DESTDIR)
cd build/LuaJIT-2.0.0-beta6 && $(MAKE) install PREFIX=/usr/local/openresty/luajit DESTDIR=$(DESTDIR) cd build/LuaJIT-2.0.0-beta7 && $(MAKE) install PREFIX=/usr/local/openresty/luajit DESTDIR=$(DESTDIR)
cd build/nginx-0.8.54 && $(MAKE) install DESTDIR=$(DESTDIR) cd build/nginx-0.8.54 && $(MAKE) install DESTDIR=$(DESTDIR)
clean: clean:
@ -373,7 +373,7 @@ make install DESTDIR=$OPENRESTY_BUILD_DIR/libdrizzle-root
export LIBDRIZZLE_LIB='$OPENRESTY_BUILD_DIR/libdrizzle-root/usr/local/openresty/libdrizzle/lib' export LIBDRIZZLE_LIB='$OPENRESTY_BUILD_DIR/libdrizzle-root/usr/local/openresty/libdrizzle/lib'
export LIBDRIZZLE_INC='$OPENRESTY_BUILD_DIR/libdrizzle-root/usr/local/openresty/libdrizzle/include' export LIBDRIZZLE_INC='$OPENRESTY_BUILD_DIR/libdrizzle-root/usr/local/openresty/libdrizzle/include'
cd .. cd ..
cd LuaJIT-2.0.0-beta6 cd LuaJIT-2.0.0-beta7
make PREFIX=/usr/local/openresty/luajit make PREFIX=/usr/local/openresty/luajit
make install PREFIX=/usr/local/openresty/luajit DESTDIR=$OPENRESTY_BUILD_DIR/luajit-root make install PREFIX=/usr/local/openresty/luajit DESTDIR=$OPENRESTY_BUILD_DIR/luajit-root
export LUAJIT_LIB='$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/lib' export LUAJIT_LIB='$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/lib'
@ -382,19 +382,19 @@ cd ..
cd nginx-0.8.54 cd nginx-0.8.54
./configure --prefix=/usr/local/openresty/nginx \ ./configure --prefix=/usr/local/openresty/nginx \
--with-cc-opt='-O2 -O3' \ --with-cc-opt='-O2 -O3' \
--add-module=../echo-nginx-module-0.36rc2 \ --add-module=../echo-nginx-module-0.36rc3 \
--add-module=../xss-nginx-module-0.03rc2 \ --add-module=../xss-nginx-module-0.03rc2 \
--add-module=../ngx_devel_kit-0.2.17 \ --add-module=../ngx_devel_kit-0.2.17 \
--add-module=../set-misc-nginx-module-0.21 \ --add-module=../set-misc-nginx-module-0.21 \
--add-module=../form-input-nginx-module-0.07rc4 \ --add-module=../form-input-nginx-module-0.07rc4 \
--add-module=../encrypted-session-nginx-module-0.01 \ --add-module=../encrypted-session-nginx-module-0.01 \
--add-module=../drizzle-nginx-module-0.0.15rc9 \ --add-module=../drizzle-nginx-module-0.0.15rc10 \
--add-module=../ngx_lua-0.1.6rc3 \ --add-module=../ngx_lua-0.1.6rc12 \
--add-module=../headers-more-nginx-module-0.14 \ --add-module=../headers-more-nginx-module-0.15rc1 \
--add-module=../srcache-nginx-module-0.12rc2 \ --add-module=../srcache-nginx-module-0.12rc4 \
--add-module=../array-var-nginx-module-0.02 \ --add-module=../array-var-nginx-module-0.02 \
--add-module=../memc-nginx-module-0.12rc1 \ --add-module=../memc-nginx-module-0.12rc1 \
--add-module=../redis2-nginx-module-0.06 \ --add-module=../redis2-nginx-module-0.07rc2 \
--add-module=../upstream-keepalive-nginx-module-0.3 \ --add-module=../upstream-keepalive-nginx-module-0.3 \
--add-module=../auth-request-nginx-module-0.2 \ --add-module=../auth-request-nginx-module-0.2 \
--add-module=../rds-json-nginx-module-0.11rc2 \ --add-module=../rds-json-nginx-module-0.11rc2 \
@ -406,12 +406,12 @@ cd ../..
all: all:
cd build/libdrizzle-0.8 && $(MAKE) cd build/libdrizzle-0.8 && $(MAKE)
cd build/LuaJIT-2.0.0-beta6 && $(MAKE) PREFIX=/usr/local/openresty/luajit cd build/LuaJIT-2.0.0-beta7 && $(MAKE) PREFIX=/usr/local/openresty/luajit
cd build/nginx-0.8.54 && $(MAKE) cd build/nginx-0.8.54 && $(MAKE)
install: install:
cd build/libdrizzle-0.8 && $(MAKE) install DESTDIR=$(DESTDIR) cd build/libdrizzle-0.8 && $(MAKE) install DESTDIR=$(DESTDIR)
cd build/LuaJIT-2.0.0-beta6 && $(MAKE) install PREFIX=/usr/local/openresty/luajit DESTDIR=$(DESTDIR) cd build/LuaJIT-2.0.0-beta7 && $(MAKE) install PREFIX=/usr/local/openresty/luajit DESTDIR=$(DESTDIR)
cd build/nginx-0.8.54 && $(MAKE) install DESTDIR=$(DESTDIR) cd build/nginx-0.8.54 && $(MAKE) install DESTDIR=$(DESTDIR)
clean: clean:
@ -432,7 +432,7 @@ make install DESTDIR=$OPENRESTY_BUILD_DIR/libdrizzle-root
export LIBDRIZZLE_LIB='$OPENRESTY_BUILD_DIR/libdrizzle-root/usr/local/openresty/libdrizzle/lib' export LIBDRIZZLE_LIB='$OPENRESTY_BUILD_DIR/libdrizzle-root/usr/local/openresty/libdrizzle/lib'
export LIBDRIZZLE_INC='$OPENRESTY_BUILD_DIR/libdrizzle-root/usr/local/openresty/libdrizzle/include' export LIBDRIZZLE_INC='$OPENRESTY_BUILD_DIR/libdrizzle-root/usr/local/openresty/libdrizzle/include'
cd .. cd ..
cd LuaJIT-2.0.0-beta6 cd LuaJIT-2.0.0-beta7
make PREFIX=/usr/local/openresty/luajit make PREFIX=/usr/local/openresty/luajit
make install PREFIX=/usr/local/openresty/luajit DESTDIR=$OPENRESTY_BUILD_DIR/luajit-root make install PREFIX=/usr/local/openresty/luajit DESTDIR=$OPENRESTY_BUILD_DIR/luajit-root
export LUAJIT_LIB='$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/lib' export LUAJIT_LIB='$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/lib'
@ -441,19 +441,19 @@ cd ..
cd nginx-0.8.54 cd nginx-0.8.54
./configure --prefix=/usr/local/openresty/nginx \ ./configure --prefix=/usr/local/openresty/nginx \
--with-cc-opt='-O2' \ --with-cc-opt='-O2' \
--add-module=../echo-nginx-module-0.36rc2 \ --add-module=../echo-nginx-module-0.36rc3 \
--add-module=../xss-nginx-module-0.03rc2 \ --add-module=../xss-nginx-module-0.03rc2 \
--add-module=../ngx_devel_kit-0.2.17 \ --add-module=../ngx_devel_kit-0.2.17 \
--add-module=../set-misc-nginx-module-0.21 \ --add-module=../set-misc-nginx-module-0.21 \
--add-module=../form-input-nginx-module-0.07rc4 \ --add-module=../form-input-nginx-module-0.07rc4 \
--add-module=../encrypted-session-nginx-module-0.01 \ --add-module=../encrypted-session-nginx-module-0.01 \
--add-module=../drizzle-nginx-module-0.0.15rc9 \ --add-module=../drizzle-nginx-module-0.0.15rc10 \
--add-module=../ngx_lua-0.1.6rc3 \ --add-module=../ngx_lua-0.1.6rc12 \
--add-module=../headers-more-nginx-module-0.14 \ --add-module=../headers-more-nginx-module-0.15rc1 \
--add-module=../srcache-nginx-module-0.12rc2 \ --add-module=../srcache-nginx-module-0.12rc4 \
--add-module=../array-var-nginx-module-0.02 \ --add-module=../array-var-nginx-module-0.02 \
--add-module=../memc-nginx-module-0.12rc1 \ --add-module=../memc-nginx-module-0.12rc1 \
--add-module=../redis2-nginx-module-0.06 \ --add-module=../redis2-nginx-module-0.07rc2 \
--add-module=../upstream-keepalive-nginx-module-0.3 \ --add-module=../upstream-keepalive-nginx-module-0.3 \
--add-module=../auth-request-nginx-module-0.2 \ --add-module=../auth-request-nginx-module-0.2 \
--add-module=../rds-json-nginx-module-0.11rc2 \ --add-module=../rds-json-nginx-module-0.11rc2 \
@ -465,12 +465,12 @@ cd ../..
all: all:
cd build/libdrizzle-0.8 && $(MAKE) cd build/libdrizzle-0.8 && $(MAKE)
cd build/LuaJIT-2.0.0-beta6 && $(MAKE) PREFIX=/usr/local/openresty/luajit cd build/LuaJIT-2.0.0-beta7 && $(MAKE) PREFIX=/usr/local/openresty/luajit
cd build/nginx-0.8.54 && $(MAKE) cd build/nginx-0.8.54 && $(MAKE)
install: install:
cd build/libdrizzle-0.8 && $(MAKE) install DESTDIR=$(DESTDIR) cd build/libdrizzle-0.8 && $(MAKE) install DESTDIR=$(DESTDIR)
cd build/LuaJIT-2.0.0-beta6 && $(MAKE) install PREFIX=/usr/local/openresty/luajit DESTDIR=$(DESTDIR) cd build/LuaJIT-2.0.0-beta7 && $(MAKE) install PREFIX=/usr/local/openresty/luajit DESTDIR=$(DESTDIR)
cd build/nginx-0.8.54 && $(MAKE) install DESTDIR=$(DESTDIR) cd build/nginx-0.8.54 && $(MAKE) install DESTDIR=$(DESTDIR)
clean: clean:
@ -484,7 +484,7 @@ clean:
platform: linux (linux) platform: linux (linux)
cp -r bundle/ build/ cp -r bundle/ build/
cd build cd build
cd LuaJIT-2.0.0-beta6 cd LuaJIT-2.0.0-beta7
make PREFIX=/usr/local/openresty/luajit make PREFIX=/usr/local/openresty/luajit
make install PREFIX=/usr/local/openresty/luajit DESTDIR=$OPENRESTY_BUILD_DIR/luajit-root make install PREFIX=/usr/local/openresty/luajit DESTDIR=$OPENRESTY_BUILD_DIR/luajit-root
export LUAJIT_LIB='$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/lib' export LUAJIT_LIB='$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/lib'
@ -493,18 +493,18 @@ cd ..
cd nginx-0.8.54 cd nginx-0.8.54
./configure --prefix=/usr/local/openresty/nginx \ ./configure --prefix=/usr/local/openresty/nginx \
--with-cc-opt='-O2' \ --with-cc-opt='-O2' \
--add-module=../echo-nginx-module-0.36rc2 \ --add-module=../echo-nginx-module-0.36rc3 \
--add-module=../xss-nginx-module-0.03rc2 \ --add-module=../xss-nginx-module-0.03rc2 \
--add-module=../ngx_devel_kit-0.2.17 \ --add-module=../ngx_devel_kit-0.2.17 \
--add-module=../set-misc-nginx-module-0.21 \ --add-module=../set-misc-nginx-module-0.21 \
--add-module=../form-input-nginx-module-0.07rc4 \ --add-module=../form-input-nginx-module-0.07rc4 \
--add-module=../encrypted-session-nginx-module-0.01 \ --add-module=../encrypted-session-nginx-module-0.01 \
--add-module=../ngx_lua-0.1.6rc3 \ --add-module=../ngx_lua-0.1.6rc12 \
--add-module=../headers-more-nginx-module-0.14 \ --add-module=../headers-more-nginx-module-0.15rc1 \
--add-module=../srcache-nginx-module-0.12rc2 \ --add-module=../srcache-nginx-module-0.12rc4 \
--add-module=../array-var-nginx-module-0.02 \ --add-module=../array-var-nginx-module-0.02 \
--add-module=../memc-nginx-module-0.12rc1 \ --add-module=../memc-nginx-module-0.12rc1 \
--add-module=../redis2-nginx-module-0.06 \ --add-module=../redis2-nginx-module-0.07rc2 \
--add-module=../upstream-keepalive-nginx-module-0.3 \ --add-module=../upstream-keepalive-nginx-module-0.3 \
--add-module=../auth-request-nginx-module-0.2 \ --add-module=../auth-request-nginx-module-0.2 \
--add-module=../rds-json-nginx-module-0.11rc2 \ --add-module=../rds-json-nginx-module-0.11rc2 \
@ -515,11 +515,11 @@ cd ../..
.PHONY: all install .PHONY: all install
all: all:
cd build/LuaJIT-2.0.0-beta6 && $(MAKE) PREFIX=/usr/local/openresty/luajit cd build/LuaJIT-2.0.0-beta7 && $(MAKE) PREFIX=/usr/local/openresty/luajit
cd build/nginx-0.8.54 && $(MAKE) cd build/nginx-0.8.54 && $(MAKE)
install: install:
cd build/LuaJIT-2.0.0-beta6 && $(MAKE) install PREFIX=/usr/local/openresty/luajit DESTDIR=$(DESTDIR) cd build/LuaJIT-2.0.0-beta7 && $(MAKE) install PREFIX=/usr/local/openresty/luajit DESTDIR=$(DESTDIR)
cd build/nginx-0.8.54 && $(MAKE) install DESTDIR=$(DESTDIR) cd build/nginx-0.8.54 && $(MAKE) install DESTDIR=$(DESTDIR)
clean: clean:
@ -540,7 +540,7 @@ make install DESTDIR=$OPENRESTY_BUILD_DIR/libdrizzle-root
export LIBDRIZZLE_LIB='$OPENRESTY_BUILD_DIR/libdrizzle-root/usr/local/openresty/libdrizzle/lib' export LIBDRIZZLE_LIB='$OPENRESTY_BUILD_DIR/libdrizzle-root/usr/local/openresty/libdrizzle/lib'
export LIBDRIZZLE_INC='$OPENRESTY_BUILD_DIR/libdrizzle-root/usr/local/openresty/libdrizzle/include' export LIBDRIZZLE_INC='$OPENRESTY_BUILD_DIR/libdrizzle-root/usr/local/openresty/libdrizzle/include'
cd .. cd ..
cd LuaJIT-2.0.0-beta6 cd LuaJIT-2.0.0-beta7
make PREFIX=/usr/local/openresty/luajit make PREFIX=/usr/local/openresty/luajit
make install PREFIX=/usr/local/openresty/luajit DESTDIR=$OPENRESTY_BUILD_DIR/luajit-root make install PREFIX=/usr/local/openresty/luajit DESTDIR=$OPENRESTY_BUILD_DIR/luajit-root
export LUAJIT_LIB='$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/lib' export LUAJIT_LIB='$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/lib'
@ -549,18 +549,18 @@ cd ..
cd nginx-0.8.54 cd nginx-0.8.54
./configure --prefix=/usr/local/openresty/nginx \ ./configure --prefix=/usr/local/openresty/nginx \
--with-cc-opt='-O2' \ --with-cc-opt='-O2' \
--add-module=../echo-nginx-module-0.36rc2 \ --add-module=../echo-nginx-module-0.36rc3 \
--add-module=../xss-nginx-module-0.03rc2 \ --add-module=../xss-nginx-module-0.03rc2 \
--add-module=../ngx_devel_kit-0.2.17 \ --add-module=../ngx_devel_kit-0.2.17 \
--add-module=../set-misc-nginx-module-0.21 \ --add-module=../set-misc-nginx-module-0.21 \
--add-module=../form-input-nginx-module-0.07rc4 \ --add-module=../form-input-nginx-module-0.07rc4 \
--add-module=../encrypted-session-nginx-module-0.01 \ --add-module=../encrypted-session-nginx-module-0.01 \
--add-module=../drizzle-nginx-module-0.0.15rc9 \ --add-module=../drizzle-nginx-module-0.0.15rc10 \
--add-module=../headers-more-nginx-module-0.14 \ --add-module=../headers-more-nginx-module-0.15rc1 \
--add-module=../srcache-nginx-module-0.12rc2 \ --add-module=../srcache-nginx-module-0.12rc4 \
--add-module=../array-var-nginx-module-0.02 \ --add-module=../array-var-nginx-module-0.02 \
--add-module=../memc-nginx-module-0.12rc1 \ --add-module=../memc-nginx-module-0.12rc1 \
--add-module=../redis2-nginx-module-0.06 \ --add-module=../redis2-nginx-module-0.07rc2 \
--add-module=../upstream-keepalive-nginx-module-0.3 \ --add-module=../upstream-keepalive-nginx-module-0.3 \
--add-module=../auth-request-nginx-module-0.2 \ --add-module=../auth-request-nginx-module-0.2 \
--add-module=../rds-json-nginx-module-0.11rc2 \ --add-module=../rds-json-nginx-module-0.11rc2 \
@ -572,12 +572,12 @@ cd ../..
all: all:
cd build/libdrizzle-0.8 && $(MAKE) cd build/libdrizzle-0.8 && $(MAKE)
cd build/LuaJIT-2.0.0-beta6 && $(MAKE) PREFIX=/usr/local/openresty/luajit cd build/LuaJIT-2.0.0-beta7 && $(MAKE) PREFIX=/usr/local/openresty/luajit
cd build/nginx-0.8.54 && $(MAKE) cd build/nginx-0.8.54 && $(MAKE)
install: install:
cd build/libdrizzle-0.8 && $(MAKE) install DESTDIR=$(DESTDIR) cd build/libdrizzle-0.8 && $(MAKE) install DESTDIR=$(DESTDIR)
cd build/LuaJIT-2.0.0-beta6 && $(MAKE) install PREFIX=/usr/local/openresty/luajit DESTDIR=$(DESTDIR) cd build/LuaJIT-2.0.0-beta7 && $(MAKE) install PREFIX=/usr/local/openresty/luajit DESTDIR=$(DESTDIR)
cd build/nginx-0.8.54 && $(MAKE) install DESTDIR=$(DESTDIR) cd build/nginx-0.8.54 && $(MAKE) install DESTDIR=$(DESTDIR)
clean: clean:
@ -601,18 +601,18 @@ cd ..
cd nginx-0.8.54 cd nginx-0.8.54
./configure --prefix=/usr/local/openresty/nginx \ ./configure --prefix=/usr/local/openresty/nginx \
--with-cc-opt='-O2' \ --with-cc-opt='-O2' \
--add-module=../echo-nginx-module-0.36rc2 \ --add-module=../echo-nginx-module-0.36rc3 \
--add-module=../xss-nginx-module-0.03rc2 \ --add-module=../xss-nginx-module-0.03rc2 \
--add-module=../ngx_devel_kit-0.2.17 \ --add-module=../ngx_devel_kit-0.2.17 \
--add-module=../set-misc-nginx-module-0.21 \ --add-module=../set-misc-nginx-module-0.21 \
--add-module=../form-input-nginx-module-0.07rc4 \ --add-module=../form-input-nginx-module-0.07rc4 \
--add-module=../encrypted-session-nginx-module-0.01 \ --add-module=../encrypted-session-nginx-module-0.01 \
--add-module=../drizzle-nginx-module-0.0.15rc9 \ --add-module=../drizzle-nginx-module-0.0.15rc10 \
--add-module=../headers-more-nginx-module-0.14 \ --add-module=../headers-more-nginx-module-0.15rc1 \
--add-module=../srcache-nginx-module-0.12rc2 \ --add-module=../srcache-nginx-module-0.12rc4 \
--add-module=../array-var-nginx-module-0.02 \ --add-module=../array-var-nginx-module-0.02 \
--add-module=../memc-nginx-module-0.12rc1 \ --add-module=../memc-nginx-module-0.12rc1 \
--add-module=../redis2-nginx-module-0.06 \ --add-module=../redis2-nginx-module-0.07rc2 \
--add-module=../upstream-keepalive-nginx-module-0.3 \ --add-module=../upstream-keepalive-nginx-module-0.3 \
--add-module=../auth-request-nginx-module-0.2 \ --add-module=../auth-request-nginx-module-0.2 \
--add-module=../rds-json-nginx-module-0.11rc2 \ --add-module=../rds-json-nginx-module-0.11rc2 \
@ -641,7 +641,7 @@ clean:
platform: linux (linux) platform: linux (linux)
cp -r bundle/ build/ cp -r bundle/ build/
cd build cd build
cd LuaJIT-2.0.0-beta6 cd LuaJIT-2.0.0-beta7
make PREFIX=/usr/local/openresty/luajit make PREFIX=/usr/local/openresty/luajit
make install PREFIX=/usr/local/openresty/luajit DESTDIR=$OPENRESTY_BUILD_DIR/luajit-root make install PREFIX=/usr/local/openresty/luajit DESTDIR=$OPENRESTY_BUILD_DIR/luajit-root
export LUAJIT_LIB='$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/lib' export LUAJIT_LIB='$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/lib'
@ -650,19 +650,19 @@ cd ..
cd nginx-0.8.54 cd nginx-0.8.54
./configure --prefix=/usr/local/openresty/nginx \ ./configure --prefix=/usr/local/openresty/nginx \
--with-cc-opt='-O2' \ --with-cc-opt='-O2' \
--add-module=../echo-nginx-module-0.36rc2 \ --add-module=../echo-nginx-module-0.36rc3 \
--add-module=../xss-nginx-module-0.03rc2 \ --add-module=../xss-nginx-module-0.03rc2 \
--add-module=../ngx_devel_kit-0.2.17 \ --add-module=../ngx_devel_kit-0.2.17 \
--add-module=../set-misc-nginx-module-0.21 \ --add-module=../set-misc-nginx-module-0.21 \
--add-module=../form-input-nginx-module-0.07rc4 \ --add-module=../form-input-nginx-module-0.07rc4 \
--add-module=../encrypted-session-nginx-module-0.01 \ --add-module=../encrypted-session-nginx-module-0.01 \
--add-module=../ngx_postgres-0.8 \ --add-module=../ngx_postgres-0.8 \
--add-module=../ngx_lua-0.1.6rc3 \ --add-module=../ngx_lua-0.1.6rc12 \
--add-module=../headers-more-nginx-module-0.14 \ --add-module=../headers-more-nginx-module-0.15rc1 \
--add-module=../srcache-nginx-module-0.12rc2 \ --add-module=../srcache-nginx-module-0.12rc4 \
--add-module=../array-var-nginx-module-0.02 \ --add-module=../array-var-nginx-module-0.02 \
--add-module=../memc-nginx-module-0.12rc1 \ --add-module=../memc-nginx-module-0.12rc1 \
--add-module=../redis2-nginx-module-0.06 \ --add-module=../redis2-nginx-module-0.07rc2 \
--add-module=../upstream-keepalive-nginx-module-0.3 \ --add-module=../upstream-keepalive-nginx-module-0.3 \
--add-module=../auth-request-nginx-module-0.2 \ --add-module=../auth-request-nginx-module-0.2 \
--add-module=../rds-json-nginx-module-0.11rc2 \ --add-module=../rds-json-nginx-module-0.11rc2 \
@ -673,11 +673,11 @@ cd ../..
.PHONY: all install .PHONY: all install
all: all:
cd build/LuaJIT-2.0.0-beta6 && $(MAKE) PREFIX=/usr/local/openresty/luajit cd build/LuaJIT-2.0.0-beta7 && $(MAKE) PREFIX=/usr/local/openresty/luajit
cd build/nginx-0.8.54 && $(MAKE) cd build/nginx-0.8.54 && $(MAKE)
install: install:
cd build/LuaJIT-2.0.0-beta6 && $(MAKE) install PREFIX=/usr/local/openresty/luajit DESTDIR=$(DESTDIR) cd build/LuaJIT-2.0.0-beta7 && $(MAKE) install PREFIX=/usr/local/openresty/luajit DESTDIR=$(DESTDIR)
cd build/nginx-0.8.54 && $(MAKE) install DESTDIR=$(DESTDIR) cd build/nginx-0.8.54 && $(MAKE) install DESTDIR=$(DESTDIR)
clean: clean:
@ -691,7 +691,7 @@ clean:
platform: linux (linux) platform: linux (linux)
cp -r bundle/ build/ cp -r bundle/ build/
cd build cd build
cd LuaJIT-2.0.0-beta6 cd LuaJIT-2.0.0-beta7
make PREFIX=/usr/local/openresty/luajit make PREFIX=/usr/local/openresty/luajit
make install PREFIX=/usr/local/openresty/luajit DESTDIR=$OPENRESTY_BUILD_DIR/luajit-root make install PREFIX=/usr/local/openresty/luajit DESTDIR=$OPENRESTY_BUILD_DIR/luajit-root
export LUAJIT_LIB='$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/lib' export LUAJIT_LIB='$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/lib'
@ -701,18 +701,18 @@ cd nginx-0.8.54
./configure --prefix=/usr/local/openresty/nginx \ ./configure --prefix=/usr/local/openresty/nginx \
--with-cc-opt='-O2' \ --with-cc-opt='-O2' \
--add-module=../iconv-nginx-module-0.10rc3 \ --add-module=../iconv-nginx-module-0.10rc3 \
--add-module=../echo-nginx-module-0.36rc2 \ --add-module=../echo-nginx-module-0.36rc3 \
--add-module=../xss-nginx-module-0.03rc2 \ --add-module=../xss-nginx-module-0.03rc2 \
--add-module=../ngx_devel_kit-0.2.17 \ --add-module=../ngx_devel_kit-0.2.17 \
--add-module=../set-misc-nginx-module-0.21 \ --add-module=../set-misc-nginx-module-0.21 \
--add-module=../form-input-nginx-module-0.07rc4 \ --add-module=../form-input-nginx-module-0.07rc4 \
--add-module=../encrypted-session-nginx-module-0.01 \ --add-module=../encrypted-session-nginx-module-0.01 \
--add-module=../ngx_lua-0.1.6rc3 \ --add-module=../ngx_lua-0.1.6rc12 \
--add-module=../headers-more-nginx-module-0.14 \ --add-module=../headers-more-nginx-module-0.15rc1 \
--add-module=../srcache-nginx-module-0.12rc2 \ --add-module=../srcache-nginx-module-0.12rc4 \
--add-module=../array-var-nginx-module-0.02 \ --add-module=../array-var-nginx-module-0.02 \
--add-module=../memc-nginx-module-0.12rc1 \ --add-module=../memc-nginx-module-0.12rc1 \
--add-module=../redis2-nginx-module-0.06 \ --add-module=../redis2-nginx-module-0.07rc2 \
--add-module=../upstream-keepalive-nginx-module-0.3 \ --add-module=../upstream-keepalive-nginx-module-0.3 \
--add-module=../auth-request-nginx-module-0.2 \ --add-module=../auth-request-nginx-module-0.2 \
--add-module=../rds-json-nginx-module-0.11rc2 \ --add-module=../rds-json-nginx-module-0.11rc2 \
@ -723,11 +723,11 @@ cd ../..
.PHONY: all install .PHONY: all install
all: all:
cd build/LuaJIT-2.0.0-beta6 && $(MAKE) PREFIX=/usr/local/openresty/luajit cd build/LuaJIT-2.0.0-beta7 && $(MAKE) PREFIX=/usr/local/openresty/luajit
cd build/nginx-0.8.54 && $(MAKE) cd build/nginx-0.8.54 && $(MAKE)
install: install:
cd build/LuaJIT-2.0.0-beta6 && $(MAKE) install PREFIX=/usr/local/openresty/luajit DESTDIR=$(DESTDIR) cd build/LuaJIT-2.0.0-beta7 && $(MAKE) install PREFIX=/usr/local/openresty/luajit DESTDIR=$(DESTDIR)
cd build/nginx-0.8.54 && $(MAKE) install DESTDIR=$(DESTDIR) cd build/nginx-0.8.54 && $(MAKE) install DESTDIR=$(DESTDIR)
clean: clean:
@ -757,19 +757,19 @@ cd ..
cd nginx-0.8.54 cd nginx-0.8.54
./configure --prefix=/opt/blah/nginx \ ./configure --prefix=/opt/blah/nginx \
--with-cc-opt='-O2' \ --with-cc-opt='-O2' \
--add-module=../echo-nginx-module-0.36rc2 \ --add-module=../echo-nginx-module-0.36rc3 \
--add-module=../xss-nginx-module-0.03rc2 \ --add-module=../xss-nginx-module-0.03rc2 \
--add-module=../ngx_devel_kit-0.2.17 \ --add-module=../ngx_devel_kit-0.2.17 \
--add-module=../set-misc-nginx-module-0.21 \ --add-module=../set-misc-nginx-module-0.21 \
--add-module=../form-input-nginx-module-0.07rc4 \ --add-module=../form-input-nginx-module-0.07rc4 \
--add-module=../encrypted-session-nginx-module-0.01 \ --add-module=../encrypted-session-nginx-module-0.01 \
--add-module=../drizzle-nginx-module-0.0.15rc9 \ --add-module=../drizzle-nginx-module-0.0.15rc10 \
--add-module=../ngx_lua-0.1.6rc3 \ --add-module=../ngx_lua-0.1.6rc12 \
--add-module=../headers-more-nginx-module-0.14 \ --add-module=../headers-more-nginx-module-0.15rc1 \
--add-module=../srcache-nginx-module-0.12rc2 \ --add-module=../srcache-nginx-module-0.12rc4 \
--add-module=../array-var-nginx-module-0.02 \ --add-module=../array-var-nginx-module-0.02 \
--add-module=../memc-nginx-module-0.12rc1 \ --add-module=../memc-nginx-module-0.12rc1 \
--add-module=../redis2-nginx-module-0.06 \ --add-module=../redis2-nginx-module-0.07rc2 \
--add-module=../upstream-keepalive-nginx-module-0.3 \ --add-module=../upstream-keepalive-nginx-module-0.3 \
--add-module=../auth-request-nginx-module-0.2 \ --add-module=../auth-request-nginx-module-0.2 \
--add-module=../rds-json-nginx-module-0.11rc2 \ --add-module=../rds-json-nginx-module-0.11rc2 \
@ -971,18 +971,18 @@ cd ..
cd nginx-0.8.54 cd nginx-0.8.54
./configure --prefix=/usr/local/openresty/nginx \ ./configure --prefix=/usr/local/openresty/nginx \
--with-cc-opt='-O2' \ --with-cc-opt='-O2' \
--add-module=../echo-nginx-module-0.36rc2 \ --add-module=../echo-nginx-module-0.36rc3 \
--add-module=../xss-nginx-module-0.03rc2 \ --add-module=../xss-nginx-module-0.03rc2 \
--add-module=../ngx_devel_kit-0.2.17 \ --add-module=../ngx_devel_kit-0.2.17 \
--add-module=../set-misc-nginx-module-0.21 \ --add-module=../set-misc-nginx-module-0.21 \
--add-module=../form-input-nginx-module-0.07rc4 \ --add-module=../form-input-nginx-module-0.07rc4 \
--add-module=../encrypted-session-nginx-module-0.01 \ --add-module=../encrypted-session-nginx-module-0.01 \
--add-module=../ngx_lua-0.1.6rc3 \ --add-module=../ngx_lua-0.1.6rc12 \
--add-module=../headers-more-nginx-module-0.14 \ --add-module=../headers-more-nginx-module-0.15rc1 \
--add-module=../srcache-nginx-module-0.12rc2 \ --add-module=../srcache-nginx-module-0.12rc4 \
--add-module=../array-var-nginx-module-0.02 \ --add-module=../array-var-nginx-module-0.02 \
--add-module=../memc-nginx-module-0.12rc1 \ --add-module=../memc-nginx-module-0.12rc1 \
--add-module=../redis2-nginx-module-0.06 \ --add-module=../redis2-nginx-module-0.07rc2 \
--add-module=../upstream-keepalive-nginx-module-0.3 \ --add-module=../upstream-keepalive-nginx-module-0.3 \
--add-module=../auth-request-nginx-module-0.2 \ --add-module=../auth-request-nginx-module-0.2 \
--add-module=../rds-json-nginx-module-0.11rc2 \ --add-module=../rds-json-nginx-module-0.11rc2 \
@ -1026,19 +1026,19 @@ cd ..
cd nginx-0.8.54 cd nginx-0.8.54
./configure --prefix=/usr/local/openresty/nginx \ ./configure --prefix=/usr/local/openresty/nginx \
--with-cc-opt='-O2' \ --with-cc-opt='-O2' \
--add-module=../echo-nginx-module-0.36rc2 \ --add-module=../echo-nginx-module-0.36rc3 \
--add-module=../xss-nginx-module-0.03rc2 \ --add-module=../xss-nginx-module-0.03rc2 \
--add-module=../ngx_devel_kit-0.2.17 \ --add-module=../ngx_devel_kit-0.2.17 \
--add-module=../set-misc-nginx-module-0.21 \ --add-module=../set-misc-nginx-module-0.21 \
--add-module=../form-input-nginx-module-0.07rc4 \ --add-module=../form-input-nginx-module-0.07rc4 \
--add-module=../encrypted-session-nginx-module-0.01 \ --add-module=../encrypted-session-nginx-module-0.01 \
--add-module=../drizzle-nginx-module-0.0.15rc9 \ --add-module=../drizzle-nginx-module-0.0.15rc10 \
--add-module=../ngx_lua-0.1.6rc3 \ --add-module=../ngx_lua-0.1.6rc12 \
--add-module=../headers-more-nginx-module-0.14 \ --add-module=../headers-more-nginx-module-0.15rc1 \
--add-module=../srcache-nginx-module-0.12rc2 \ --add-module=../srcache-nginx-module-0.12rc4 \
--add-module=../array-var-nginx-module-0.02 \ --add-module=../array-var-nginx-module-0.02 \
--add-module=../memc-nginx-module-0.12rc1 \ --add-module=../memc-nginx-module-0.12rc1 \
--add-module=../redis2-nginx-module-0.06 \ --add-module=../redis2-nginx-module-0.07rc2 \
--add-module=../upstream-keepalive-nginx-module-0.3 \ --add-module=../upstream-keepalive-nginx-module-0.3 \
--add-module=../auth-request-nginx-module-0.2 \ --add-module=../auth-request-nginx-module-0.2 \
--add-module=../rds-json-nginx-module-0.11rc2 \ --add-module=../rds-json-nginx-module-0.11rc2 \
@ -1085,19 +1085,19 @@ cd ..
cd nginx-0.8.54 cd nginx-0.8.54
./configure --prefix=/usr/local/openresty/nginx \ ./configure --prefix=/usr/local/openresty/nginx \
--with-cc-opt='-O2' \ --with-cc-opt='-O2' \
--add-module=../echo-nginx-module-0.36rc2 \ --add-module=../echo-nginx-module-0.36rc3 \
--add-module=../xss-nginx-module-0.03rc2 \ --add-module=../xss-nginx-module-0.03rc2 \
--add-module=../ngx_devel_kit-0.2.17 \ --add-module=../ngx_devel_kit-0.2.17 \
--add-module=../set-misc-nginx-module-0.21 \ --add-module=../set-misc-nginx-module-0.21 \
--add-module=../form-input-nginx-module-0.07rc4 \ --add-module=../form-input-nginx-module-0.07rc4 \
--add-module=../encrypted-session-nginx-module-0.01 \ --add-module=../encrypted-session-nginx-module-0.01 \
--add-module=../drizzle-nginx-module-0.0.15rc9 \ --add-module=../drizzle-nginx-module-0.0.15rc10 \
--add-module=../ngx_lua-0.1.6rc3 \ --add-module=../ngx_lua-0.1.6rc12 \
--add-module=../headers-more-nginx-module-0.14 \ --add-module=../headers-more-nginx-module-0.15rc1 \
--add-module=../srcache-nginx-module-0.12rc2 \ --add-module=../srcache-nginx-module-0.12rc4 \
--add-module=../array-var-nginx-module-0.02 \ --add-module=../array-var-nginx-module-0.02 \
--add-module=../memc-nginx-module-0.12rc1 \ --add-module=../memc-nginx-module-0.12rc1 \
--add-module=../redis2-nginx-module-0.06 \ --add-module=../redis2-nginx-module-0.07rc2 \
--add-module=../upstream-keepalive-nginx-module-0.3 \ --add-module=../upstream-keepalive-nginx-module-0.3 \
--add-module=../auth-request-nginx-module-0.2 \ --add-module=../auth-request-nginx-module-0.2 \
--add-module=../rds-json-nginx-module-0.11rc2 \ --add-module=../rds-json-nginx-module-0.11rc2 \

24
util/configure vendored
View File

@ -5,6 +5,7 @@ use strict;
use warnings; use warnings;
use File::Spec; use File::Spec;
use ExtUtils::MakeMaker ();
sub shell ($@); sub shell ($@);
sub env ($$); sub env ($$);
@ -258,7 +259,7 @@ sub build_resty_opts {
} }
if ($opts->{no_http_ssl} && $opts->{http_ssl}) { if ($opts->{no_http_ssl} && $opts->{http_ssl}) {
die "--with-http_ssl_module conflicts with --without-http_ssl_module\n"; die "--with-http_ssl_module conflicts with --without-http_ssl_module.\n";
} }
if (! $opts->{no_http_ssl} && ! $opts->{http_ssl}) { if (! $opts->{no_http_ssl} && ! $opts->{http_ssl}) {
@ -266,6 +267,10 @@ sub build_resty_opts {
push @ngx_opts, '--with-http_ssl_module'; push @ngx_opts, '--with-http_ssl_module';
} }
if ($platform eq 'linux' && $opts->{luajit} && ! can_run("ldconfig")) {
die "you need to have ldconfig in your PATH env when enabling luajit.\n";
}
my $opts_line = ''; my $opts_line = '';
if ($opts->{debug}) { if ($opts->{debug}) {
@ -628,3 +633,20 @@ sub gen_makefile {
close $out; close $out;
} }
# check if we can run some command
sub can_run {
my ($cmd) = @_;
#warn "can run: @_\n";
my $_cmd = $cmd;
return $_cmd if (-x $_cmd or $_cmd = MM->maybe_command($_cmd));
for my $dir ((split /$Config::Config{path_sep}/, $ENV{PATH}), '.') {
next if $dir eq '';
my $abs = File::Spec->catfile($dir, $_[0]);
return $abs if (-x $abs or $abs = MM->maybe_command($abs));
}
return;
}

View File

@ -42,9 +42,20 @@ for my $t_file (@t_files) {
if (s{\.\./$pat\S+}{../$dir}g && $orig ne $_) { if (s{\.\./$pat\S+}{../$dir}g && $orig ne $_) {
$changed++; $changed++;
warn "\n- $orig";
warn "+ $_";
} elsif (s{\bbuild/$pat\S+}{build/$dir}g && $orig ne $_) {
$changed++;
warn "\n- $orig";
warn "+ $_";
} elsif (s{^cd $pat\S+}{cd $dir}g && $orig ne $_) {
$changed++;
warn "\n- $orig"; warn "\n- $orig";
warn "+ $_"; warn "+ $_";
} }
} }
print $out $_; print $out $_;
@ -57,7 +68,7 @@ for my $t_file (@t_files) {
close $in; close $in;
} }
print join "\n", map { " $_" } sort @dirs; print join("\n", map { " $_" } sort @dirs), "\n";
sub cd ($) { sub cd ($) {
my $dir = shift; my $dir = shift;

View File

@ -1,6 +1,7 @@
#!/bin/bash #!/bin/bash
root=$(readlink -f -- "$(dirname -- "$0")/..") #root=$(readlink -f -- "$(dirname -- "$0")/..")
root=`perl -MCwd -e'print Cwd::abs_path(shift)' $(dirname -- "$0")/..`
work=$root/work work=$root/work
if [ ! -d $work ]; then if [ ! -d $work ]; then

View File

@ -1,6 +1,7 @@
#!/bin/bash #!/bin/bash
root=$(readlink -f -- "$(dirname -- "$0")/..") #root=$(readlink -f -- "$(dirname -- "$0")/..")
root=`perl -MCwd -e'print Cwd::abs_path(shift)' $(dirname -- "$0")/..`
. util/ver . util/ver
@ -39,7 +40,7 @@ rm -f *.patch || exit 1
cd .. || exit 1 cd .. || exit 1
ver=0.36rc2 ver=0.36rc3
$root/util/get-tarball "http://github.com/agentzh/echo-nginx-module/tarball/v$ver" -O echo-nginx-module-$ver.tar.gz || exit 1 $root/util/get-tarball "http://github.com/agentzh/echo-nginx-module/tarball/v$ver" -O echo-nginx-module-$ver.tar.gz || exit 1
tar -xzf echo-nginx-module-$ver.tar.gz tar -xzf echo-nginx-module-$ver.tar.gz
mv agentzh-echo-nginx-module-* echo-nginx-module-$ver mv agentzh-echo-nginx-module-* echo-nginx-module-$ver
@ -64,21 +65,21 @@ $root/util/get-tarball "http://github.com/agentzh/rds-json-nginx-module/tarball/
tar -xzf 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 mv agentzh-rds-json-nginx-module-* rds-json-nginx-module-$ver || exit 1
ver=0.14 ver=0.15rc1
$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 $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 tar -xzf headers-more-nginx-module-$ver.tar.gz || exit 1
mv agentzh-headers-more-nginx-module-* headers-more-nginx-module-$ver || exit 1 mv agentzh-headers-more-nginx-module-* headers-more-nginx-module-$ver || exit 1
################################# #################################
ver=0.0.15rc9 ver=0.0.15rc10
$root/util/get-tarball "http://github.com/chaoslawful/drizzle-nginx-module/tarball/v$ver" -O drizzle-nginx-module-$ver.tar.gz || exit 1 $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 tar -xzf drizzle-nginx-module-$ver.tar.gz || exit 1
mv chaoslawful-drizzle-nginx-module-* drizzle-nginx-module-$ver || exit 1 mv chaoslawful-drizzle-nginx-module-* drizzle-nginx-module-$ver || exit 1
################################# #################################
ver=0.1.6rc3 ver=0.1.6rc12
$root/util/get-tarball "http://github.com/chaoslawful/lua-nginx-module/tarball/v$ver" -O lua-nginx-module-$ver.tar.gz || exit 1 $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 tar -xzf lua-nginx-module-$ver.tar.gz || exit 1
mv chaoslawful-lua-nginx-module-* ngx_lua-$ver || exit 1 mv chaoslawful-lua-nginx-module-* ngx_lua-$ver || exit 1
@ -99,7 +100,7 @@ mv agentzh-memc-nginx-module-* memc-nginx-module-$ver || exit 1
################################# #################################
ver=0.12rc2 ver=0.12rc4
$root/util/get-tarball "http://github.com/agentzh/srcache-nginx-module/tarball/v$ver" -O srcache-nginx-module-$ver.tar.gz || exit 1 $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 tar -xzf srcache-nginx-module-$ver.tar.gz || exit 1
mv agentzh-srcache-nginx-module-* srcache-nginx-module-$ver || exit 1 mv agentzh-srcache-nginx-module-* srcache-nginx-module-$ver || exit 1
@ -149,7 +150,7 @@ mv FRiCKLE-ngx_postgres-* ngx_postgres-$ver || exit 1
################################# #################################
ver=0.06 ver=0.07rc2
$root/util/get-tarball "http://github.com/agentzh/redis2-nginx-module/tarball/v$ver" -O redis2-nginx-module-$ver.tar.gz || exit 1 $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 tar -xzf redis2-nginx-module-$ver.tar.gz || exit 1
mv agentzh-redis2-nginx-module-* redis2-nginx-module-$ver || exit 1 mv agentzh-redis2-nginx-module-* redis2-nginx-module-$ver || exit 1
@ -176,10 +177,12 @@ rm lua-makefile-fix.patch
################################# #################################
ver=2.0.0-beta6 ver=2.0.0-beta7
$root/util/get-tarball "http://luajit.org/download/LuaJIT-$ver.tar.gz" -O "LuaJIT-$ver.tar.gz" || exit 1 $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 tar -xzf LuaJIT-$ver.tar.gz || exit 1
patch -p0 < $root/patches/LuaJIT-$ver-symlink_lib.patch || exit 1
################################# #################################
ver=0.8 ver=0.8

View File

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
main_ver=0.8.54 main_ver=0.8.54
minor_ver=3 minor_ver=6
version=$main_ver.$minor_ver version=$main_ver.$minor_ver
echo $version echo $version