summaryrefslogtreecommitdiffhomepage
path: root/nginx/Makefile
diff options
context:
space:
mode:
authorHsieh Chin Fan <pham@topo.tw>2025-02-05 10:19:55 +0800
committerHsieh Chin Fan <pham@topo.tw>2025-02-05 10:19:55 +0800
commitf87dc10dec540e1804445acdf3c2f4d03486d6cb (patch)
tree5f93248a643ba3fe3000064ad23667a70a537e84 /nginx/Makefile
parentc230f549fe562e3ca4a1f16824aaea93ac11eaab (diff)
Update
Diffstat (limited to 'nginx/Makefile')
-rw-r--r--nginx/Makefile19
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
3ROOT_DIR := $(dir $(realpath $(lastword $(MAKEFILE_LIST))))
3VERSION=1.27.3 4VERSION=1.27.3
4 5
5all: src /home/pham/git/ngx_http_proxy_connect_module 6all: 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
23src: 23src:
@@ -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 $@