diff options
Diffstat (limited to 'nginx')
-rw-r--r-- | nginx/Makefile | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/nginx/Makefile b/nginx/Makefile index b36baf5..a5697ef 100644 --- a/nginx/Makefile +++ b/nginx/Makefile | |||
@@ -1,23 +1,23 @@ | |||
1 | .ONESHELL: | 1 | .ONESHELL: |
2 | 2 | ||
3 | ROOT_DIR := $(dir $(realpath $(lastword $(MAKEFILE_LIST)))) | ||
3 | VERSION=1.27.3 | 4 | VERSION=1.27.3 |
4 | 5 | ||
5 | all: src /home/pham/git/ngx_http_proxy_connect_module | 6 | all: src /home/pham/git/ngx-fancyindex |
6 | cd $< | 7 | cd $< |
7 | patch -p1 </home/pham/git/ngx_http_proxy_connect_module/patch/proxy_connect_rewrite_102101.patch | 8 | ./configure \ |
8 | nginx -V |& \ | 9 | --prefix=/etc/nginx \ |
9 | sed -nE 's/^configure arguments: ([^\n]*)$$/\1/p' | \ | ||
10 | sed -nE 's/([^'"'"' \t\n]+('"'"'([^'"'"'\]|\\'"'"'?)*'"'"'|"([^"\\]|\\"?)*")?) ?/\1\n/gp' | \ | ||
11 | xargs ./configure \ | ||
12 | --sbin-path=/usr/bin/nginx \ | 10 | --sbin-path=/usr/bin/nginx \ |
13 | --conf-path=/etc/nginx/nginx.conf \ | 11 | --conf-path=/etc/nginx/nginx.conf \ |
14 | --add-module=/home/pham/git/ngx_http_proxy_connect_module \ | 12 | --with-http_ssl_module \ |
15 | --with-http_dav_module \ | 13 | --with-http_dav_module \ |
16 | --with-http_image_filter_module \ | 14 | --with-http_image_filter_module \ |
17 | --with-http_xslt_module | 15 | --with-http_xslt_module \ |
16 | --add-module=/home/pham/git/ngx-fancyindex | ||
18 | make modules | 17 | make modules |
19 | make | 18 | make |
20 | sudo make install | 19 | sudo make install |
20 | cd $(ROOT_DIR); rm -rf $< | ||
21 | sudo ln -sf `pwd`/nginx.service /usr/lib/systemd/system/nginx.service | 21 | sudo ln -sf `pwd`/nginx.service /usr/lib/systemd/system/nginx.service |
22 | 22 | ||
23 | src: | 23 | src: |
@@ -29,3 +29,6 @@ config: | |||
29 | 29 | ||
30 | /home/pham/git/ngx_http_proxy_connect_module: | 30 | /home/pham/git/ngx_http_proxy_connect_module: |
31 | git clone https://github.com/chobits/ngx_http_proxy_connect_module $@ | 31 | git clone https://github.com/chobits/ngx_http_proxy_connect_module $@ |
32 | |||
33 | /home/pham/git/ngx-fancyindex: | ||
34 | git clone https://github.com/aperezdc/ngx-fancyindex $@ | ||