Compare commits
145 commits
quic
...
stable-1.0
Author | SHA1 | Date | |
---|---|---|---|
|
f45e2b4360 | ||
|
225229c1ba | ||
|
dc86cb5766 | ||
|
463bfad07e | ||
|
49b24fcf2e | ||
|
eba484468f | ||
|
d6c037668f | ||
|
7b781638e8 | ||
|
d5efcac176 | ||
|
bc95a96367 | ||
|
9787b85c48 | ||
|
f0db59f1a7 | ||
|
8762382663 | ||
|
02b4f0abed | ||
|
0275596328 | ||
|
f6df207840 | ||
|
9bf9bc0db4 | ||
|
70573cf4db | ||
|
80c9a0548b | ||
|
a591ee159a | ||
|
c13df9cd39 | ||
|
a5579fdaff | ||
|
e88e3cafaf | ||
|
756eb5325e | ||
|
b1bc2a641e | ||
|
ae0f88668a | ||
|
8d8ccfc7b0 | ||
|
9a23335abe | ||
|
11006b8d5b | ||
|
39a288282c | ||
|
0323c6f524 | ||
|
f488ff8304 | ||
|
d0fe3dd8bc | ||
|
f00b1da7d2 | ||
|
e84fb9b4f6 | ||
|
2d97c6e2db | ||
|
2692849e93 | ||
|
4340fb3b50 | ||
|
1d018ba09e | ||
|
91ca805afb | ||
|
4e0e62712f | ||
|
217ccc41c5 | ||
|
b48566c574 | ||
|
f6ee2be6a0 | ||
|
d750b1e99e | ||
|
202244ec5e | ||
|
59308b99b9 | ||
|
ed3d2814b9 | ||
|
d64f9f083f | ||
|
3b898d19e8 | ||
|
9e51bcdadb | ||
|
daed098825 | ||
|
9afbcf447d | ||
|
9cccc74346 | ||
|
1985212edb | ||
|
853864245a | ||
|
db7394b9a5 | ||
|
ad50cf7b86 | ||
|
620810987a | ||
|
6b14514f95 | ||
|
de0d84a82a | ||
|
eb797a1658 | ||
|
f73a105e40 | ||
|
c982208430 | ||
|
a931dc4341 | ||
|
c2dac94b9d | ||
|
c5bf5678a3 | ||
|
7a35eab981 | ||
|
def9ecde1a | ||
|
a78bab3b57 | ||
|
509f7ae156 | ||
|
8d375710c2 | ||
|
5c5d241e48 | ||
|
1f6eddd095 | ||
|
a96d698a88 | ||
|
f5c8a31e98 | ||
|
701bb91e15 | ||
|
b7d4fc139b | ||
|
e4715c7e9f | ||
|
b2ee2d78fe | ||
|
612bd3f998 | ||
|
199832cc75 | ||
|
8b346e57ee | ||
|
ad866a4e60 | ||
|
631181c34f | ||
|
3de2644bf4 | ||
|
96c920f3ad | ||
|
7e06758270 | ||
|
6155bf1ed2 | ||
|
5d743f5d2f | ||
|
30c8e394bd | ||
|
6b06b637ce | ||
|
8c003d705d | ||
|
58af1da61e | ||
|
79318b1dab | ||
|
816c6c8049 | ||
|
60fc9be85d | ||
|
29f1ce37cb | ||
|
22f9238e11 | ||
|
b1913e7397 | ||
|
35251a4b01 | ||
|
a910acd37c | ||
|
1296199fde | ||
|
1312192925 | ||
|
7af167615d | ||
|
82056dfb6d | ||
|
192cd8704d | ||
|
28bf21f99e | ||
|
920ca98c27 | ||
|
9b11d5d016 | ||
|
526a658409 | ||
|
805efdf4d7 | ||
|
5b8d8038ef | ||
|
0bef326515 | ||
|
1ab2343cc4 | ||
|
a92fa3b1db | ||
|
4f1f650ef2 | ||
|
62e45cf0ab | ||
|
3b51e822bb | ||
|
eb88e0b937 | ||
|
c7bc53943d | ||
|
1ab0b45def | ||
|
6ecb4fc5c0 | ||
|
23aceec62e | ||
|
31a47bc963 | ||
|
e45a617c7b | ||
|
7e6ba956df | ||
|
cfa940cfea | ||
|
7916dd297a | ||
|
2a8f8a74e6 | ||
|
f9d38150d3 | ||
|
62b51752a2 | ||
|
eb9146d1be | ||
|
3648d88432 | ||
|
5f593bbc51 | ||
|
c68a6190fc | ||
|
b7bac8c9f9 | ||
|
b0e9b07a39 | ||
|
2d6041994f | ||
|
951bdd4c70 | ||
|
9ba764fd7b | ||
|
bbcdf62eb8 | ||
|
da5a35b5a3 | ||
|
692f277fcc | ||
|
f0c7a0cab6 |
372 changed files with 9583 additions and 4399 deletions
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
# Copyright (C) Igor Sysoev
|
# Copyright (C) Igor Sysoev
|
||||||
|
# Copyright (C) Nginx, Inc.
|
||||||
|
|
||||||
|
|
||||||
# aCC: HP ANSI C++ B3910B A.03.55.02
|
# aCC: HP ANSI C++ B3910B A.03.55.02
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
# Copyright (C) Igor Sysoev
|
# Copyright (C) Igor Sysoev
|
||||||
|
# Copyright (C) Nginx, Inc.
|
||||||
|
|
||||||
|
|
||||||
# Borland C++ 5.5
|
# Borland C++ 5.5
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
# Copyright (C) Igor Sysoev
|
# Copyright (C) Igor Sysoev
|
||||||
|
# Copyright (C) Nginx, Inc.
|
||||||
|
|
||||||
|
|
||||||
# Compaq C V6.5-207
|
# Compaq C V6.5-207
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
# Copyright (C) Igor Sysoev
|
# Copyright (C) Igor Sysoev
|
||||||
|
# Copyright (C) Nginx, Inc.
|
||||||
|
|
||||||
|
|
||||||
LINK="\$(CC)"
|
LINK="\$(CC)"
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
# Copyright (C) Igor Sysoev
|
# Copyright (C) Igor Sysoev
|
||||||
|
# Copyright (C) Nginx, Inc.
|
||||||
|
|
||||||
|
|
||||||
# gcc 2.7.2.3, 2.8.1, 2.95.4, egcs-1.1.2
|
# gcc 2.7.2.3, 2.8.1, 2.95.4, egcs-1.1.2
|
||||||
|
|
34
auto/cc/icc
34
auto/cc/icc
|
@ -1,8 +1,9 @@
|
||||||
|
|
||||||
# Copyright (C) Igor Sysoev
|
# Copyright (C) Igor Sysoev
|
||||||
|
# Copyright (C) Nginx, Inc.
|
||||||
|
|
||||||
|
|
||||||
# Intel C++ compiler 7.1, 8.0, 8.1, 9.0
|
# Intel C++ compiler 7.1, 8.0, 8.1, 9.0, 11.1
|
||||||
|
|
||||||
NGX_ICC_VER=`$CC -V 2>&1 | grep 'Version' 2>&1 \
|
NGX_ICC_VER=`$CC -V 2>&1 | grep 'Version' 2>&1 \
|
||||||
| sed -e 's/^.* Version \([^ ]*\) *Build.*$/\1/'`
|
| sed -e 's/^.* Version \([^ ]*\) *Build.*$/\1/'`
|
||||||
|
@ -15,32 +16,7 @@ have=NGX_COMPILER value="\"Intel C Compiler $NGX_ICC_VER\"" . auto/define
|
||||||
# optimizations
|
# optimizations
|
||||||
|
|
||||||
CFLAGS="$CFLAGS -O"
|
CFLAGS="$CFLAGS -O"
|
||||||
# inline the functions declared with __inline
|
|
||||||
#CFLAGS="$CFLAGS -Ob1"
|
|
||||||
# inline any function, at the compiler's discretion
|
|
||||||
CFLAGS="$CFLAGS -Ob2"
|
|
||||||
|
|
||||||
# multi-file IP optimizations
|
|
||||||
case "$NGX_ICC_VER" in
|
|
||||||
9.*)
|
|
||||||
IPO="-ipo"
|
|
||||||
;;
|
|
||||||
|
|
||||||
# 8.1.38 under FreeBSD can not link -ipo
|
|
||||||
8.1)
|
|
||||||
IPO="-ip"
|
|
||||||
;;
|
|
||||||
|
|
||||||
*)
|
|
||||||
IPO="-ipo -ipo_obj"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
# single-file IP optimizations
|
|
||||||
#IPO="-ip"
|
|
||||||
|
|
||||||
CFLAGS="$CFLAGS $IPO"
|
|
||||||
CORE_LINK="$CORE_LINK $IPO"
|
|
||||||
CORE_LINK="$CORE_LINK -opt_report_file=$NGX_OBJS/opt_report_file"
|
CORE_LINK="$CORE_LINK -opt_report_file=$NGX_OBJS/opt_report_file"
|
||||||
|
|
||||||
|
|
||||||
|
@ -64,15 +40,15 @@ esac
|
||||||
CFLAGS="$CFLAGS $CPU_OPT"
|
CFLAGS="$CFLAGS $CPU_OPT"
|
||||||
|
|
||||||
if [ ".$PCRE_OPT" = "." ]; then
|
if [ ".$PCRE_OPT" = "." ]; then
|
||||||
PCRE_OPT="-O $IPO $CPU_OPT"
|
PCRE_OPT="-O $CPU_OPT"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ".$MD5_OPT" = "." ]; then
|
if [ ".$MD5_OPT" = "." ]; then
|
||||||
MD5_OPT="-O $IPO $CPU_OPT"
|
MD5_OPT="-O $CPU_OPT"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ".$ZLIB_OPT" = "." ]; then
|
if [ ".$ZLIB_OPT" = "." ]; then
|
||||||
ZLIB_OPT="-O $IPO $CPU_OPT"
|
ZLIB_OPT="-O $CPU_OPT"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
# Copyright (C) Igor Sysoev
|
# Copyright (C) Igor Sysoev
|
||||||
|
# Copyright (C) Nginx, Inc.
|
||||||
|
|
||||||
|
|
||||||
# MSVC 6.0 SP2
|
# MSVC 6.0 SP2
|
||||||
|
|
19
auto/cc/name
19
auto/cc/name
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
# Copyright (C) Igor Sysoev
|
# Copyright (C) Igor Sysoev
|
||||||
|
# Copyright (C) Nginx, Inc.
|
||||||
|
|
||||||
|
|
||||||
if [ "$NGX_PLATFORM" != win32 ]; then
|
if [ "$NGX_PLATFORM" != win32 ]; then
|
||||||
|
@ -25,6 +26,13 @@ fi
|
||||||
|
|
||||||
if [ "$CC" = cl ]; then
|
if [ "$CC" = cl ]; then
|
||||||
if `$NGX_WINE $CC -v 2>&1 \
|
if `$NGX_WINE $CC -v 2>&1 \
|
||||||
|
| grep '^Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16' \
|
||||||
|
>/dev/null 2>&1`; then
|
||||||
|
|
||||||
|
NGX_CC_NAME=msvc10
|
||||||
|
echo " + using Microsoft Visual C++ 10 compiler"
|
||||||
|
|
||||||
|
else if `$NGX_WINE $CC -v 2>&1 \
|
||||||
| grep '^Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14' \
|
| grep '^Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14' \
|
||||||
>/dev/null 2>&1`; then
|
>/dev/null 2>&1`; then
|
||||||
|
|
||||||
|
@ -43,6 +51,7 @@ if [ "$CC" = cl ]; then
|
||||||
echo " + using Microsoft Visual C++ compiler"
|
echo " + using Microsoft Visual C++ compiler"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
else
|
else
|
||||||
if [ "$CC" = wcl386 ]; then
|
if [ "$CC" = wcl386 ]; then
|
||||||
|
@ -54,16 +63,16 @@ if [ "$CC" = bcc32 ]; then
|
||||||
NGX_CC_NAME=bcc
|
NGX_CC_NAME=bcc
|
||||||
echo " + using Borland C++ compiler"
|
echo " + using Borland C++ compiler"
|
||||||
|
|
||||||
else
|
|
||||||
if `$CC -v 2>&1 | grep 'gcc version' >/dev/null 2>&1`; then
|
|
||||||
NGX_CC_NAME=gcc
|
|
||||||
echo " + using GNU C compiler"
|
|
||||||
|
|
||||||
else
|
else
|
||||||
if `$CC -V 2>&1 | grep '^Intel(R) C' >/dev/null 2>&1`; then
|
if `$CC -V 2>&1 | grep '^Intel(R) C' >/dev/null 2>&1`; then
|
||||||
NGX_CC_NAME=icc
|
NGX_CC_NAME=icc
|
||||||
echo " + using Intel C++ compiler"
|
echo " + using Intel C++ compiler"
|
||||||
|
|
||||||
|
else
|
||||||
|
if `$CC -v 2>&1 | grep 'gcc version' >/dev/null 2>&1`; then
|
||||||
|
NGX_CC_NAME=gcc
|
||||||
|
echo " + using GNU C compiler"
|
||||||
|
|
||||||
else
|
else
|
||||||
if `$CC -V 2>&1 | grep 'Sun C' >/dev/null 2>&1`; then
|
if `$CC -V 2>&1 | grep 'Sun C' >/dev/null 2>&1`; then
|
||||||
NGX_CC_NAME=sunc
|
NGX_CC_NAME=sunc
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
# Copyright (C) Igor Sysoev
|
# Copyright (C) Igor Sysoev
|
||||||
|
# Copyright (C) Nginx, Inc.
|
||||||
|
|
||||||
|
|
||||||
# Open Watcom C 1.0, 1.2, 1.3
|
# Open Watcom C 1.0, 1.2, 1.3
|
||||||
|
|
23
auto/cc/sunc
23
auto/cc/sunc
|
@ -1,11 +1,14 @@
|
||||||
|
|
||||||
# Copyright (C) Igor Sysoev
|
# Copyright (C) Igor Sysoev
|
||||||
|
# Copyright (C) Nginx, Inc.
|
||||||
|
|
||||||
|
|
||||||
# Sun C 5.7 Patch 117837-04 2005/05/11 Sun Studio 10
|
# Sun C 5.7 Patch 117837-04 2005/05/11 Sun Studio 10
|
||||||
# Sun C 5.8 2005/10/13 Sun Studio 11
|
# Sun C 5.8 2005/10/13 Sun Studio 11
|
||||||
# Sun C 5.9 SunOS_i386 2007/05/03 Sun Studio 12
|
# Sun C 5.9 SunOS_i386 2007/05/03 Sun Studio 12
|
||||||
# Sun C 5.9 SunOS_sparc 2007/05/03
|
# Sun C 5.9 SunOS_sparc 2007/05/03
|
||||||
|
# Sun C 5.10 SunOS_i386 2009/06/03 Sun Studio 12.1
|
||||||
|
# Sun C 5.11 SunOS_i386 2010/08/13 Sun Studio 12.2
|
||||||
|
|
||||||
NGX_SUNC_VER=`$CC -V 2>&1 | grep 'Sun C' 2>&1 \
|
NGX_SUNC_VER=`$CC -V 2>&1 | grep 'Sun C' 2>&1 \
|
||||||
| sed -e 's/^.* Sun C \(.*\)/\1/'`
|
| sed -e 's/^.* Sun C \(.*\)/\1/'`
|
||||||
|
@ -57,9 +60,19 @@ esac
|
||||||
|
|
||||||
# optimizations
|
# optimizations
|
||||||
|
|
||||||
|
# 20736 == 0x5100, Sun Studio 12.1
|
||||||
|
|
||||||
|
if [ "$ngx_sunc_ver" -ge 20736 ]; then
|
||||||
|
ngx_fast="-fast"
|
||||||
|
|
||||||
|
else
|
||||||
|
# older versions had problems with bit-fields
|
||||||
|
ngx_fast="-fast -xalias_level=any"
|
||||||
|
fi
|
||||||
|
|
||||||
IPO=-xipo
|
IPO=-xipo
|
||||||
CFLAGS="$CFLAGS -fast $IPO"
|
CFLAGS="$CFLAGS $ngx_fast $IPO"
|
||||||
CORE_LINK="$CORE_LINK -fast $IPO"
|
CORE_LINK="$CORE_LINK $ngx_fast $IPO"
|
||||||
|
|
||||||
|
|
||||||
case $CPU in
|
case $CPU in
|
||||||
|
@ -126,15 +139,15 @@ CFLAGS="$CFLAGS $CPU_OPT"
|
||||||
|
|
||||||
|
|
||||||
if [ ".$PCRE_OPT" = "." ]; then
|
if [ ".$PCRE_OPT" = "." ]; then
|
||||||
PCRE_OPT="-fast $IPO $CPU_OPT"
|
PCRE_OPT="$ngx_fast $IPO $CPU_OPT"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ".$MD5_OPT" = "." ]; then
|
if [ ".$MD5_OPT" = "." ]; then
|
||||||
MD5_OPT="-fast $IPO $CPU_OPT"
|
MD5_OPT="$ngx_fast $IPO $CPU_OPT"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ".$ZLIB_OPT" = "." ]; then
|
if [ ".$ZLIB_OPT" = "." ]; then
|
||||||
ZLIB_OPT="-fast $IPO $CPU_OPT"
|
ZLIB_OPT="$ngx_fast $IPO $CPU_OPT"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
1
auto/configure
vendored
1
auto/configure
vendored
|
@ -1,6 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# Copyright (C) Igor Sysoev
|
# Copyright (C) Igor Sysoev
|
||||||
|
# Copyright (C) Nginx, Inc.
|
||||||
|
|
||||||
|
|
||||||
. auto/options
|
. auto/options
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
# Copyright (C) Igor Sysoev
|
# Copyright (C) Igor Sysoev
|
||||||
|
# Copyright (C) Nginx, Inc.
|
||||||
|
|
||||||
|
|
||||||
cat << END >> $NGX_AUTO_CONFIG_H
|
cat << END >> $NGX_AUTO_CONFIG_H
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
# Copyright (C) Igor Sysoev
|
# Copyright (C) Igor Sysoev
|
||||||
|
# Copyright (C) Nginx, Inc.
|
||||||
|
|
||||||
|
|
||||||
echo $ngx_n "checking for system endianess ...$ngx_c"
|
echo $ngx_n "checking for system endianess ...$ngx_c"
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
# Copyright (C) Igor Sysoev
|
# Copyright (C) Igor Sysoev
|
||||||
|
# Copyright (C) Nginx, Inc.
|
||||||
|
|
||||||
|
|
||||||
echo $ngx_n "checking for $ngx_feature ...$ngx_c"
|
echo $ngx_n "checking for $ngx_feature ...$ngx_c"
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
# Copyright (C) Igor Sysoev
|
# Copyright (C) Igor Sysoev
|
||||||
|
# Copyright (C) Nginx, Inc.
|
||||||
|
|
||||||
|
|
||||||
cat << END >> $NGX_AUTO_CONFIG_H
|
cat << END >> $NGX_AUTO_CONFIG_H
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
# Copyright (C) Igor Sysoev
|
# Copyright (C) Igor Sysoev
|
||||||
|
# Copyright (C) Nginx, Inc.
|
||||||
|
|
||||||
|
|
||||||
cat << END >> $NGX_AUTO_HEADERS_H
|
cat << END >> $NGX_AUTO_HEADERS_H
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
# Copyright (C) Igor Sysoev
|
# Copyright (C) Igor Sysoev
|
||||||
|
# Copyright (C) Nginx, Inc.
|
||||||
|
|
||||||
|
|
||||||
ngx_include="unistd.h"; . auto/include
|
ngx_include="unistd.h"; . auto/include
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
# Copyright (C) Igor Sysoev
|
# Copyright (C) Igor Sysoev
|
||||||
|
# Copyright (C) Nginx, Inc.
|
||||||
|
|
||||||
|
|
||||||
echo $ngx_n "checking for $ngx_include ...$ngx_c"
|
echo $ngx_n "checking for $ngx_include ...$ngx_c"
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
# Copyright (C) Igor Sysoev
|
# Copyright (C) Igor Sysoev
|
||||||
|
# Copyright (C) Nginx, Inc.
|
||||||
|
|
||||||
|
|
||||||
NGX_MAKEFILE=$NGX_OBJS/Makefile
|
NGX_MAKEFILE=$NGX_OBJS/Makefile
|
||||||
|
|
27
auto/install
27
auto/install
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
# Copyright (C) Igor Sysoev
|
# Copyright (C) Igor Sysoev
|
||||||
|
# Copyright (C) Nginx, Inc.
|
||||||
|
|
||||||
|
|
||||||
if [ $USE_PERL = YES ]; then
|
if [ $USE_PERL = YES ]; then
|
||||||
|
@ -53,7 +54,7 @@ esac
|
||||||
|
|
||||||
|
|
||||||
case ".$NGX_ERROR_LOG_PATH" in
|
case ".$NGX_ERROR_LOG_PATH" in
|
||||||
./*)
|
./* | .)
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
|
@ -72,14 +73,28 @@ case ".$NGX_HTTP_LOG_PATH" in
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
||||||
|
if test -f man/nginx.8 ; then
|
||||||
|
NGX_MAN=man/nginx.8
|
||||||
|
else
|
||||||
|
NGX_MAN=docs/man/nginx.8
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test -d html ; then
|
||||||
|
NGX_HTML=html
|
||||||
|
else
|
||||||
|
NGX_HTML=docs/html
|
||||||
|
fi
|
||||||
|
|
||||||
cat << END >> $NGX_MAKEFILE
|
cat << END >> $NGX_MAKEFILE
|
||||||
|
|
||||||
manpage:
|
manpage: $NGX_OBJS/nginx.8
|
||||||
|
|
||||||
|
$NGX_OBJS/nginx.8: $NGX_MAN $NGX_AUTO_CONFIG_H
|
||||||
sed -e "s|%%PREFIX%%|$NGX_PREFIX|" \\
|
sed -e "s|%%PREFIX%%|$NGX_PREFIX|" \\
|
||||||
-e "s|%%PID_PATH%%|$NGX_PID_PATH|" \\
|
-e "s|%%PID_PATH%%|$NGX_PID_PATH|" \\
|
||||||
-e "s|%%CONF_PATH%%|$NGX_CONF_PATH|" \\
|
-e "s|%%CONF_PATH%%|$NGX_CONF_PATH|" \\
|
||||||
-e "s|%%ERROR_LOG_PATH%%|$NGX_ERROR_LOG_PATH|" \\
|
-e "s|%%ERROR_LOG_PATH%%|${NGX_ERROR_LOG_PATH:-stderr}|" \\
|
||||||
< man/nginx.8 > $NGX_OBJS/nginx.8
|
< $NGX_MAN > \$@
|
||||||
|
|
||||||
install: $NGX_OBJS${ngx_dirsep}nginx${ngx_binext} \
|
install: $NGX_OBJS${ngx_dirsep}nginx${ngx_binext} \
|
||||||
$NGX_INSTALL_PERL_MODULES
|
$NGX_INSTALL_PERL_MODULES
|
||||||
|
@ -133,11 +148,11 @@ install: $NGX_OBJS${ngx_dirsep}nginx${ngx_binext} \
|
||||||
mkdir -p '\$(DESTDIR)`dirname "$NGX_HTTP_LOG_PATH"`'
|
mkdir -p '\$(DESTDIR)`dirname "$NGX_HTTP_LOG_PATH"`'
|
||||||
|
|
||||||
test -d '\$(DESTDIR)$NGX_PREFIX/html' \
|
test -d '\$(DESTDIR)$NGX_PREFIX/html' \
|
||||||
|| cp -r html '\$(DESTDIR)$NGX_PREFIX'
|
|| cp -R $NGX_HTML '\$(DESTDIR)$NGX_PREFIX'
|
||||||
END
|
END
|
||||||
|
|
||||||
|
|
||||||
if test -n "\$(DESTDIR)$NGX_ERROR_LOG_PATH"; then
|
if test -n "$NGX_ERROR_LOG_PATH"; then
|
||||||
cat << END >> $NGX_MAKEFILE
|
cat << END >> $NGX_MAKEFILE
|
||||||
|
|
||||||
test -d '\$(DESTDIR)`dirname "$NGX_ERROR_LOG_PATH"`' || \
|
test -d '\$(DESTDIR)`dirname "$NGX_ERROR_LOG_PATH"`' || \
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
# Copyright (C) Igor Sysoev
|
# Copyright (C) Igor Sysoev
|
||||||
|
# Copyright (C) Nginx, Inc.
|
||||||
|
|
||||||
|
|
||||||
if [ $USE_PCRE = YES -o $PCRE != NONE ]; then
|
if [ $USE_PCRE = YES -o $PCRE != NONE ]; then
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
# Copyright (C) Igor Sysoev
|
# Copyright (C) Igor Sysoev
|
||||||
|
# Copyright (C) Nginx, Inc.
|
||||||
|
|
||||||
|
|
||||||
ngx_feature="GeoIP library"
|
ngx_feature="GeoIP library"
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
# Copyright (C) Igor Sysoev
|
# Copyright (C) Igor Sysoev
|
||||||
|
# Copyright (C) Nginx, Inc.
|
||||||
|
|
||||||
|
|
||||||
ngx_feature="Google perftools"
|
ngx_feature="Google perftools"
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
# Copyright (C) Igor Sysoev
|
# Copyright (C) Igor Sysoev
|
||||||
|
# Copyright (C) Nginx, Inc.
|
||||||
|
|
||||||
|
|
||||||
if [ $NGX_LIBATOMIC != YES ]; then
|
if [ $NGX_LIBATOMIC != YES ]; then
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
# Copyright (C) Igor Sysoev
|
# Copyright (C) Igor Sysoev
|
||||||
|
# Copyright (C) Nginx, Inc.
|
||||||
|
|
||||||
|
|
||||||
cat << END >> $NGX_MAKEFILE
|
cat << END >> $NGX_MAKEFILE
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
# Copyright (C) Igor Sysoev
|
# Copyright (C) Igor Sysoev
|
||||||
|
# Copyright (C) Nginx, Inc.
|
||||||
|
|
||||||
|
|
||||||
ngx_feature="GD library"
|
ngx_feature="GD library"
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
# Copyright (C) Igor Sysoev
|
# Copyright (C) Igor Sysoev
|
||||||
|
# Copyright (C) Nginx, Inc.
|
||||||
|
|
||||||
|
|
||||||
ngx_feature="libxslt"
|
ngx_feature="libxslt"
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
# Copyright (C) Igor Sysoev
|
# Copyright (C) Igor Sysoev
|
||||||
|
# Copyright (C) Nginx, Inc.
|
||||||
|
|
||||||
|
|
||||||
if [ $PCRE != NONE -a $PCRE != NO -a $PCRE != YES ]; then
|
if [ $PCRE != NONE -a $PCRE != NO -a $PCRE != YES ]; then
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
# Copyright (C) Igor Sysoev
|
# Copyright (C) Igor Sysoev
|
||||||
|
# Copyright (C) Nginx, Inc.
|
||||||
|
|
||||||
|
|
||||||
if [ $MD5 != NONE ]; then
|
if [ $MD5 != NONE ]; then
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
# Copyright (C) Igor Sysoev
|
# Copyright (C) Igor Sysoev
|
||||||
|
# Copyright (C) Nginx, Inc.
|
||||||
|
|
||||||
|
|
||||||
case "$NGX_CC_NAME" in
|
case "$NGX_CC_NAME" in
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
# Copyright (C) Igor Sysoev
|
# Copyright (C) Igor Sysoev
|
||||||
|
# Copyright (C) Nginx, Inc.
|
||||||
|
|
||||||
|
|
||||||
CFLAGS = -q -O2 -tWM $(CPU_OPT) -DL_ENDIAN
|
CFLAGS = -q -O2 -tWM $(CPU_OPT) -DL_ENDIAN
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
# Copyright (C) Igor Sysoev
|
# Copyright (C) Igor Sysoev
|
||||||
|
# Copyright (C) Nginx, Inc.
|
||||||
|
|
||||||
|
|
||||||
CFLAGS = -nologo -O2 -Ob1 -Oi -Gs $(LIBC) $(CPU_OPT) -D L_ENDIAN
|
CFLAGS = -nologo -O2 -Ob1 -Oi -Gs $(LIBC) $(CPU_OPT) -D L_ENDIAN
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
# Copyright (C) Igor Sysoev
|
# Copyright (C) Igor Sysoev
|
||||||
|
# Copyright (C) Nginx, Inc.
|
||||||
|
|
||||||
|
|
||||||
CFLAGS = -zq -bt=nt -bm -ot -op -oi -oe -s $(CPU_OPT)
|
CFLAGS = -zq -bt=nt -bm -ot -op -oi -oe -s $(CPU_OPT)
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
# Copyright (C) Igor Sysoev
|
# Copyright (C) Igor Sysoev
|
||||||
|
# Copyright (C) Nginx, Inc.
|
||||||
|
|
||||||
|
|
||||||
if [ $OPENSSL != NONE ]; then
|
if [ $OPENSSL != NONE ]; then
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
# Copyright (C) Igor Sysoev
|
# Copyright (C) Igor Sysoev
|
||||||
|
# Copyright (C) Nginx, Inc.
|
||||||
|
|
||||||
|
|
||||||
case "$CC" in
|
case "$CC" in
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
# Copyright (C) Igor Sysoev
|
# Copyright (C) Igor Sysoev
|
||||||
|
# Copyright (C) Nginx, Inc.
|
||||||
|
|
||||||
|
|
||||||
all:
|
all:
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
# Copyright (C) Igor Sysoev
|
# Copyright (C) Igor Sysoev
|
||||||
|
# Copyright (C) Nginx, Inc.
|
||||||
|
|
||||||
|
|
||||||
all:
|
all:
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
# Copyright (C) Igor Sysoev
|
# Copyright (C) Igor Sysoev
|
||||||
|
# Copyright (C) Nginx, Inc.
|
||||||
|
|
||||||
|
|
||||||
if [ $PCRE != NONE ]; then
|
if [ $PCRE != NONE ]; then
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
# Copyright (C) Igor Sysoev
|
# Copyright (C) Igor Sysoev
|
||||||
|
# Copyright (C) Nginx, Inc.
|
||||||
|
|
||||||
|
|
||||||
case "$NGX_CC_NAME" in
|
case "$NGX_CC_NAME" in
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
# Copyright (C) Igor Sysoev
|
# Copyright (C) Igor Sysoev
|
||||||
|
# Copyright (C) Nginx, Inc.
|
||||||
|
|
||||||
|
|
||||||
CFLAGS = -q -O2 -tWM -w-8004 $(CPU_OPT)
|
CFLAGS = -q -O2 -tWM -w-8004 $(CPU_OPT)
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
# Copyright (C) Igor Sysoev
|
# Copyright (C) Igor Sysoev
|
||||||
|
# Copyright (C) Nginx, Inc.
|
||||||
|
|
||||||
|
|
||||||
CFLAGS = -O2 -Ob1 -Oi -Gs $(LIBC) $(CPU_OPT)
|
CFLAGS = -O2 -Ob1 -Oi -Gs $(LIBC) $(CPU_OPT)
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
# Copyright (C) Igor Sysoev
|
# Copyright (C) Igor Sysoev
|
||||||
|
# Copyright (C) Nginx, Inc.
|
||||||
|
|
||||||
|
|
||||||
CFLAGS = -c -zq -bt=nt -ot -op -oi -oe -s -bm $(CPU_OPT)
|
CFLAGS = -c -zq -bt=nt -ot -op -oi -oe -s -bm $(CPU_OPT)
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
# Copyright (C) Igor Sysoev
|
# Copyright (C) Igor Sysoev
|
||||||
|
# Copyright (C) Nginx, Inc.
|
||||||
|
|
||||||
|
|
||||||
echo "checking for perl"
|
echo "checking for perl"
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
# Copyright (C) Igor Sysoev
|
# Copyright (C) Igor Sysoev
|
||||||
|
# Copyright (C) Nginx, Inc.
|
||||||
|
|
||||||
|
|
||||||
cat << END >> $NGX_MAKEFILE
|
cat << END >> $NGX_MAKEFILE
|
||||||
|
@ -27,6 +28,7 @@ $NGX_OBJS/src/http/modules/perl/Makefile: \
|
||||||
&& NGX_PM_CFLAGS="\$(NGX_PM_CFLAGS) -g $NGX_CC_OPT" \
|
&& NGX_PM_CFLAGS="\$(NGX_PM_CFLAGS) -g $NGX_CC_OPT" \
|
||||||
NGX_PCRE=$PCRE \
|
NGX_PCRE=$PCRE \
|
||||||
NGX_OBJS=$NGX_OBJS \
|
NGX_OBJS=$NGX_OBJS \
|
||||||
|
NGX_OPENSSL=$OPENSSL \
|
||||||
$NGX_PERL Makefile.PL \
|
$NGX_PERL Makefile.PL \
|
||||||
LIB=$NGX_PERL_MODULES \
|
LIB=$NGX_PERL_MODULES \
|
||||||
INSTALLSITEMAN3DIR=$NGX_PERL_MODULES_MAN
|
INSTALLSITEMAN3DIR=$NGX_PERL_MODULES_MAN
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
# Copyright (C) Igor Sysoev
|
# Copyright (C) Igor Sysoev
|
||||||
|
# Copyright (C) Nginx, Inc.
|
||||||
|
|
||||||
|
|
||||||
if [ $SHA1 != NONE ]; then
|
if [ $SHA1 != NONE ]; then
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
# Copyright (C) Igor Sysoev
|
# Copyright (C) Igor Sysoev
|
||||||
|
# Copyright (C) Nginx, Inc.
|
||||||
|
|
||||||
|
|
||||||
case "$NGX_CC_NAME" in
|
case "$NGX_CC_NAME" in
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
# Copyright (C) Igor Sysoev
|
# Copyright (C) Igor Sysoev
|
||||||
|
# Copyright (C) Nginx, Inc.
|
||||||
|
|
||||||
|
|
||||||
CFLAGS = -q -O2 -tWM $(CPU_OPT) -DL_ENDIAN
|
CFLAGS = -q -O2 -tWM $(CPU_OPT) -DL_ENDIAN
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
# Copyright (C) Igor Sysoev
|
# Copyright (C) Igor Sysoev
|
||||||
|
# Copyright (C) Nginx, Inc.
|
||||||
|
|
||||||
|
|
||||||
CFLAGS = -nologo -O2 -Ob1 -Oi -Gs $(LIBC) $(CPU_OPT) -D L_ENDIAN
|
CFLAGS = -nologo -O2 -Ob1 -Oi -Gs $(LIBC) $(CPU_OPT) -D L_ENDIAN
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
# Copyright (C) Igor Sysoev
|
# Copyright (C) Igor Sysoev
|
||||||
|
# Copyright (C) Nginx, Inc.
|
||||||
|
|
||||||
|
|
||||||
CFLAGS = -zq -bt=nt -bm -ot -op -oi -oe -s $(CPU_OPT)
|
CFLAGS = -zq -bt=nt -bm -ot -op -oi -oe -s $(CPU_OPT)
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
# Copyright (C) Igor Sysoev
|
# Copyright (C) Igor Sysoev
|
||||||
|
# Copyright (C) Nginx, Inc.
|
||||||
|
|
||||||
|
|
||||||
echo $ngx_n "checking for $ngx_lib ...$ngx_c"
|
echo $ngx_n "checking for $ngx_lib ...$ngx_c"
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
# Copyright (C) Igor Sysoev
|
# Copyright (C) Igor Sysoev
|
||||||
|
# Copyright (C) Nginx, Inc.
|
||||||
|
|
||||||
|
|
||||||
if [ $ZLIB != NONE ]; then
|
if [ $ZLIB != NONE ]; then
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
# Copyright (C) Igor Sysoev
|
# Copyright (C) Igor Sysoev
|
||||||
|
# Copyright (C) Nginx, Inc.
|
||||||
|
|
||||||
|
|
||||||
case "$NGX_CC_NAME" in
|
case "$NGX_CC_NAME" in
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
# Copyright (C) Igor Sysoev
|
# Copyright (C) Igor Sysoev
|
||||||
|
# Copyright (C) Nginx, Inc.
|
||||||
|
|
||||||
|
|
||||||
CFLAGS = -q -O2 -tWM -w-8004 -w-8012 $(CPU_OPT)
|
CFLAGS = -q -O2 -tWM -w-8004 -w-8012 $(CPU_OPT)
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
# Copyright (C) Igor Sysoev
|
# Copyright (C) Igor Sysoev
|
||||||
|
# Copyright (C) Nginx, Inc.
|
||||||
|
|
||||||
|
|
||||||
CFLAGS = -nologo -O2 -Ob1 -Oi -Gs $(LIBC) $(CPU_OPT)
|
CFLAGS = -nologo -O2 -Ob1 -Oi -Gs $(LIBC) $(CPU_OPT)
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
# Copyright (C) Igor Sysoev
|
# Copyright (C) Igor Sysoev
|
||||||
|
# Copyright (C) Nginx, Inc.
|
||||||
|
|
||||||
|
|
||||||
CFLAGS = -zq -bt=nt -ot -op -oi -oe -s -bm $(CPU_OPT)
|
CFLAGS = -zq -bt=nt -ot -op -oi -oe -s -bm $(CPU_OPT)
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
# Copyright (C) Igor Sysoev
|
# Copyright (C) Igor Sysoev
|
||||||
|
# Copyright (C) Nginx, Inc.
|
||||||
|
|
||||||
|
|
||||||
echo "creating $NGX_MAKEFILE"
|
echo "creating $NGX_MAKEFILE"
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
# Copyright (C) Igor Sysoev
|
# Copyright (C) Igor Sysoev
|
||||||
|
# Copyright (C) Nginx, Inc.
|
||||||
|
|
||||||
|
|
||||||
if [ $EVENT_SELECT = NO -a $EVENT_FOUND = NO ]; then
|
if [ $EVENT_SELECT = NO -a $EVENT_FOUND = NO ]; then
|
||||||
|
@ -334,6 +335,11 @@ if [ $HTTP_FLV = YES ]; then
|
||||||
HTTP_SRCS="$HTTP_SRCS $HTTP_FLV_SRCS"
|
HTTP_SRCS="$HTTP_SRCS $HTTP_FLV_SRCS"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ $HTTP_MP4 = YES ]; then
|
||||||
|
HTTP_MODULES="$HTTP_MODULES $HTTP_MP4_MODULE"
|
||||||
|
HTTP_SRCS="$HTTP_SRCS $HTTP_MP4_SRCS"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ $HTTP_UPSTREAM_IP_HASH = YES ]; then
|
if [ $HTTP_UPSTREAM_IP_HASH = YES ]; then
|
||||||
HTTP_MODULES="$HTTP_MODULES $HTTP_UPSTREAM_IP_HASH_MODULE"
|
HTTP_MODULES="$HTTP_MODULES $HTTP_UPSTREAM_IP_HASH_MODULE"
|
||||||
HTTP_SRCS="$HTTP_SRCS $HTTP_UPSTREAM_IP_HASH_SRCS"
|
HTTP_SRCS="$HTTP_SRCS $HTTP_UPSTREAM_IP_HASH_SRCS"
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
# Copyright (C) Igor Sysoev
|
# Copyright (C) Igor Sysoev
|
||||||
|
# Copyright (C) Nginx, Inc.
|
||||||
|
|
||||||
|
|
||||||
cat << END >> $NGX_AUTO_CONFIG_H
|
cat << END >> $NGX_AUTO_CONFIG_H
|
||||||
|
|
79
auto/options
79
auto/options
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
# Copyright (C) Igor Sysoev
|
# Copyright (C) Igor Sysoev
|
||||||
|
# Copyright (C) Nginx, Inc.
|
||||||
|
|
||||||
|
|
||||||
help=no
|
help=no
|
||||||
|
@ -92,6 +93,7 @@ HTTP_BROWSER=YES
|
||||||
HTTP_SECURE_LINK=NO
|
HTTP_SECURE_LINK=NO
|
||||||
HTTP_DEGRADATION=NO
|
HTTP_DEGRADATION=NO
|
||||||
HTTP_FLV=NO
|
HTTP_FLV=NO
|
||||||
|
HTTP_MP4=NO
|
||||||
HTTP_GZIP_STATIC=NO
|
HTTP_GZIP_STATIC=NO
|
||||||
HTTP_UPSTREAM_IP_HASH=YES
|
HTTP_UPSTREAM_IP_HASH=YES
|
||||||
|
|
||||||
|
@ -201,6 +203,7 @@ do
|
||||||
--with-http_sub_module) HTTP_SUB=YES ;;
|
--with-http_sub_module) HTTP_SUB=YES ;;
|
||||||
--with-http_dav_module) HTTP_DAV=YES ;;
|
--with-http_dav_module) HTTP_DAV=YES ;;
|
||||||
--with-http_flv_module) HTTP_FLV=YES ;;
|
--with-http_flv_module) HTTP_FLV=YES ;;
|
||||||
|
--with-http_mp4_module) HTTP_MP4=YES ;;
|
||||||
--with-http_gzip_static_module) HTTP_GZIP_STATIC=YES ;;
|
--with-http_gzip_static_module) HTTP_GZIP_STATIC=YES ;;
|
||||||
--with-http_random_index_module) HTTP_RANDOM_INDEX=YES ;;
|
--with-http_random_index_module) HTTP_RANDOM_INDEX=YES ;;
|
||||||
--with-http_secure_link_module) HTTP_SECURE_LINK=YES ;;
|
--with-http_secure_link_module) HTTP_SECURE_LINK=YES ;;
|
||||||
|
@ -302,21 +305,21 @@ if [ $help = yes ]; then
|
||||||
|
|
||||||
cat << END
|
cat << END
|
||||||
|
|
||||||
--help this message
|
--help print this message
|
||||||
|
|
||||||
--prefix=PATH set the installation prefix
|
--prefix=PATH set installation prefix
|
||||||
--sbin-path=PATH set path to the nginx binary file
|
--sbin-path=PATH set nginx binary pathname
|
||||||
--conf-path=PATH set path to the nginx.conf file
|
--conf-path=PATH set nginx.conf pathname
|
||||||
--error-log-path=PATH set path to the error log
|
--error-log-path=PATH set error log pathname
|
||||||
--pid-path=PATH set path to nginx.pid file
|
--pid-path=PATH set nginx.pid pathname
|
||||||
--lock-path=PATH set path to nginx.lock file
|
--lock-path=PATH set nginx.lock pathname
|
||||||
|
|
||||||
--user=USER set non-privilege user
|
--user=USER set non-privileged user for
|
||||||
for the worker processes
|
worker processes
|
||||||
--group=GROUP set non-privilege group
|
--group=GROUP set non-privileged group for
|
||||||
for the worker processes
|
worker processes
|
||||||
|
|
||||||
--builddir=DIR set the build directory
|
--builddir=DIR set build directory
|
||||||
|
|
||||||
--with-rtsig_module enable rtsig module
|
--with-rtsig_module enable rtsig module
|
||||||
--with-select_module enable select module
|
--with-select_module enable select module
|
||||||
|
@ -324,8 +327,8 @@ cat << END
|
||||||
--with-poll_module enable poll module
|
--with-poll_module enable poll module
|
||||||
--without-poll_module disable poll module
|
--without-poll_module disable poll module
|
||||||
|
|
||||||
--with-file-aio enable file aio support
|
--with-file-aio enable file AIO support
|
||||||
--with-ipv6 enable ipv6 support
|
--with-ipv6 enable IPv6 support
|
||||||
|
|
||||||
--with-http_ssl_module enable ngx_http_ssl_module
|
--with-http_ssl_module enable ngx_http_ssl_module
|
||||||
--with-http_realip_module enable ngx_http_realip_module
|
--with-http_realip_module enable ngx_http_realip_module
|
||||||
|
@ -336,6 +339,7 @@ cat << END
|
||||||
--with-http_sub_module enable ngx_http_sub_module
|
--with-http_sub_module enable ngx_http_sub_module
|
||||||
--with-http_dav_module enable ngx_http_dav_module
|
--with-http_dav_module enable ngx_http_dav_module
|
||||||
--with-http_flv_module enable ngx_http_flv_module
|
--with-http_flv_module enable ngx_http_flv_module
|
||||||
|
--with-http_mp4_module enable ngx_http_mp4_module
|
||||||
--with-http_gzip_static_module enable ngx_http_gzip_static_module
|
--with-http_gzip_static_module enable ngx_http_gzip_static_module
|
||||||
--with-http_random_index_module enable ngx_http_random_index_module
|
--with-http_random_index_module enable ngx_http_random_index_module
|
||||||
--with-http_secure_link_module enable ngx_http_secure_link_module
|
--with-http_secure_link_module enable ngx_http_secure_link_module
|
||||||
|
@ -367,17 +371,20 @@ cat << END
|
||||||
disable ngx_http_upstream_ip_hash_module
|
disable ngx_http_upstream_ip_hash_module
|
||||||
|
|
||||||
--with-http_perl_module enable ngx_http_perl_module
|
--with-http_perl_module enable ngx_http_perl_module
|
||||||
--with-perl_modules_path=PATH set path to the perl modules
|
--with-perl_modules_path=PATH set Perl modules path
|
||||||
--with-perl=PATH set path to the perl binary
|
--with-perl=PATH set perl binary pathname
|
||||||
|
|
||||||
--http-log-path=PATH set path to the http access log
|
--http-log-path=PATH set http access log pathname
|
||||||
--http-client-body-temp-path=PATH set path to the http client request body
|
--http-client-body-temp-path=PATH set path to store
|
||||||
temporary files
|
http client request body temporary files
|
||||||
--http-proxy-temp-path=PATH set path to the http proxy temporary files
|
--http-proxy-temp-path=PATH set path to store
|
||||||
--http-fastcgi-temp-path=PATH set path to the http fastcgi temporary
|
http proxy temporary files
|
||||||
files
|
--http-fastcgi-temp-path=PATH set path to store
|
||||||
--http-uwsgi-temp-path=PATH set path to the http uwsgi temporary files
|
http fastcgi temporary files
|
||||||
--http-scgi-temp-path=PATH set path to the http scgi temporary files
|
--http-uwsgi-temp-path=PATH set path to store
|
||||||
|
http uwsgi temporary files
|
||||||
|
--http-scgi-temp-path=PATH set path to store
|
||||||
|
http scgi temporary files
|
||||||
|
|
||||||
--without-http disable HTTP server
|
--without-http disable HTTP server
|
||||||
--without-http-cache disable HTTP cache
|
--without-http-cache disable HTTP cache
|
||||||
|
@ -393,40 +400,40 @@ cat << END
|
||||||
|
|
||||||
--add-module=PATH enable an external module
|
--add-module=PATH enable an external module
|
||||||
|
|
||||||
--with-cc=PATH set path to C compiler
|
--with-cc=PATH set C compiler pathname
|
||||||
--with-cpp=PATH set path to C preprocessor
|
--with-cpp=PATH set C preprocessor pathname
|
||||||
--with-cc-opt=OPTIONS set additional options for C compiler
|
--with-cc-opt=OPTIONS set additional C compiler options
|
||||||
--with-ld-opt=OPTIONS set additional options for linker
|
--with-ld-opt=OPTIONS set additional linker options
|
||||||
--with-cpu-opt=CPU build for specified CPU, the valid values:
|
--with-cpu-opt=CPU build for the specified CPU, valid values:
|
||||||
pentium, pentiumpro, pentium3, pentium4,
|
pentium, pentiumpro, pentium3, pentium4,
|
||||||
athlon, opteron, sparc32, sparc64, ppc64
|
athlon, opteron, sparc32, sparc64, ppc64
|
||||||
|
|
||||||
--without-pcre disable PCRE library usage
|
--without-pcre disable PCRE library usage
|
||||||
--with-pcre force PCRE library usage
|
--with-pcre force PCRE library usage
|
||||||
--with-pcre=DIR set path to PCRE library sources
|
--with-pcre=DIR set path to PCRE library sources
|
||||||
--with-pcre-opt=OPTIONS set additional options for PCRE building
|
--with-pcre-opt=OPTIONS set additional build options for PCRE
|
||||||
|
|
||||||
--with-md5=DIR set path to md5 library sources
|
--with-md5=DIR set path to md5 library sources
|
||||||
--with-md5-opt=OPTIONS set additional options for md5 building
|
--with-md5-opt=OPTIONS set additional build options for md5
|
||||||
--with-md5-asm use md5 assembler sources
|
--with-md5-asm use md5 assembler sources
|
||||||
|
|
||||||
--with-sha1=DIR set path to sha1 library sources
|
--with-sha1=DIR set path to sha1 library sources
|
||||||
--with-sha1-opt=OPTIONS set additional options for sha1 building
|
--with-sha1-opt=OPTIONS set additional build options for sha1
|
||||||
--with-sha1-asm use sha1 assembler sources
|
--with-sha1-asm use sha1 assembler sources
|
||||||
|
|
||||||
--with-zlib=DIR set path to zlib library sources
|
--with-zlib=DIR set path to zlib library sources
|
||||||
--with-zlib-opt=OPTIONS set additional options for zlib building
|
--with-zlib-opt=OPTIONS set additional build options for zlib
|
||||||
--with-zlib-asm=CPU use zlib assembler sources optimized
|
--with-zlib-asm=CPU use zlib assembler sources optimized
|
||||||
for specified CPU, the valid values:
|
for the specified CPU, valid values:
|
||||||
pentium, pentiumpro
|
pentium, pentiumpro
|
||||||
|
|
||||||
--with-libatomic force libatomic_ops library usage
|
--with-libatomic force libatomic_ops library usage
|
||||||
--with-libatomic=DIR set path to libatomic_ops library sources
|
--with-libatomic=DIR set path to libatomic_ops library sources
|
||||||
|
|
||||||
--with-openssl=DIR set path to OpenSSL library sources
|
--with-openssl=DIR set path to OpenSSL library sources
|
||||||
--with-openssl-opt=OPTIONS set additional options for OpenSSL building
|
--with-openssl-opt=OPTIONS set additional build options for OpenSSL
|
||||||
|
|
||||||
--with-debug enable the debugging logging
|
--with-debug enable debug logging
|
||||||
|
|
||||||
END
|
END
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
# Copyright (C) Igor Sysoev
|
# Copyright (C) Igor Sysoev
|
||||||
|
# Copyright (C) Nginx, Inc.
|
||||||
|
|
||||||
|
|
||||||
echo "checking for $NGX_SYSTEM specific features"
|
echo "checking for $NGX_SYSTEM specific features"
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
# Copyright (C) Igor Sysoev
|
# Copyright (C) Igor Sysoev
|
||||||
|
# Copyright (C) Nginx, Inc.
|
||||||
|
|
||||||
|
|
||||||
have=NGX_DARWIN . auto/have_headers
|
have=NGX_DARWIN . auto/have_headers
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
# Copyright (C) Igor Sysoev
|
# Copyright (C) Igor Sysoev
|
||||||
|
# Copyright (C) Nginx, Inc.
|
||||||
|
|
||||||
|
|
||||||
have=NGX_FREEBSD . auto/have_headers
|
have=NGX_FREEBSD . auto/have_headers
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
# Copyright (C) Igor Sysoev
|
# Copyright (C) Igor Sysoev
|
||||||
|
# Copyright (C) Nginx, Inc.
|
||||||
|
|
||||||
|
|
||||||
have=NGX_LINUX . auto/have_headers
|
have=NGX_LINUX . auto/have_headers
|
||||||
|
@ -18,7 +19,9 @@ CC_AUX_FLAGS="$cc_aux_flags -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64"
|
||||||
# Linux kernel version
|
# Linux kernel version
|
||||||
|
|
||||||
version=$((`uname -r \
|
version=$((`uname -r \
|
||||||
| sed 's/^\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1*256*256+\2*256+\3/'`))
|
| sed -n -e 's/^\([0-9][0-9]*\)\.\([0-9][0-9]*\)\.\([0-9][0-9]*\).*/ \
|
||||||
|
\1*256*256+\2*256+\3/p' \
|
||||||
|
-e 's/^\([0-9][0-9]*\)\.\([0-9][0-9]*\).*/\1*256*256+\2*256/p'`))
|
||||||
|
|
||||||
version=${version:-0}
|
version=${version:-0}
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
# Copyright (C) Igor Sysoev
|
# Copyright (C) Igor Sysoev
|
||||||
|
# Copyright (C) Nginx, Inc.
|
||||||
|
|
||||||
|
|
||||||
have=NGX_SOLARIS . auto/have_headers
|
have=NGX_SOLARIS . auto/have_headers
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
# Copyright (C) Igor Sysoev
|
# Copyright (C) Igor Sysoev
|
||||||
|
# Copyright (C) Nginx, Inc.
|
||||||
|
|
||||||
|
|
||||||
have=NGX_WIN32 . auto/have_headers
|
have=NGX_WIN32 . auto/have_headers
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
# Copyright (C) Igor Sysoev
|
# Copyright (C) Igor Sysoev
|
||||||
|
# Copyright (C) Nginx, Inc.
|
||||||
|
|
||||||
|
|
||||||
CORE_MODULES="ngx_core_module ngx_errlog_module ngx_conf_module"
|
CORE_MODULES="ngx_core_module ngx_errlog_module ngx_conf_module"
|
||||||
|
@ -463,6 +464,10 @@ HTTP_FLV_MODULE=ngx_http_flv_module
|
||||||
HTTP_FLV_SRCS=src/http/modules/ngx_http_flv_module.c
|
HTTP_FLV_SRCS=src/http/modules/ngx_http_flv_module.c
|
||||||
|
|
||||||
|
|
||||||
|
HTTP_MP4_MODULE=ngx_http_mp4_module
|
||||||
|
HTTP_MP4_SRCS=src/http/modules/ngx_http_mp4_module.c
|
||||||
|
|
||||||
|
|
||||||
HTTP_GZIP_STATIC_MODULE=ngx_http_gzip_static_module
|
HTTP_GZIP_STATIC_MODULE=ngx_http_gzip_static_module
|
||||||
HTTP_GZIP_STATIC_SRCS=src/http/modules/ngx_http_gzip_static_module.c
|
HTTP_GZIP_STATIC_SRCS=src/http/modules/ngx_http_gzip_static_module.c
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
# Copyright (C) Igor Sysoev
|
# Copyright (C) Igor Sysoev
|
||||||
|
# Copyright (C) Nginx, Inc.
|
||||||
|
|
||||||
|
|
||||||
have=NGX_SUPPRESS_WARN . auto/have
|
have=NGX_SUPPRESS_WARN . auto/have
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
# Copyright (C) Igor Sysoev
|
# Copyright (C) Igor Sysoev
|
||||||
|
# Copyright (C) Nginx, Inc.
|
||||||
|
|
||||||
|
|
||||||
### STUB
|
### STUB
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
# Copyright (C) Igor Sysoev
|
# Copyright (C) Igor Sysoev
|
||||||
|
# Copyright (C) Nginx, Inc.
|
||||||
|
|
||||||
|
|
||||||
echo $ngx_n "checking for $ngx_type size ...$ngx_c"
|
echo $ngx_n "checking for $ngx_type size ...$ngx_c"
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
# Copyright (C) Igor Sysoev
|
# Copyright (C) Igor Sysoev
|
||||||
|
# Copyright (C) Nginx, Inc.
|
||||||
|
|
||||||
|
|
||||||
echo $ngx_n "checking for $ngx_type ...$ngx_c"
|
echo $ngx_n "checking for $ngx_type ...$ngx_c"
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
# Copyright (C) Igor Sysoev
|
# Copyright (C) Igor Sysoev
|
||||||
|
# Copyright (C) Nginx, Inc.
|
||||||
|
|
||||||
|
|
||||||
echo $ngx_n "checking for uintptr_t ...$ngx_c"
|
echo $ngx_n "checking for uintptr_t ...$ngx_c"
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
# Copyright (C) Igor Sysoev
|
# Copyright (C) Igor Sysoev
|
||||||
|
# Copyright (C) Nginx, Inc.
|
||||||
|
|
||||||
|
|
||||||
cat << END >> $NGX_AUTO_CONFIG_H
|
cat << END >> $NGX_AUTO_CONFIG_H
|
||||||
|
|
56
auto/unix
56
auto/unix
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
# Copyright (C) Igor Sysoev
|
# Copyright (C) Igor Sysoev
|
||||||
|
# Copyright (C) Nginx, Inc.
|
||||||
|
|
||||||
|
|
||||||
NGX_USER=${NGX_USER:-nobody}
|
NGX_USER=${NGX_USER:-nobody}
|
||||||
|
@ -295,6 +296,7 @@ if [ $ngx_found != yes ]; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
ngx_feature="SO_SETFIB"
|
ngx_feature="SO_SETFIB"
|
||||||
ngx_feature_name="NGX_HAVE_SETFIB"
|
ngx_feature_name="NGX_HAVE_SETFIB"
|
||||||
ngx_feature_run=no
|
ngx_feature_run=no
|
||||||
|
@ -305,6 +307,28 @@ ngx_feature_test="setsockopt(0, SOL_SOCKET, SO_SETFIB, NULL, 4)"
|
||||||
. auto/feature
|
. auto/feature
|
||||||
|
|
||||||
|
|
||||||
|
ngx_feature="SO_ACCEPTFILTER"
|
||||||
|
ngx_feature_name="NGX_HAVE_DEFERRED_ACCEPT"
|
||||||
|
ngx_feature_run=no
|
||||||
|
ngx_feature_incs="#include <sys/socket.h>"
|
||||||
|
ngx_feature_path=
|
||||||
|
ngx_feature_libs=
|
||||||
|
ngx_feature_test="setsockopt(0, SOL_SOCKET, SO_ACCEPTFILTER, NULL, 0)"
|
||||||
|
. auto/feature
|
||||||
|
|
||||||
|
|
||||||
|
ngx_feature="TCP_DEFER_ACCEPT"
|
||||||
|
ngx_feature_name="NGX_HAVE_DEFERRED_ACCEPT"
|
||||||
|
ngx_feature_run=no
|
||||||
|
ngx_feature_incs="#include <sys/socket.h>
|
||||||
|
#include <netinet/in.h>
|
||||||
|
#include <netinet/tcp.h>"
|
||||||
|
ngx_feature_path=
|
||||||
|
ngx_feature_libs=
|
||||||
|
ngx_feature_test="setsockopt(0, IPPROTO_TCP, TCP_DEFER_ACCEPT, NULL, 0)"
|
||||||
|
. auto/feature
|
||||||
|
|
||||||
|
|
||||||
ngx_feature="accept4()"
|
ngx_feature="accept4()"
|
||||||
ngx_feature_name="NGX_HAVE_ACCEPT4"
|
ngx_feature_name="NGX_HAVE_ACCEPT4"
|
||||||
ngx_feature_run=no
|
ngx_feature_run=no
|
||||||
|
@ -473,7 +497,8 @@ ngx_feature_test="char buf[1]; ssize_t n; n = pwrite(1, buf, 1, 0)"
|
||||||
ngx_feature="sys_nerr"
|
ngx_feature="sys_nerr"
|
||||||
ngx_feature_name="NGX_SYS_NERR"
|
ngx_feature_name="NGX_SYS_NERR"
|
||||||
ngx_feature_run=value
|
ngx_feature_run=value
|
||||||
ngx_feature_incs='#include <stdio.h>'
|
ngx_feature_incs='#include <errno.h>
|
||||||
|
#include <stdio.h>'
|
||||||
ngx_feature_path=
|
ngx_feature_path=
|
||||||
ngx_feature_libs=
|
ngx_feature_libs=
|
||||||
ngx_feature_test='printf("%d", sys_nerr);'
|
ngx_feature_test='printf("%d", sys_nerr);'
|
||||||
|
@ -515,10 +540,10 @@ if [ $ngx_found = no ]; then
|
||||||
|| p == NULL
|
|| p == NULL
|
||||||
|| strncmp(p, "Unknown error", 13) == 0)
|
|| strncmp(p, "Unknown error", 13) == 0)
|
||||||
{
|
{
|
||||||
printf("%d", n);
|
break;
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
}'
|
}
|
||||||
|
printf("%d", n);'
|
||||||
. auto/feature
|
. auto/feature
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -620,6 +645,19 @@ if [ $ngx_found = no ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
if [ $ngx_found = no ]; then
|
||||||
|
|
||||||
|
# Solaris has POSIX semaphores in librt
|
||||||
|
ngx_feature="POSIX semaphores in librt"
|
||||||
|
ngx_feature_libs=-lrt
|
||||||
|
. auto/feature
|
||||||
|
|
||||||
|
if [ $ngx_found = yes ]; then
|
||||||
|
CORE_LIBS="$CORE_LIBS -lrt"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
ngx_feature="struct msghdr.msg_control"
|
ngx_feature="struct msghdr.msg_control"
|
||||||
ngx_feature_name="NGX_HAVE_MSGHDR_MSG_CONTROL"
|
ngx_feature_name="NGX_HAVE_MSGHDR_MSG_CONTROL"
|
||||||
ngx_feature_run=no
|
ngx_feature_run=no
|
||||||
|
@ -669,3 +707,13 @@ ngx_feature_path=
|
||||||
ngx_feature_libs=
|
ngx_feature_libs=
|
||||||
ngx_feature_test="struct dirent dir; dir.d_type = DT_REG"
|
ngx_feature_test="struct dirent dir; dir.d_type = DT_REG"
|
||||||
. auto/feature
|
. auto/feature
|
||||||
|
|
||||||
|
|
||||||
|
ngx_feature="sysconf(_SC_NPROCESSORS_ONLN)"
|
||||||
|
ngx_feature_name="NGX_HAVE_SC_NPROCESSORS_ONLN"
|
||||||
|
ngx_feature_run=no
|
||||||
|
ngx_feature_incs=
|
||||||
|
ngx_feature_path=
|
||||||
|
ngx_feature_libs=
|
||||||
|
ngx_feature_test="sysconf(_SC_NPROCESSORS_ONLN)"
|
||||||
|
. auto/feature
|
||||||
|
|
|
@ -21,7 +21,8 @@ types {
|
||||||
image/x-icon ico;
|
image/x-icon ico;
|
||||||
image/x-jng jng;
|
image/x-jng jng;
|
||||||
image/x-ms-bmp bmp;
|
image/x-ms-bmp bmp;
|
||||||
image/svg+xml svg;
|
image/svg+xml svg svgz;
|
||||||
|
image/webp webp;
|
||||||
|
|
||||||
application/java-archive jar war ear;
|
application/java-archive jar war ear;
|
||||||
application/mac-binhex40 hqx;
|
application/mac-binhex40 hqx;
|
||||||
|
@ -62,12 +63,16 @@ types {
|
||||||
audio/midi mid midi kar;
|
audio/midi mid midi kar;
|
||||||
audio/mpeg mp3;
|
audio/mpeg mp3;
|
||||||
audio/ogg ogg;
|
audio/ogg ogg;
|
||||||
|
audio/x-m4a m4a;
|
||||||
audio/x-realaudio ra;
|
audio/x-realaudio ra;
|
||||||
|
|
||||||
video/3gpp 3gpp 3gp;
|
video/3gpp 3gpp 3gp;
|
||||||
|
video/mp4 mp4;
|
||||||
video/mpeg mpeg mpg;
|
video/mpeg mpeg mpg;
|
||||||
video/quicktime mov;
|
video/quicktime mov;
|
||||||
|
video/webm webm;
|
||||||
video/x-flv flv;
|
video/x-flv flv;
|
||||||
|
video/x-m4v m4v;
|
||||||
video/x-mng mng;
|
video/x-mng mng;
|
||||||
video/x-ms-asf asx asf;
|
video/x-ms-asf asx asf;
|
||||||
video/x-ms-wmv wmv;
|
video/x-ms-wmv wmv;
|
||||||
|
|
|
@ -6,20 +6,21 @@ TEMP= tmp
|
||||||
CP= $(HOME)/java
|
CP= $(HOME)/java
|
||||||
|
|
||||||
define XSLScript
|
define XSLScript
|
||||||
javavm -cp $(CP)/xsls/saxon.jar:$(CP)/xsls/xsls.jar \
|
java -cp $(CP)/xsls/saxon.jar:$(CP)/xsls/xsls.jar \
|
||||||
com.pault.StyleSheet \
|
com.pault.StyleSheet \
|
||||||
-x com.pault.XX -y com.pault.XX \
|
-x com.pault.XX -y com.pault.XX \
|
||||||
$(1) docs/xsls/dump.xsls \
|
$(1) docs/xsls/dump.xsls \
|
||||||
| awk 'BEGIN{e=0}/^\n*$$/{e=1;next}{if(e){print"";e=0};print}' > $(2)
|
| sed 's/ *$$//;/^ *$$/N;/\n *$$/D' > $(2)
|
||||||
|
|
||||||
if [ ! -s $(2) ]; then rm $(2); fi; test -s $(2)
|
if [ ! -s $(2) ]; then rm $(2); fi; test -s $(2)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define XSLT
|
define XSLT
|
||||||
xsltproc $(shell echo $4 \
|
xmllint --noout --valid $2
|
||||||
|
xsltproc -o $3 \
|
||||||
|
$(shell echo $4 \\
|
||||||
| sed -e "s/\([^= ]*\)=\([^= ]*\)/--param \1 \"'\2'\"/g") \
|
| sed -e "s/\([^= ]*\)=\([^= ]*\)/--param \1 \"'\2'\"/g") \
|
||||||
$3 $1 \
|
$1 $2
|
||||||
> $(HTML)/$(strip $(2))
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
|
||||||
|
@ -28,21 +29,23 @@ changes: $(TEMP)/$(NGINX)/CHANGES.ru \
|
||||||
|
|
||||||
|
|
||||||
$(TEMP)/$(NGINX)/CHANGES.ru: docs/xml/nginx/changes.xml \
|
$(TEMP)/$(NGINX)/CHANGES.ru: docs/xml/nginx/changes.xml \
|
||||||
|
docs/xml/change_log_conf.xml \
|
||||||
docs/xslt/changes.xslt
|
docs/xslt/changes.xslt
|
||||||
|
|
||||||
test -d $(TEMP)/$(NGINX) || mkdir -p $(TEMP)/$(NGINX)
|
test -d $(TEMP)/$(NGINX) || mkdir -p $(TEMP)/$(NGINX)
|
||||||
|
|
||||||
xsltproc --param lang "'ru'" \
|
xsltproc --stringparam lang ru \
|
||||||
-o $(TEMP)/$(NGINX)/CHANGES.ru \
|
-o $(TEMP)/$(NGINX)/CHANGES.ru \
|
||||||
docs/xslt/changes.xslt docs/xml/nginx/changes.xml
|
docs/xslt/changes.xslt docs/xml/nginx/changes.xml
|
||||||
|
|
||||||
|
|
||||||
$(TEMP)/$(NGINX)/CHANGES: docs/xml/nginx/changes.xml \
|
$(TEMP)/$(NGINX)/CHANGES: docs/xml/nginx/changes.xml \
|
||||||
|
docs/xml/change_log_conf.xml \
|
||||||
docs/xslt/changes.xslt
|
docs/xslt/changes.xslt
|
||||||
|
|
||||||
test -d $(TEMP)/$(NGINX) || mkdir -p $(TEMP)/$(NGINX)
|
test -d $(TEMP)/$(NGINX) || mkdir -p $(TEMP)/$(NGINX)
|
||||||
|
|
||||||
xsltproc --param lang "'en'" \
|
xsltproc --stringparam lang en \
|
||||||
-o $(TEMP)/$(NGINX)/CHANGES \
|
-o $(TEMP)/$(NGINX)/CHANGES \
|
||||||
docs/xslt/changes.xslt docs/xml/nginx/changes.xml
|
docs/xslt/changes.xslt docs/xml/nginx/changes.xml
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
.\"
|
.\"
|
||||||
.\" Copyright (c) 2010 Sergey A. Osokin
|
.\" Copyright (c) 2010 Sergey A. Osokin
|
||||||
|
.\" Copyright (c) 2011,2012 Nginx, Inc.
|
||||||
.\" All rights reserved.
|
.\" All rights reserved.
|
||||||
.\"
|
.\"
|
||||||
.\" Redistribution and use in source and binary forms, with or without
|
.\" Redistribution and use in source and binary forms, with or without
|
||||||
|
@ -24,7 +25,7 @@
|
||||||
.\" SUCH DAMAGE.
|
.\" SUCH DAMAGE.
|
||||||
.\"
|
.\"
|
||||||
.\"
|
.\"
|
||||||
.Dd November 14, 2010
|
.Dd August 10, 2011
|
||||||
.Dt NGINX 8
|
.Dt NGINX 8
|
||||||
.Os
|
.Os
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
|
@ -177,25 +178,25 @@ Test configuration file
|
||||||
.Pa ~/mynginx.conf
|
.Pa ~/mynginx.conf
|
||||||
with global directives for PID and quantity of worker processes.
|
with global directives for PID and quantity of worker processes.
|
||||||
.Sh SEE ALSO
|
.Sh SEE ALSO
|
||||||
.Xr nginx.conf 5
|
.\"Xr nginx.conf 5
|
||||||
|
.\"Pp
|
||||||
|
Documentation at
|
||||||
|
.Pa http://nginx.org/
|
||||||
|
and
|
||||||
|
.Pa http://sysoev.ru/nginx/ .
|
||||||
|
.Pp
|
||||||
|
For questions and technical support, please refer to
|
||||||
|
.Pa http://nginx.org/en/support.html .
|
||||||
.Sh HISTORY
|
.Sh HISTORY
|
||||||
Development of
|
Development of
|
||||||
.Nm
|
.Nm
|
||||||
started in 2002, with the first public release on October 4, 2004.
|
started in 2002, with the first public release on October 4, 2004.
|
||||||
.Sh AUTHORS
|
.Sh AUTHORS
|
||||||
|
.An -nosplit
|
||||||
.An Igor Sysoev Aq igor@sysoev.ru
|
.An Igor Sysoev Aq igor@sysoev.ru
|
||||||
.Pp
|
.Pp
|
||||||
Documentation available on
|
|
||||||
.Pa http://nginx.org/
|
|
||||||
and
|
|
||||||
.Pa http://sysoev.ru/nginx/ .
|
|
||||||
.Pp
|
|
||||||
This manual page was written by
|
This manual page was written by
|
||||||
.An Sergey A. Osokin Aq osa@FreeBSD.org.ru
|
.An Sergey A. Osokin Aq osa@FreeBSD.org.ru
|
||||||
as a result of compilation of many
|
as a result of compilation of many
|
||||||
.Nm
|
.Nm
|
||||||
documents all over the world.
|
documents all over the world.
|
||||||
.Sh BUGS
|
|
||||||
Report to mailing list
|
|
||||||
.Aq Li nginx@nginx.org
|
|
||||||
if you found one.
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2002-2011 Igor Sysoev
|
* Copyright (C) 2002-2012 Igor Sysoev
|
||||||
|
* Copyright (C) 2011,2012 Nginx, Inc.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
* modification, are permitted provided that the following conditions
|
* modification, are permitted provided that the following conditions
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
The Russian documentation is available at http://sysoev.ru/nginx/
|
Documentation is available at http://nginx.org
|
||||||
The English documentation is available at http://nginx.net
|
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<?xml version="1.0" encoding="KOI8-R" ?>
|
<?xml version="1.0" ?>
|
||||||
<!DOCTYPE configuration SYSTEM "../dtd/change_log_conf.dtd" >
|
<!DOCTYPE configuration SYSTEM "../dtd/change_log_conf.dtd" >
|
||||||
|
|
||||||
<configuration>
|
<configuration>
|
||||||
|
@ -9,14 +9,14 @@
|
||||||
<indent> </indent>
|
<indent> </indent>
|
||||||
|
|
||||||
<changes lang="ru">
|
<changes lang="ru">
|
||||||
<title>Изменения в </title>
|
<title>Изменения в </title>
|
||||||
<length>66</length>
|
<length>66</length>
|
||||||
|
|
||||||
<bugfix>Исправление</bugfix>
|
<bugfix>Исправление</bugfix>
|
||||||
<feature>Добавление</feature>
|
<feature>Добавление</feature>
|
||||||
<change>Изменение</change>
|
<change>Изменение</change>
|
||||||
<security>Безопасность</security>
|
<security>Безопасность</security>
|
||||||
<workaround>Изменение</workaround>
|
<workaround>Изменение</workaround>
|
||||||
</changes>
|
</changes>
|
||||||
|
|
||||||
<changes lang="en">
|
<changes lang="en">
|
||||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -1,6 +1,6 @@
|
||||||
X:stylesheet {
|
X:stylesheet {
|
||||||
|
|
||||||
X:output method="text" encoding="koi8-r";
|
X:output method="text";
|
||||||
|
|
||||||
X:param lang="'en'";
|
X:param lang="'en'";
|
||||||
X:param configuration="'../xml/change_log_conf.xml'";
|
X:param configuration="'../xml/change_log_conf.xml'";
|
||||||
|
@ -64,10 +64,16 @@ X:template para(prefix) = "para" {
|
||||||
X:template wrap(text, prefix) {
|
X:template wrap(text, prefix) {
|
||||||
X:if "$text" {
|
X:if "$text" {
|
||||||
X:var offset = {
|
X:var offset = {
|
||||||
X:if "starts-with($text, concat($br, ' '))" {
|
X:choose {
|
||||||
!{string-length($br) + 2}
|
X:when "starts-with($text, concat($br, ' '))" {
|
||||||
} else {
|
!{string-length($br) + 2}
|
||||||
1
|
}
|
||||||
|
X:when "starts-with($text, $br)" {
|
||||||
|
!{string-length($br) + 1}
|
||||||
|
}
|
||||||
|
X:otherwise {
|
||||||
|
1
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -79,7 +85,8 @@ X:template wrap(text, prefix) {
|
||||||
|
|
||||||
!{$prefix}
|
!{$prefix}
|
||||||
|
|
||||||
!{translate(substring($text, $offset, $length), ' ', ' ')}
|
!{normalize-space(translate(substring($text, $offset, $length),
|
||||||
|
' ', ' '))}
|
||||||
|
|
||||||
X:text { }
|
X:text { }
|
||||||
|
|
||||||
|
@ -89,20 +96,23 @@ X:template wrap(text, prefix) {
|
||||||
|
|
||||||
|
|
||||||
X:template length(text, prefix, length) {
|
X:template length(text, prefix, length) {
|
||||||
X:var break = "substring-before(substring($text, 1, $length - $prefix),
|
X:var break = "substring-before(substring($text, 1,
|
||||||
|
$length - $prefix + string-length($br)),
|
||||||
$br)"
|
$br)"
|
||||||
|
|
||||||
X:choose {
|
X:choose {
|
||||||
X:when "$break" { !{string-length($break)} }
|
X:when "$break" { !{string-length($break)} }
|
||||||
|
|
||||||
X:when "$length = 0" { !{$max} }
|
X:when "$length = 0" { !{$max - $prefix} }
|
||||||
|
|
||||||
X:when "string-length($text) + $prefix <= $length
|
X:when "string-length($text) + $prefix <= $length" {
|
||||||
or substring($text, $length - $prefix, 1) = ' '"
|
|
||||||
{
|
|
||||||
!{$length - $prefix}
|
!{$length - $prefix}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
X:when "substring($text, $length - $prefix + 1, 1) = ' '" {
|
||||||
|
!{$length - $prefix + 1}
|
||||||
|
}
|
||||||
|
|
||||||
X:otherwise {
|
X:otherwise {
|
||||||
!length(text = "$text", prefix = "$prefix", length = "$length - 1")
|
!length(text = "$text", prefix = "$prefix", length = "$length - 1")
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,26 +1,32 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
||||||
|
|
||||||
<xsl:output encoding="koi8-r" method="text"/>
|
<xsl:output method="text"/>
|
||||||
|
|
||||||
<xsl:param select="'en'" name="lang"/>
|
<xsl:param select="'en'" name="lang"/>
|
||||||
|
|
||||||
<xsl:param select="'../xml/change_log_conf.xml'" name="configuration"/>
|
<xsl:param select="'../xml/change_log_conf.xml'" name="configuration"/>
|
||||||
|
|
||||||
<xsl:variable select="document($configuration)/configuration" name="conf"/>
|
<xsl:variable select="document($configuration)/configuration" name="conf"/>
|
||||||
|
|
||||||
<xsl:variable select="$conf/start" name="start"/>
|
<xsl:variable select="$conf/start" name="start"/>
|
||||||
|
|
||||||
<xsl:variable select="$conf/indent" name="indent"/>
|
<xsl:variable select="$conf/indent" name="indent"/>
|
||||||
|
|
||||||
<xsl:variable select="$conf/length" name="max"/>
|
<xsl:variable select="$conf/length" name="max"/>
|
||||||
|
|
||||||
<xsl:variable name="br"><br></xsl:variable>
|
<xsl:variable name="br"><br></xsl:variable>
|
||||||
|
|
||||||
<xsl:template match="/">
|
<xsl:template match="/">
|
||||||
<xsl:apply-templates select="change_log"/>
|
<xsl:apply-templates select="change_log"/>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="change_log">
|
<xsl:template match="change_log">
|
||||||
<xsl:apply-templates select="changes"/>
|
<xsl:apply-templates select="changes"/>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="changes">
|
<xsl:template match="changes">
|
||||||
|
|
||||||
<xsl:text>
|
<xsl:text>
|
||||||
</xsl:text>
|
</xsl:text>
|
||||||
|
|
||||||
|
@ -31,10 +37,14 @@
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
|
|
||||||
<xsl:if test="$lang='en'">
|
<xsl:if test="$lang='en'">
|
||||||
|
|
||||||
<xsl:value-of select="substring(@date, 1, 2)"/>
|
<xsl:value-of select="substring(@date, 1, 2)"/>
|
||||||
|
|
||||||
<xsl:value-of select="$conf/changes[@lang=$lang]/month[number(substring(current()/@date, 4, 2))]"/>
|
<xsl:value-of select="$conf/changes[@lang=$lang]/month[number(substring(current()/@date, 4, 2))]"/>
|
||||||
|
|
||||||
<xsl:value-of select="substring(@date, 7, 4)"/>
|
<xsl:value-of select="substring(@date, 7, 4)"/>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
|
|
||||||
<xsl:text>
|
<xsl:text>
|
||||||
</xsl:text>
|
</xsl:text>
|
||||||
|
|
||||||
|
@ -44,8 +54,8 @@
|
||||||
</xsl:text>
|
</xsl:text>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
|
|
||||||
<xsl:template match="change">
|
<xsl:template match="change">
|
||||||
|
|
||||||
<xsl:variable select="$conf/changes[@lang=$lang]/*[local-name(.)=current()/@type]" name="prefix"/>
|
<xsl:variable select="$conf/changes[@lang=$lang]/*[local-name(.)=current()/@type]" name="prefix"/>
|
||||||
|
|
||||||
<xsl:variable name="postfix">
|
<xsl:variable name="postfix">
|
||||||
|
@ -59,9 +69,9 @@
|
||||||
</xsl:apply-templates>
|
</xsl:apply-templates>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
|
|
||||||
<xsl:template match="para" name="para">
|
<xsl:template match="para" name="para">
|
||||||
<xsl:param name="prefix"/>
|
<xsl:param name="prefix"/>
|
||||||
|
|
||||||
<xsl:variable name="text">
|
<xsl:variable name="text">
|
||||||
<xsl:apply-templates/>
|
<xsl:apply-templates/>
|
||||||
</xsl:variable>
|
</xsl:variable>
|
||||||
|
@ -73,6 +83,7 @@
|
||||||
<xsl:with-param select="normalize-space($text)" name="text"/>
|
<xsl:with-param select="normalize-space($text)" name="text"/>
|
||||||
<xsl:with-param name="prefix">
|
<xsl:with-param name="prefix">
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
|
|
||||||
<xsl:when test="position() = 1">
|
<xsl:when test="position() = 1">
|
||||||
<xsl:value-of select="$prefix"/>
|
<xsl:value-of select="$prefix"/>
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
|
@ -84,31 +95,38 @@
|
||||||
</xsl:call-template>
|
</xsl:call-template>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
|
|
||||||
<xsl:template name="wrap">
|
<xsl:template name="wrap">
|
||||||
<xsl:param name="text"/>
|
<xsl:param name="text"/>
|
||||||
<xsl:param name="prefix"/>
|
<xsl:param name="prefix"/>
|
||||||
|
|
||||||
<xsl:if test="$text">
|
<xsl:if test="$text">
|
||||||
|
|
||||||
<xsl:variable name="offset">
|
<xsl:variable name="offset">
|
||||||
|
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
<xsl:when test="starts-with($text, concat($br, ' '))">
|
<xsl:when test="starts-with($text, concat($br, ' '))">
|
||||||
<xsl:value-of select="string-length($br) + 2"/>
|
<xsl:value-of select="string-length($br) + 2"/>
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
|
<xsl:when test="starts-with($text, $br)">
|
||||||
|
<xsl:value-of select="string-length($br) + 1"/>
|
||||||
|
</xsl:when>
|
||||||
<xsl:otherwise>
|
<xsl:otherwise>
|
||||||
1</xsl:otherwise>
|
1</xsl:otherwise>
|
||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
</xsl:variable>
|
</xsl:variable>
|
||||||
|
|
||||||
<xsl:variable name="length">
|
<xsl:variable name="length">
|
||||||
|
|
||||||
<xsl:call-template name="length">
|
<xsl:call-template name="length">
|
||||||
<xsl:with-param select="substring($text, $offset)" name="text"/>
|
<xsl:with-param select="substring($text, $offset)" name="text"/>
|
||||||
<xsl:with-param select="string-length($prefix)" name="prefix"/>
|
<xsl:with-param select="string-length($prefix)" name="prefix"/>
|
||||||
<xsl:with-param select="$max" name="length"/>
|
<xsl:with-param select="$max" name="length"/>
|
||||||
</xsl:call-template>
|
</xsl:call-template>
|
||||||
</xsl:variable>
|
</xsl:variable>
|
||||||
|
|
||||||
<xsl:value-of select="$prefix"/>
|
<xsl:value-of select="$prefix"/>
|
||||||
|
|
||||||
<xsl:value-of select="translate(substring($text, $offset, $length), ' ', ' ')"/>
|
<xsl:value-of select="normalize-space(translate(substring($text, $offset, $length), ' ', ' '))"/>
|
||||||
|
|
||||||
<xsl:text>
|
<xsl:text>
|
||||||
</xsl:text>
|
</xsl:text>
|
||||||
|
@ -119,23 +137,29 @@
|
||||||
</xsl:call-template>
|
</xsl:call-template>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template name="length">
|
<xsl:template name="length">
|
||||||
<xsl:param name="text"/>
|
<xsl:param name="text"/>
|
||||||
<xsl:param name="prefix"/>
|
<xsl:param name="prefix"/>
|
||||||
<xsl:param name="length"/>
|
<xsl:param name="length"/>
|
||||||
<xsl:variable select="substring-before(substring($text, 1, $length - $prefix), $br)" name="break"/>
|
|
||||||
|
<xsl:variable select="substring-before(substring($text, 1, $length - $prefix + string-length($br)), $br)" name="break"/>
|
||||||
|
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
<xsl:when test="$break">
|
<xsl:when test="$break">
|
||||||
<xsl:value-of select="string-length($break)"/>
|
<xsl:value-of select="string-length($break)"/>
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
<xsl:when test="$length = 0">
|
<xsl:when test="$length = 0">
|
||||||
<xsl:value-of select="$max"/>
|
<xsl:value-of select="$max - $prefix"/>
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
<xsl:when test="string-length($text) + $prefix <= $length or substring($text, $length - $prefix, 1) = ' '">
|
<xsl:when test="string-length($text) + $prefix <= $length">
|
||||||
<xsl:value-of select="$length - $prefix"/>
|
<xsl:value-of select="$length - $prefix"/>
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
|
<xsl:when test="substring($text, $length - $prefix + 1, 1) = ' '">
|
||||||
|
<xsl:value-of select="$length - $prefix + 1"/>
|
||||||
|
</xsl:when>
|
||||||
<xsl:otherwise>
|
<xsl:otherwise>
|
||||||
|
|
||||||
<xsl:call-template name="length">
|
<xsl:call-template name="length">
|
||||||
<xsl:with-param select="$text" name="text"/>
|
<xsl:with-param select="$text" name="text"/>
|
||||||
<xsl:with-param select="$prefix" name="prefix"/>
|
<xsl:with-param select="$prefix" name="prefix"/>
|
||||||
|
@ -145,14 +169,14 @@
|
||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
|
|
||||||
<xsl:template match="at">@</xsl:template>
|
<xsl:template match="at">@</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="br">
|
<xsl:template match="br">
|
||||||
<xsl:value-of select="$br"/>
|
<xsl:value-of select="$br"/>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="nobr">
|
<xsl:template match="nobr">
|
||||||
<xsl:value-of select="translate(., ' ', ' ')"/>
|
<xsl:value-of select="translate(., ' ', ' ')"/>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
</xsl:stylesheet>
|
|
||||||
|
</xsl:stylesheet>
|
||||||
|
|
|
@ -3,11 +3,12 @@ VER = $(shell grep 'define NGINX_VERSION' src/core/nginx.h \
|
||||||
| sed -e 's/^.*\"\(.*\)\"/\1/')
|
| sed -e 's/^.*\"\(.*\)\"/\1/')
|
||||||
NGINX = nginx-$(VER)
|
NGINX = nginx-$(VER)
|
||||||
TEMP = tmp
|
TEMP = tmp
|
||||||
|
REPO = $(shell svn info | sed -n 's/^Repository Root: //p')
|
||||||
|
|
||||||
OBJS = objs.msvc8
|
OBJS = objs.msvc8
|
||||||
OPENSSL = openssl-0.9.8r
|
OPENSSL = openssl-0.9.8u
|
||||||
ZLIB = zlib-1.2.3
|
ZLIB = zlib-1.2.5
|
||||||
PCRE = pcre-7.9
|
PCRE = pcre-8.30
|
||||||
|
|
||||||
|
|
||||||
release:
|
release:
|
||||||
|
@ -25,8 +26,6 @@ release:
|
||||||
|
|
||||||
rm -r $(TEMP)/$(NGINX)/src/mysql
|
rm -r $(TEMP)/$(NGINX)/src/mysql
|
||||||
|
|
||||||
rm $(TEMP)/$(NGINX)/src/http/modules/ngx_http_status_module.c
|
|
||||||
|
|
||||||
mv $(TEMP)/$(NGINX)/docs/text/LICENSE $(TEMP)/$(NGINX)
|
mv $(TEMP)/$(NGINX)/docs/text/LICENSE $(TEMP)/$(NGINX)
|
||||||
mv $(TEMP)/$(NGINX)/docs/text/README $(TEMP)/$(NGINX)
|
mv $(TEMP)/$(NGINX)/docs/text/README $(TEMP)/$(NGINX)
|
||||||
mv $(TEMP)/$(NGINX)/docs/html $(TEMP)/$(NGINX)
|
mv $(TEMP)/$(NGINX)/docs/html $(TEMP)/$(NGINX)
|
||||||
|
@ -40,6 +39,22 @@ release:
|
||||||
tar -c -z -f $(NGINX).tar.gz --directory $(TEMP) $(NGINX)
|
tar -c -z -f $(NGINX).tar.gz --directory $(TEMP) $(NGINX)
|
||||||
|
|
||||||
|
|
||||||
|
RELEASE:
|
||||||
|
test -d $(TEMP) || mkdir -p $(TEMP)
|
||||||
|
|
||||||
|
echo "nginx-$(VER)-RELEASE" > $(TEMP)/message
|
||||||
|
svn ci -F $(TEMP)/message
|
||||||
|
|
||||||
|
echo "release-$(VER) tag" > $(TEMP)/message
|
||||||
|
svn copy $(REPO)/branches/stable-1.0 \
|
||||||
|
$(REPO)/tags/release-$(VER) \
|
||||||
|
-F $(TEMP)/message
|
||||||
|
|
||||||
|
svn up
|
||||||
|
|
||||||
|
$(MAKE) -f misc/GNUmakefile release
|
||||||
|
|
||||||
|
|
||||||
snapshot:
|
snapshot:
|
||||||
rm -rf $(TEMP)
|
rm -rf $(TEMP)
|
||||||
|
|
||||||
|
@ -56,8 +71,6 @@ snapshot:
|
||||||
|
|
||||||
rm -r $(TEMP)/$(NGINX)/src/mysql
|
rm -r $(TEMP)/$(NGINX)/src/mysql
|
||||||
|
|
||||||
rm $(TEMP)/$(NGINX)/src/http/modules/ngx_http_status_module.c
|
|
||||||
|
|
||||||
mv $(TEMP)/$(NGINX)/docs/text/LICENSE $(TEMP)/$(NGINX)
|
mv $(TEMP)/$(NGINX)/docs/text/LICENSE $(TEMP)/$(NGINX)
|
||||||
mv $(TEMP)/$(NGINX)/docs/text/README $(TEMP)/$(NGINX)
|
mv $(TEMP)/$(NGINX)/docs/text/README $(TEMP)/$(NGINX)
|
||||||
mv $(TEMP)/$(NGINX)/docs/html $(TEMP)/$(NGINX)
|
mv $(TEMP)/$(NGINX)/docs/html $(TEMP)/$(NGINX)
|
||||||
|
@ -99,7 +112,7 @@ zip:
|
||||||
cp -p $(OBJS)/lib/$(PCRE)/LICENCE \
|
cp -p $(OBJS)/lib/$(PCRE)/LICENCE \
|
||||||
$(TEMP)/$(NGINX)/docs/PCRE.LICENCE
|
$(TEMP)/$(NGINX)/docs/PCRE.LICENCE
|
||||||
|
|
||||||
perl -ne 'print if /^ \(C\) 1995-2004/ .. /^ jloup\@gzip.org/' \
|
perl -ne 'print if /^ \(C\) 1995-20/ .. /^ jloup\@gzip.org/' \
|
||||||
$(OBJS)/lib/$(ZLIB)/README \
|
$(OBJS)/lib/$(ZLIB)/README \
|
||||||
> $(TEMP)/$(NGINX)/docs/zlib.LICENSE
|
> $(TEMP)/$(NGINX)/docs/zlib.LICENSE
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) Igor Sysoev
|
* Copyright (C) Igor Sysoev
|
||||||
|
* Copyright (C) Nginx, Inc.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
@ -203,6 +204,10 @@ main(int argc, char *const *argv)
|
||||||
ngx_cycle_t *cycle, init_cycle;
|
ngx_cycle_t *cycle, init_cycle;
|
||||||
ngx_core_conf_t *ccf;
|
ngx_core_conf_t *ccf;
|
||||||
|
|
||||||
|
#if (NGX_FREEBSD)
|
||||||
|
ngx_debug_init();
|
||||||
|
#endif
|
||||||
|
|
||||||
if (ngx_strerror_init() != NGX_OK) {
|
if (ngx_strerror_init() != NGX_OK) {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
@ -212,47 +217,49 @@ main(int argc, char *const *argv)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ngx_show_version) {
|
if (ngx_show_version) {
|
||||||
ngx_log_stderr(0, "nginx version: " NGINX_VER);
|
ngx_write_stderr("nginx version: " NGINX_VER NGX_LINEFEED);
|
||||||
|
|
||||||
if (ngx_show_help) {
|
if (ngx_show_help) {
|
||||||
ngx_log_stderr(0,
|
ngx_write_stderr(
|
||||||
"Usage: nginx [-?hvVtq] [-s signal] [-c filename] "
|
"Usage: nginx [-?hvVtq] [-s signal] [-c filename] "
|
||||||
"[-p prefix] [-g directives]" CRLF CRLF
|
"[-p prefix] [-g directives]" NGX_LINEFEED
|
||||||
"Options:" CRLF
|
NGX_LINEFEED
|
||||||
" -?,-h : this help" CRLF
|
"Options:" NGX_LINEFEED
|
||||||
" -v : show version and exit" CRLF
|
" -?,-h : this help" NGX_LINEFEED
|
||||||
|
" -v : show version and exit" NGX_LINEFEED
|
||||||
" -V : show version and configure options then exit"
|
" -V : show version and configure options then exit"
|
||||||
CRLF
|
NGX_LINEFEED
|
||||||
" -t : test configuration and exit" CRLF
|
" -t : test configuration and exit" NGX_LINEFEED
|
||||||
" -q : suppress non-error messages "
|
" -q : suppress non-error messages "
|
||||||
"during configuration testing" CRLF
|
"during configuration testing" NGX_LINEFEED
|
||||||
" -s signal : send signal to a master process: "
|
" -s signal : send signal to a master process: "
|
||||||
"stop, quit, reopen, reload" CRLF
|
"stop, quit, reopen, reload" NGX_LINEFEED
|
||||||
#ifdef NGX_PREFIX
|
#ifdef NGX_PREFIX
|
||||||
" -p prefix : set prefix path (default: "
|
" -p prefix : set prefix path (default: "
|
||||||
NGX_PREFIX ")" CRLF
|
NGX_PREFIX ")" NGX_LINEFEED
|
||||||
#else
|
#else
|
||||||
" -p prefix : set prefix path (default: NONE)" CRLF
|
" -p prefix : set prefix path (default: NONE)" NGX_LINEFEED
|
||||||
#endif
|
#endif
|
||||||
" -c filename : set configuration file (default: "
|
" -c filename : set configuration file (default: "
|
||||||
NGX_CONF_PATH ")" CRLF
|
NGX_CONF_PATH ")" NGX_LINEFEED
|
||||||
" -g directives : set global directives out of configuration "
|
" -g directives : set global directives out of configuration "
|
||||||
"file" CRLF
|
"file" NGX_LINEFEED NGX_LINEFEED
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ngx_show_configure) {
|
if (ngx_show_configure) {
|
||||||
|
ngx_write_stderr(
|
||||||
#ifdef NGX_COMPILER
|
#ifdef NGX_COMPILER
|
||||||
ngx_log_stderr(0, "built by " NGX_COMPILER);
|
"built by " NGX_COMPILER NGX_LINEFEED
|
||||||
#endif
|
#endif
|
||||||
#if (NGX_SSL)
|
#if (NGX_SSL)
|
||||||
#ifdef SSL_CTRL_SET_TLSEXT_HOSTNAME
|
#ifdef SSL_CTRL_SET_TLSEXT_HOSTNAME
|
||||||
ngx_log_stderr(0, "TLS SNI support enabled");
|
"TLS SNI support enabled" NGX_LINEFEED
|
||||||
#else
|
#else
|
||||||
ngx_log_stderr(0, "TLS SNI support disabled");
|
"TLS SNI support disabled" NGX_LINEFEED
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
ngx_log_stderr(0, "configure arguments:" NGX_CONFIGURE);
|
"configure arguments:" NGX_CONFIGURE NGX_LINEFEED);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!ngx_test_config) {
|
if (!ngx_test_config) {
|
||||||
|
@ -260,10 +267,6 @@ main(int argc, char *const *argv)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#if (NGX_FREEBSD)
|
|
||||||
ngx_debug_init();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* TODO */ ngx_max_sockets = -1;
|
/* TODO */ ngx_max_sockets = -1;
|
||||||
|
|
||||||
ngx_time_init();
|
ngx_time_init();
|
||||||
|
@ -374,6 +377,10 @@ main(int argc, char *const *argv)
|
||||||
ngx_daemonized = 1;
|
ngx_daemonized = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (ngx_inherited) {
|
||||||
|
ngx_daemonized = 1;
|
||||||
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (ngx_create_pidfile(&ccf->pid, cycle->log) != NGX_OK) {
|
if (ngx_create_pidfile(&ccf->pid, cycle->log) != NGX_OK) {
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) Igor Sysoev
|
* Copyright (C) Igor Sysoev
|
||||||
|
* Copyright (C) Nginx, Inc.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
@ -8,8 +9,8 @@
|
||||||
#define _NGINX_H_INCLUDED_
|
#define _NGINX_H_INCLUDED_
|
||||||
|
|
||||||
|
|
||||||
#define nginx_version 1000005
|
#define nginx_version 1000015
|
||||||
#define NGINX_VERSION "1.0.5"
|
#define NGINX_VERSION "1.0.15"
|
||||||
#define NGINX_VER "nginx/" NGINX_VERSION
|
#define NGINX_VER "nginx/" NGINX_VERSION
|
||||||
|
|
||||||
#define NGINX_VAR "NGINX"
|
#define NGINX_VAR "NGINX"
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) Igor Sysoev
|
* Copyright (C) Igor Sysoev
|
||||||
|
* Copyright (C) Nginx, Inc.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) Igor Sysoev
|
* Copyright (C) Igor Sysoev
|
||||||
|
* Copyright (C) Nginx, Inc.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) Igor Sysoev
|
* Copyright (C) Igor Sysoev
|
||||||
|
* Copyright (C) Nginx, Inc.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) Igor Sysoev
|
* Copyright (C) Igor Sysoev
|
||||||
|
* Copyright (C) Nginx, Inc.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) Igor Sysoev
|
* Copyright (C) Igor Sysoev
|
||||||
|
* Copyright (C) Nginx, Inc.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) Igor Sysoev
|
* Copyright (C) Igor Sysoev
|
||||||
|
* Copyright (C) Nginx, Inc.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) Igor Sysoev
|
* Copyright (C) Igor Sysoev
|
||||||
|
* Copyright (C) Nginx, Inc.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
@ -127,5 +128,7 @@ typedef intptr_t ngx_flag_t;
|
||||||
#define NGX_MAX_UINT32_VALUE (uint32_t) 0xffffffff
|
#define NGX_MAX_UINT32_VALUE (uint32_t) 0xffffffff
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define NGX_MAX_INT32_VALUE (uint32_t) 0x7fffffff
|
||||||
|
|
||||||
|
|
||||||
#endif /* _NGX_CONFIG_H_INCLUDED_ */
|
#endif /* _NGX_CONFIG_H_INCLUDED_ */
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) Igor Sysoev
|
* Copyright (C) Igor Sysoev
|
||||||
|
* Copyright (C) Nginx, Inc.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
@ -580,7 +581,7 @@ ngx_configure_listening_sockets(ngx_cycle_t *cycle)
|
||||||
{
|
{
|
||||||
ngx_log_error(NGX_LOG_ALERT, cycle->log, ngx_errno,
|
ngx_log_error(NGX_LOG_ALERT, cycle->log, ngx_errno,
|
||||||
"setsockopt(SO_ACCEPTFILTER, \"%s\") "
|
"setsockopt(SO_ACCEPTFILTER, \"%s\") "
|
||||||
" for %V failed, ignored",
|
"for %V failed, ignored",
|
||||||
ls[i].accept_filter, &ls[i].addr_text);
|
ls[i].accept_filter, &ls[i].addr_text);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) Igor Sysoev
|
* Copyright (C) Igor Sysoev
|
||||||
|
* Copyright (C) Nginx, Inc.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) Igor Sysoev
|
* Copyright (C) Igor Sysoev
|
||||||
|
* Copyright (C) Nginx, Inc.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) Igor Sysoev
|
* Copyright (C) Igor Sysoev
|
||||||
|
* Copyright (C) Nginx, Inc.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) Igor Sysoev
|
* Copyright (C) Igor Sysoev
|
||||||
|
* Copyright (C) Nginx, Inc.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) Igor Sysoev
|
* Copyright (C) Igor Sysoev
|
||||||
|
* Copyright (C) Nginx, Inc.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) Igor Sysoev
|
* Copyright (C) Igor Sysoev
|
||||||
|
* Copyright (C) Nginx, Inc.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) Igor Sysoev
|
* Copyright (C) Igor Sysoev
|
||||||
|
* Copyright (C) Nginx, Inc.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue