summaryrefslogtreecommitdiff
path: root/srcache-nginx-module-0.33/util
diff options
context:
space:
mode:
authorkaiwu <kaiwu2004@gmail.com>2025-03-01 12:42:23 +0800
committerkaiwu <kaiwu2004@gmail.com>2025-03-01 12:42:23 +0800
commit3f33461e4948bf05e60bdff35ec6c57a649c7860 (patch)
tree284c2ba95a41536ae1bff6bea710db0709a64739 /srcache-nginx-module-0.33/util
downloadopenresty-3f33461e4948bf05e60bdff35ec6c57a649c7860.tar.gz
openresty-3f33461e4948bf05e60bdff35ec6c57a649c7860.zip
openresty bundle
Diffstat (limited to 'srcache-nginx-module-0.33/util')
-rwxr-xr-xsrcache-nginx-module-0.33/util/build.sh75
1 files changed, 75 insertions, 0 deletions
diff --git a/srcache-nginx-module-0.33/util/build.sh b/srcache-nginx-module-0.33/util/build.sh
new file mode 100755
index 0000000..f28bac0
--- /dev/null
+++ b/srcache-nginx-module-0.33/util/build.sh
@@ -0,0 +1,75 @@
+#!/bin/bash
+
+# this file is only meant to be used by the module developers.
+
+root=`pwd`
+version=$1
+home=~
+force=$2
+
+ngx_redis_version=0.3.7
+cd $home/work/nginx/ || exit 1
+ngx_redis_path=$home/work/nginx/ngx_http_redis-$ngx_redis_version
+rm -rf $ngx_redis_path || exit 1
+tar -xzvf ngx_http_redis-$ngx_redis_version.tar.gz || exit 1
+
+cd $ngx_redis_path || exit 1
+
+patch_file=$root/../openresty/patches/ngx_http_redis-$ngx_redis_version-variables_in_redis_pass.patch
+if [ ! -f $patch_file ]; then
+ echo "$patch_file: No such file" > /dev/stderr
+ exit 1
+fi
+# we ignore any errors here since the target directory might have already been patched.
+patch -p1 < $patch_file || exit 1
+
+cd $ngx_redis_path || exit 1
+
+patch_file=$root/../openresty/patches/ngx_http_redis-$ngx_redis_version-default_port_fix.patch
+if [ ! -f $patch_file ]; then
+ echo "$patch_file: No such file" > /dev/stderr
+ exit 1
+fi
+# we ignore any errors here since the target directory might have already been patched.
+patch -p1 < $patch_file || exit 1
+
+cd $root || exit 1
+
+ #--without-http_memcached_module \
+ngx-build $force $version \
+ --with-cc-opt="-O0" \
+ --with-ld-opt="-Wl,-rpath,/opt/postgres/lib:/opt/drizzle/lib:/usr/local/lib:/home/lz/lib" \
+ --without-mail_pop3_module \
+ --without-mail_imap_module \
+ --without-mail_smtp_module \
+ --without-http_upstream_ip_hash_module \
+ --without-http_empty_gif_module \
+ --without-http_referer_module \
+ --without-http_autoindex_module \
+ --without-http_auth_basic_module \
+ --without-http_userid_module \
+ --add-module=$root/../ndk-nginx-module \
+ --add-module=$root/../set-misc-nginx-module \
+ --add-module=$ngx_redis_path \
+ --add-module=$root/../xss-nginx-module \
+ --add-module=$root/../redis2-nginx-module \
+ --add-module=$root/../eval-nginx-module \
+ --add-module=$root/../echo-nginx-module \
+ --add-module=$root/../headers-more-nginx-module \
+ --add-module=$root $opts \
+ --add-module=$root/../lua-nginx-module \
+ --add-module=$root/../rds-json-nginx-module \
+ --add-module=$root/../drizzle-nginx-module \
+ --add-module=$root/../postgres-nginx-module \
+ --add-module=$root/../memc-nginx-module \
+ --add-module=$home/work/nginx/ngx_http_upstream_keepalive-0.7 \
+ --with-select_module \
+ --with-poll_module \
+ --without-http_ssi_module \
+ --with-debug
+ #--add-module=/home/agentz/git/dodo/utils/dodo-hook \
+ #--add-module=$home/work/ngx_http_auth_request-0.1 #\
+ #--with-rtsig_module
+ #--with-cc-opt="-g3 -O0"
+ #--add-module=$root/../echo-nginx-module \
+