diff options
author | Hsieh Chin Fan <typebrook@gmail.com> | 2022-02-02 13:34:47 +0800 |
---|---|---|
committer | Hsieh Chin Fan <pham@topo.tw> | 2024-11-30 21:09:29 +0800 |
commit | 9934dd538b0ce116e3b1600272cb46369b082246 (patch) | |
tree | 2f28c6c362201151eaf8218e566479ed7eb72070 /nginx/Makefile |
init commit
Diffstat (limited to 'nginx/Makefile')
-rw-r--r-- | nginx/Makefile | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/nginx/Makefile b/nginx/Makefile new file mode 100644 index 0000000..cb995f7 --- /dev/null +++ b/nginx/Makefile | |||
@@ -0,0 +1,28 @@ | |||
1 | .ONESHELL: | ||
2 | |||
3 | VERSION=1.27.2 | ||
4 | |||
5 | all: src /home/pham/git/ngx_http_proxy_connect_module | ||
6 | cd $< | ||
7 | nginx -V |& \ | ||
8 | sed -nE 's/^configure arguments: ([^\n]*)$$/\1/p' | \ | ||
9 | sed -nE 's/([^'"'"' \t\n]+('"'"'([^'"'"'\]|\\'"'"'?)*'"'"'|"([^"\\]|\\"?)*")?) ?/\1\n/gp' | \ | ||
10 | xargs ./configure \ | ||
11 | --with-http_xslt_module=dynamic \ | ||
12 | --with-http_dav_module \ | ||
13 | --with-http_image_filter_module \ | ||
14 | --add-dynamic-module=/home/pham/git/ngx_http_proxy_connect_module | ||
15 | make modules | ||
16 | make | ||
17 | sudo make install | ||
18 | #cd ../.. && rm -rf nginx | ||
19 | |||
20 | src: | ||
21 | curl -O https://nginx.org/download/nginx-${VERSION}.tar.gz | ||
22 | tar zxvf nginx-${VERSION}.tar.gz && mv nginx-${VERSION} $@ | ||
23 | |||
24 | config: | ||
25 | ln -sf `pwd`/* /etc/nginx | ||
26 | |||
27 | /home/pham/git/ngx_http_proxy_connect_module: | ||
28 | git clone https://github.com/chobits/ngx_http_proxy_connect_module $@ | ||