aboutsummaryrefslogtreecommitdiff
path: root/extra/nginx/build
blob: f6a3b41d10ae4a6a7a950a730fbe437adfbdf520 (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
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/sh -e

export CFLAGS="$CFLAGS -static"

cfgdir=/etc/nginx
tmpdir=/var/tmp/nginx

./configure \
    --prefix=/etc/nginx \
    --sbin-path=/usr/bin/nginx \
    --conf-path=$cfgdir/nginx.conf \
    --modules-path=/usr/share/nginx/modules \
    --pid-path=/run/nginx.pid \
    --lock-path=/var/lock/nginx.lock \
    --error-log-path=/var/log/nginx/error.log \
    --http-log-path=/var/log/nginx/access.log \
    --http-client-body-temp-path=$tmpdir \
    --user=nginx --group=nginx \
    --with-stream \
    --with-stream_ssl_module \
    --with-stream_realip_module \
    --with-stream_ssl_preread_module \
    --with-pcre-jit \
    --with-http_ssl_module \
    --with-http_dav_module \
    --with-http_gzip_static_module \
    --with-http_v2_module \
    --with-http_gunzip_module \
    --with-http_sub_module \
    --with-http_stub_status_module \
    --http-uwsgi-temp-path=${tmpdir}/uwsgi \
    --http-scgi-temp-path=${tmpdir}/scgi \
    --http-fastcgi-temp-path=${tmpdir}/fastcgi \
    --http-proxy-temp-path=${tmpdir}/proxy \
    --http-client-body-temp-path=${tmpdir}/client-body

make
make DESTDIR="$1" install

# Don't actually install this directory into the package.
rm -r "$1/run"

clman -d "$1" man/nginx.8