blob: b36baf51199f1a2714e968a3f00331d2026dddc9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
.ONESHELL:
VERSION=1.27.3
all: src /home/pham/git/ngx_http_proxy_connect_module
cd $<
patch -p1 </home/pham/git/ngx_http_proxy_connect_module/patch/proxy_connect_rewrite_102101.patch
nginx -V |& \
sed -nE 's/^configure arguments: ([^\n]*)$$/\1/p' | \
sed -nE 's/([^'"'"' \t\n]+('"'"'([^'"'"'\]|\\'"'"'?)*'"'"'|"([^"\\]|\\"?)*")?) ?/\1\n/gp' | \
xargs ./configure \
--sbin-path=/usr/bin/nginx \
--conf-path=/etc/nginx/nginx.conf \
--add-module=/home/pham/git/ngx_http_proxy_connect_module \
--with-http_dav_module \
--with-http_image_filter_module \
--with-http_xslt_module
make modules
make
sudo make install
sudo ln -sf `pwd`/nginx.service /usr/lib/systemd/system/nginx.service
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 $@
|