blob: d14e24f847a4813f835a1fba7d06cf0501e636ca (
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
./configure
nginx -V |& \
sed -nE 's/^configure arguments: ([^\n]*)$$/\1/p' | \
sed -nE 's/([^'"'"' \t\n]+('"'"'([^'"'"'\]|\\'"'"'?)*'"'"'|"([^"\\]|\\"?)*")?) ?/\1\n/gp' | \
xargs ./configure \
--add-module=/home/pham/git/ngx_http_proxy_connect_module
--with-http_dav_module \
--with-http_image_filter_module \
# --with-http_xslt_module=dynamic \
make modules
make
sudo make install
cd .. && rm -rf src
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 $@
|