0
|
1
|
|
2 # Copyright (C) Igor Sysoev
|
|
3
|
|
4
|
148
|
5 if [ $USE_PERL = YES ]; then
|
|
6
|
|
7 cat << END >> $NGX_MAKEFILE
|
|
8
|
|
9 install_perl_modules:
|
|
10 cd $NGX_OBJS/src/http/modules/perl && make install
|
|
11 END
|
|
12
|
|
13 NGX_INSTALL_PERL_MODULES=install_perl_modules
|
|
14
|
|
15 fi
|
|
16
|
|
17
|
18
|
18 cat << END >> $NGX_MAKEFILE
|
16
|
19
|
148
|
20 install: $NGX_OBJS${ngx_dirsep}nginx${ngx_binext} \
|
|
21 $NGX_INSTALL_PERL_MODULES
|
44
|
22 test -d '$NGX_PREFIX' || mkdir -p '$NGX_PREFIX'
|
0
|
23
|
44
|
24 test -d '`dirname "$NGX_SBIN_PATH"`' \
|
|
25 || mkdir -p '`dirname "$NGX_SBIN_PATH"`'
|
|
26 test ! -f '$NGX_SBIN_PATH' || mv '$NGX_SBIN_PATH' '$NGX_SBIN_PATH.old'
|
|
27 cp $NGX_OBJS/nginx '$NGX_SBIN_PATH'
|
0
|
28
|
44
|
29 test -d '`dirname "$NGX_CONF_PATH"`' \
|
|
30 || mkdir -p '`dirname "$NGX_CONF_PATH"`'
|
0
|
31
|
44
|
32 cp conf/koi-win '`dirname "$NGX_CONF_PATH"`'
|
206
|
33 cp conf/koi-utf '`dirname "$NGX_CONF_PATH"`'
|
|
34 cp conf/win-utf '`dirname "$NGX_CONF_PATH"`'
|
0
|
35
|
44
|
36 test -f '`dirname "$NGX_CONF_PATH"`/mime.types' || \
|
|
37 cp conf/mime.types '`dirname "$NGX_CONF_PATH"`/mime.types'
|
|
38 cp conf/mime.types '`dirname "$NGX_CONF_PATH"`/mime.types.default'
|
0
|
39
|
44
|
40 test -f '$NGX_CONF_PATH' || cp conf/nginx.conf '$NGX_CONF_PATH'
|
|
41 cp conf/nginx.conf '`dirname "$NGX_CONF_PATH"`/nginx.conf.default'
|
0
|
42
|
44
|
43 test -d '`dirname "$NGX_PID_PATH"`' \
|
|
44 || mkdir -p '`dirname "$NGX_PID_PATH"`'
|
0
|
45
|
44
|
46 test -d '`dirname "$NGX_HTTP_LOG_PATH"`' || \
|
|
47 mkdir -p '`dirname "$NGX_HTTP_LOG_PATH"`'
|
0
|
48
|
44
|
49 test -d '$NGX_PREFIX/html' || cp -r html '$NGX_PREFIX'
|
0
|
50 END
|
|
51
|
|
52
|
18
|
53 if test -n "$NGX_ERROR_LOG_PATH"; then
|
|
54 cat << END >> $NGX_MAKEFILE
|
0
|
55
|
44
|
56 test -d '`dirname "$NGX_ERROR_LOG_PATH"`' || \
|
|
57 mkdir -p '`dirname "$NGX_ERROR_LOG_PATH"`'
|
0
|
58 END
|
|
59
|
|
60 fi
|