Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
2651a49
ZCOMT-2570 : Examine the files in the core directory of the public ng…
SuryawanshiAmol Aug 10, 2023
13df14c
ZCOMT-2570 : Examine the files in the core directory of the public nginx
SuryawanshiAmol Aug 10, 2023
677676b
ZCOMT-2570 : Examine the files in the auto directory of the public ng…
Aug 22, 2023
c47e8bf
ZCOMT-2570 : Examine the files in the conf directory of the public ng…
Aug 22, 2023
ab561a7
ZCOMT-2570 : Examine the files in the contrib directory of the public…
Aug 22, 2023
b29c9ec
ZCOMT-2570 : Examine the files in the docs directory of the public ng…
Aug 22, 2023
db03fe7
ZCOMT-2570 : Examine the files in the misc directory of the public ng…
Aug 22, 2023
6684eb8
ZCOMT-2570 : Examine the files in the src/stream directory of the pub…
Aug 22, 2023
54bcab0
ZCOMT-2570 : Examine the files in the src/os directory of the public …
Aug 22, 2023
6c7fa33
ZCOMT-2570 : Examine src/mail/ngx_mail_smtp_module.c of the public ng…
Aug 23, 2023
f0089b0
ZCOMT-2570 : Examine src/mail/ngx_mail_proxy_module.c of the public n…
Aug 23, 2023
2c64d98
ZCOMT-2570 : adding customization headers to src/mail/ngx_mail_pop3_m…
Aug 23, 2023
5d43868
ZCOMT-2570 : Examine src/mail/ngx_mail_pop3_module.c of the public ng…
Aug 23, 2023
8343803
ZCOMT-2579: Discuss the review comment and apply it to the "core" dir…
SuryawanshiAmol Aug 25, 2023
19b5a4e
ZCOMT-2578: Merge the files in the "mail" directory from the public n…
SuryawanshiAmol Aug 31, 2023
c27c52b
ZCOMT-2579 :
SuryawanshiAmol Sep 4, 2023
fc2347c
Merge pull request #6 from Zimbra/bugfix/ZCOMT-2579
SuryawanshiAmol Sep 7, 2023
83615d4
ZCOMT-2581 : Review and compile the merged nginx code
SuryawanshiAmol Sep 7, 2023
47314b2
ZCOMT-2581 : Review and compile the merged nginx code
SuryawanshiAmol Sep 8, 2023
cd849b6
ZCOMT-2581 : Review and compile the merged nginx code
SuryawanshiAmol Sep 8, 2023
80ca9e1
ZCOMT-2586 - Compile the nginx code in branch feature/ZCS-11179
SuryawanshiAmol Sep 18, 2023
c571aaa
ZCOMT-2586 - Compile the nginx code in branch feature/ZCS-11179
SuryawanshiAmol Sep 19, 2023
d10bc53
ZCS-13998 : NGINX - Customization code separation from repo
SuryawanshiAmol Oct 2, 2023
c518f04
Update ngx_http_upstream.c
Oct 2, 2023
7b0bec7
ZCS-13998 : NGINX - Customization code separation from repo
SuryawanshiAmol Oct 9, 2023
db58187
ZCS-13998 : NGINX - Customization code separation from repo
SuryawanshiAmol Oct 9, 2023
554d6ed
ZCS-13998 : NGINX - Customization code separation from repo
SuryawanshiAmol Oct 9, 2023
1286d0e
ZCS-14068 : NGINX - Update review comments and documentation
SuryawanshiAmol Oct 11, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .hgtags
Original file line number Diff line number Diff line change
Expand Up @@ -460,3 +460,16 @@ f618488eb769e0ed74ef0d93cd118d2ad79ef94d release-1.19.6
8c65d21464aaa5923775f80c32474adc7a320068 release-1.19.8
da571b8eaf8f30f36c43b3c9b25e01e31f47149c release-1.19.9
ffcbb9980ee2bad27b4d7b1cd680b14ff47b29aa release-1.19.10
df34dcc9ac072ffd0945e5a1f3eb7987e8275375 release-1.21.0
a68ac0677f8553b1f84d357bc9da114731ab5f47 release-1.21.1
bfbc52374adcbf2f9060afd62de940f6fab3bba5 release-1.21.2
2217a9c1d0b86026f22700b3c089545db1964f55 release-1.21.3
39be8a682c58308d9399cddd57e37f9fdb7bdf3e release-1.21.4
d986378168fd4d70e0121cabac274c560cca9bdf release-1.21.5
714eb4b2c09e712fb2572a2164ce2bf67638ccac release-1.21.6
5da2c0902e8e2aa4534008a582a60c61c135960e release-1.23.0
a63d0a70afea96813ba6667997bc7d68b5863f0d release-1.23.1
aa901551a7ebad1e8b0f8c11cb44e3424ba29707 release-1.23.2
ff3afd1ce6a6b65057741df442adfaa71a0e2588 release-1.23.3
ac779115ed6ee4f3039e9aea414a54e560450ee2 release-1.23.4
420f96a6f7ac612b2b11750139cf8f4959803717 release-1.24.0
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

This is the official repository for building out the third party dependency nginx for Zimbra Collaboration Suite 8.7 and later.

Issues should be reported via [Zimbra's bugzilla](https://bugzilla.zimbra.com)
Issues should be reported via [Zimbra's jira](https://synacor.atlassian.net/jira/your-work)

## Development branch
zimbra/develop

## Release tags
zimbra-release-1.19.0
zimbra-release-1.24.0
2 changes: 1 addition & 1 deletion auto/cc/conf
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ else
. auto/cc/acc
;;

msvc*)
msvc)
# MSVC++ 6.0 SP2, MSVC++ Toolkit 2003

. auto/cc/msvc
Expand Down
2 changes: 2 additions & 0 deletions auto/cc/gcc
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,10 @@ esac

#NGX_GCC_OPT="-O2"
#NGX_GCC_OPT="-Os"
# Zimbra customizations start here (Jira Tickets: )
#NGX_GCC_OPT="-O"
NGX_GCC_OPT="-O0"
# Zimbra customizations end here

#CFLAGS="$CFLAGS -fomit-frame-pointer"

Expand Down
19 changes: 17 additions & 2 deletions auto/cc/msvc
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
# MSVC 2015 (14.0) cl 19.00


NGX_MSVC_VER=`$NGX_WINE $CC 2>&1 | grep 'Compiler Version' 2>&1 \
| sed -e 's/^.* Version \(.*\)/\1/'`
NGX_MSVC_VER=`$NGX_WINE $CC 2>&1 | grep 'C/C++.* [0-9][0-9]*\.[0-9]' 2>&1 \
| sed -e 's/^.* \([0-9][0-9]*\.[0-9].*\)/\1/'`

echo " + cl version: $NGX_MSVC_VER"

Expand All @@ -22,6 +22,21 @@ have=NGX_COMPILER value="\"cl $NGX_MSVC_VER\"" . auto/define
ngx_msvc_ver=`echo $NGX_MSVC_VER | sed -e 's/^\([0-9]*\).*/\1/'`


# detect x64 builds

case "$NGX_MSVC_VER" in

*x64)
NGX_MACHINE=amd64
;;

*)
NGX_MACHINE=i386
;;

esac


# optimizations

# maximize speed, equivalent to -Og -Oi -Ot -Oy -Ob2 -Gs -GF -Gy
Expand Down
1 change: 1 addition & 0 deletions auto/configure
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ if test -z "$NGX_PLATFORM"; then
else
echo "building for $NGX_PLATFORM"
NGX_SYSTEM=$NGX_PLATFORM
NGX_MACHINE=i386
fi

. auto/cc/conf
Expand Down
2 changes: 2 additions & 0 deletions auto/lib/conf
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ if [ $NGX_LIBATOMIC != NO ]; then
. auto/lib/libatomic/conf
fi

# Zimbra customizations start here: Implement SASL Authentication (Jira Tickets: )
if [ $USE_SASL = YES ]; then
. auto/lib/sasl/conf
fi
# Zimbra customizations end here
15 changes: 14 additions & 1 deletion auto/lib/openssl/make
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,24 @@ case "$CC" in

cl)

case "$NGX_MACHINE" in

amd64)
OPENSSL_TARGET=VC-WIN64A
;;

*)
OPENSSL_TARGET=VC-WIN32
;;

esac

cat << END >> $NGX_MAKEFILE

$OPENSSL/openssl/include/openssl/ssl.h: $NGX_MAKEFILE
\$(MAKE) -f auto/lib/openssl/makefile.msvc \
OPENSSL="$OPENSSL" OPENSSL_OPT="$OPENSSL_OPT"
OPENSSL="$OPENSSL" OPENSSL_OPT="$OPENSSL_OPT" \
OPENSSL_TARGET="$OPENSSL_TARGET"

END

Expand Down
2 changes: 1 addition & 1 deletion auto/lib/openssl/makefile.msvc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
all:
cd $(OPENSSL)

perl Configure VC-WIN32 no-shared \
perl Configure $(OPENSSL_TARGET) no-shared no-threads \
--prefix="%cd%/openssl" \
--openssldir="%cd%/openssl/ssl" \
$(OPENSSL_OPT)
Expand Down
154 changes: 85 additions & 69 deletions auto/lib/pcre/conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,87 +4,62 @@


if [ $PCRE != NONE ]; then
CORE_INCS="$CORE_INCS $PCRE"

case "$NGX_CC_NAME" in
if [ -f $PCRE/src/pcre2.h.generic ]; then

msvc | owc | bcc)
have=NGX_PCRE . auto/have
have=PCRE_STATIC . auto/have
CORE_DEPS="$CORE_DEPS $PCRE/pcre.h"
LINK_DEPS="$LINK_DEPS $PCRE/pcre.lib"
CORE_LIBS="$CORE_LIBS $PCRE/pcre.lib"
;;
PCRE_LIBRARY=PCRE2

icc)
have=NGX_PCRE . auto/have
CORE_DEPS="$CORE_DEPS $PCRE/pcre.h"
have=NGX_PCRE . auto/have
have=NGX_PCRE2 . auto/have

LINK_DEPS="$LINK_DEPS $PCRE/.libs/libpcre.a"
if [ "$NGX_PLATFORM" = win32 ]; then
have=PCRE2_STATIC . auto/have
fi

echo $ngx_n "checking for PCRE library ...$ngx_c"
CORE_INCS="$CORE_INCS $PCRE/src/"
CORE_DEPS="$CORE_DEPS $PCRE/src/pcre2.h"

if [ -f $PCRE/pcre.h ]; then
ngx_pcre_ver=`grep PCRE_MAJOR $PCRE/pcre.h \
| sed -e 's/^.*PCRE_MAJOR.* \(.*\)$/\1/'`
case "$NGX_CC_NAME" in

else if [ -f $PCRE/configure.in ]; then
ngx_pcre_ver=`grep PCRE_MAJOR= $PCRE/configure.in \
| sed -e 's/^.*=\(.*\)$/\1/'`
msvc)
LINK_DEPS="$LINK_DEPS $PCRE/src/pcre2-8.lib"
CORE_LIBS="$CORE_LIBS $PCRE/src/pcre2-8.lib"
;;

else
ngx_pcre_ver=`grep pcre_major, $PCRE/configure.ac \
| sed -e 's/^.*pcre_major,.*\[\(.*\)\].*$/\1/'`
fi
fi
*)
LINK_DEPS="$LINK_DEPS $PCRE/.libs/libpcre2-8.a"
CORE_LIBS="$CORE_LIBS $PCRE/.libs/libpcre2-8.a"
;;

echo " $ngx_pcre_ver major version found"

# to allow -ipo optimization we link with the *.o but not library

case "$ngx_pcre_ver" in
4|5)
CORE_LIBS="$CORE_LIBS $PCRE/pcre.o"
;;

6)
CORE_LIBS="$CORE_LIBS $PCRE/pcre_chartables.o"
CORE_LIBS="$CORE_LIBS $PCRE/pcre_compile.o"
CORE_LIBS="$CORE_LIBS $PCRE/pcre_exec.o"
CORE_LIBS="$CORE_LIBS $PCRE/pcre_fullinfo.o"
CORE_LIBS="$CORE_LIBS $PCRE/pcre_globals.o"
CORE_LIBS="$CORE_LIBS $PCRE/pcre_tables.o"
CORE_LIBS="$CORE_LIBS $PCRE/pcre_try_flipped.o"
;;

*)
CORE_LIBS="$CORE_LIBS $PCRE/pcre_chartables.o"
CORE_LIBS="$CORE_LIBS $PCRE/pcre_compile.o"
CORE_LIBS="$CORE_LIBS $PCRE/pcre_exec.o"
CORE_LIBS="$CORE_LIBS $PCRE/pcre_fullinfo.o"
CORE_LIBS="$CORE_LIBS $PCRE/pcre_globals.o"
CORE_LIBS="$CORE_LIBS $PCRE/pcre_tables.o"
CORE_LIBS="$CORE_LIBS $PCRE/pcre_try_flipped.o"
CORE_LIBS="$CORE_LIBS $PCRE/pcre_newline.o"
;;

esac
;;

*)
have=NGX_PCRE . auto/have
esac

if [ "$NGX_PLATFORM" = win32 ]; then
have=PCRE_STATIC . auto/have
fi
else

CORE_DEPS="$CORE_DEPS $PCRE/pcre.h"
LINK_DEPS="$LINK_DEPS $PCRE/.libs/libpcre.a"
CORE_LIBS="$CORE_LIBS $PCRE/.libs/libpcre.a"
;;
PCRE_LIBRARY=PCRE

esac
have=NGX_PCRE . auto/have

if [ "$NGX_PLATFORM" = win32 ]; then
have=PCRE_STATIC . auto/have
fi

CORE_INCS="$CORE_INCS $PCRE"
CORE_DEPS="$CORE_DEPS $PCRE/pcre.h"

case "$NGX_CC_NAME" in

msvc | owc | bcc)
LINK_DEPS="$LINK_DEPS $PCRE/pcre.lib"
CORE_LIBS="$CORE_LIBS $PCRE/pcre.lib"
;;

*)
LINK_DEPS="$LINK_DEPS $PCRE/.libs/libpcre.a"
CORE_LIBS="$CORE_LIBS $PCRE/.libs/libpcre.a"
;;

esac
fi

if [ $PCRE_JIT = YES ]; then
have=NGX_HAVE_PCRE_JIT . auto/have
Expand All @@ -94,8 +69,48 @@ if [ $PCRE != NONE ]; then
else

if [ "$NGX_PLATFORM" != win32 ]; then

PCRE=NO
fi

if [ $PCRE = NO -a $PCRE2 != DISABLED ]; then

ngx_feature="PCRE2 library"
ngx_feature_name="NGX_PCRE2"
ngx_feature_run=no
ngx_feature_incs="#define PCRE2_CODE_UNIT_WIDTH 8
#include <pcre2.h>"
ngx_feature_path=
ngx_feature_libs="-lpcre2-8"
ngx_feature_test="pcre2_code *re;
re = pcre2_compile(NULL, 0, 0, NULL, NULL, NULL);
if (re == NULL) return 1"
. auto/feature

if [ $ngx_found = no ]; then

# pcre2-config

ngx_pcre2_prefix=`pcre2-config --prefix 2>/dev/null`

if [ -n "$ngx_pcre2_prefix" ]; then
ngx_feature="PCRE2 library in $ngx_pcre2_prefix"
ngx_feature_path=`pcre2-config --cflags \
| sed -n -e 's/.*-I *\([^ ][^ ]*\).*/\1/p'`
ngx_feature_libs=`pcre2-config --libs8`
. auto/feature
fi
fi

if [ $ngx_found = yes ]; then
have=NGX_PCRE . auto/have
CORE_INCS="$CORE_INCS $ngx_feature_path"
CORE_LIBS="$CORE_LIBS $ngx_feature_libs"
PCRE=YES
PCRE_LIBRARY=PCRE2
fi
fi

if [ $PCRE = NO ]; then

ngx_feature="PCRE library"
ngx_feature_name="NGX_PCRE"
Expand Down Expand Up @@ -171,6 +186,7 @@ else
CORE_INCS="$CORE_INCS $ngx_feature_path"
CORE_LIBS="$CORE_LIBS $ngx_feature_libs"
PCRE=YES
PCRE_LIBRARY=PCRE
fi

if [ $PCRE = YES ]; then
Expand Down
Loading