From 9934dd538b0ce116e3b1600272cb46369b082246 Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Wed, 2 Feb 2022 13:34:47 +0800 Subject: init commit --- nginx/Makefile | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 nginx/Makefile (limited to 'nginx/Makefile') diff --git a/nginx/Makefile b/nginx/Makefile new file mode 100644 index 0000000..cb995f7 --- /dev/null +++ b/nginx/Makefile @@ -0,0 +1,28 @@ +.ONESHELL: + +VERSION=1.27.2 + +all: src /home/pham/git/ngx_http_proxy_connect_module + cd $< + nginx -V |& \ + sed -nE 's/^configure arguments: ([^\n]*)$$/\1/p' | \ + sed -nE 's/([^'"'"' \t\n]+('"'"'([^'"'"'\]|\\'"'"'?)*'"'"'|"([^"\\]|\\"?)*")?) ?/\1\n/gp' | \ + xargs ./configure \ + --with-http_xslt_module=dynamic \ + --with-http_dav_module \ + --with-http_image_filter_module \ + --add-dynamic-module=/home/pham/git/ngx_http_proxy_connect_module + make modules + make + sudo make install + #cd ../.. && rm -rf nginx + +src: + curl -O https://nginx.org/download/nginx-${VERSION}.tar.gz + tar zxvf nginx-${VERSION}.tar.gz && mv nginx-${VERSION} $@ + +config: + ln -sf `pwd`/* /etc/nginx + +/home/pham/git/ngx_http_proxy_connect_module: + git clone https://github.com/chobits/ngx_http_proxy_connect_module $@ -- cgit v1.2.3-70-g09d2