Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

confirmed that we work with nginx 1.0.5.

  • Loading branch information...
commit 7246580d7477ed9ad924c8b6bf70bca1c6cf5b3a 1 parent fed751a
@agentzh agentzh authored
Showing with 3 additions and 41 deletions.
  1. +1 −1  README
  2. +2 −40 util/build.sh
View
2  README
@@ -64,7 +64,7 @@ Installation
Compatibility
The following versions of Nginx should work with this module:
- * 1.0.x (last tested: 1.0.2)
+ * 1.0.x (last tested: 1.0.5)
* 0.9.x (last tested: 0.9.4)
View
42 util/build.sh
@@ -5,37 +5,9 @@
root=`pwd`
home=~
version=$1
-opts=$2
+force=$2
-target=$root/work/nginx
-
-rm -f ~/work/nginx-$version/objs/addon/src/ndk.o
-rm -f ~/work/nginx-$version/objs/addon/ndk/ndk.o \
- ~/work/nginx-$version/objs/addon/ndk-nginx-module/ndk.o
-
-if [ ! -d ./buildroot ]; then
- mkdir ./buildroot || exit 1
-fi
-
-cd buildroot || exit 1
-
-if [ ! -s "nginx-$version.tar.gz" ]; then
- if [ -f ~/work/nginx-$version.tar.gz ]; then
- cp ~/work/nginx-$version.tar.gz ./ || exit 1
- else
- wget "http://sysoev.ru/nginx/nginx-$version.tar.gz" -O nginx-$version.tar.gz || exit 1
- fi
-
- tar -xzvf nginx-$version.tar.gz || exit 1
-fi
-
-tar -xzvf nginx-$version.tar.gz || exit 1
-cp $root/../no-pool-nginx/nginx-$version-no_pool.patch ./
-patch -p0 < nginx-$version-no_pool.patch
-
-cd nginx-$version/
-if [[ "$BUILD_CLEAN" -eq 1 || ! -f Makefile || "$root/config" -nt Makefile || "$root/util/build.sh" -nt Makefile ]]; then
- ./configure --prefix=$target \
+ngx-build $force $version \
--without-mail_pop3_module \
--without-mail_imap_module \
--without-mail_smtp_module \
@@ -54,13 +26,3 @@ if [[ "$BUILD_CLEAN" -eq 1 || ! -f Makefile || "$root/config" -nt Makefile || "$
#--add-module=$home/work/ndk \
#--without-http_ssi_module # we cannot disable ssi because echo_location_async depends on it (i dunno why?!)
-fi
-if [ -f $target/sbin/nginx ]; then
- rm -f $target/sbin/nginx
-fi
-if [ -f $target/logs/nginx.pid ]; then
- kill `cat $target/logs/nginx.pid`
-fi
-make -j3
-make install
-
Please sign in to comment.
Something went wrong with that request. Please try again.