Skip to content

Commit

Permalink
Merge pull request #54 from VirtuBox/libressl
Browse files Browse the repository at this point in the history
Update Nginx stable to 1.16.0
  • Loading branch information
VirtuBox authored Apr 24, 2019
2 parents 4fe3b6e + bac52b0 commit cac9e4b
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ script:
- lsb_release -a
- sudo echo "Travis Banch = $TRAVIS_BRANCH"
- sudo apt-get install -y --force-yes git nginx curl wget ccze
- sudo bash nginx-build.sh --travis && sudo bash nginx-build.sh --libressl --travis && sudo bash nginx-build.sh --openssl-system --travis || sudo bash -c 'tail -n 100 /tmp/nginx-ee.log | ccze -A'
- sudo bash nginx-build.sh --stable --travis && sudo bash nginx-build.sh --libressl --travis && sudo bash nginx-build.sh --travis || sudo bash -c 'tail -n 100 /tmp/nginx-ee.log | ccze -A'
- sudo chown -R travis /usr/local/src
- sudo chmod 755 /usr/local/src
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,16 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

## [Unreleased] - XX-XX-XX

# [3.6.2] - 2019-04-24

### Added

- Additional GCC flags : "-Wno-error=date-time for Debian" : PR [#52](https://github.com/VirtuBox/nginx-ee/pull/52)

### Changed

- Update LibreSSL to v2.9.1
- Update Nginx stable to 1.16.0

## [3.6.1] - 2019-04-19

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Automated Nginx compilation from sources with additional modules support
## Additional Third-party modules

Nginx current mainline release : **v1.15.12**
Nginx current stable release : **v1.14.2**
Nginx current stable release : **v1.16.0**

* [ngx_cache_purge](https://github.com/FRiCKLE/ngx_cache_purge)
* [headers-more-nginx-module](https://github.com/openresty/headers-more-nginx-module)
Expand Down
26 changes: 16 additions & 10 deletions nginx-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# Copyright (c) 2019 VirtuBox <[email protected]>
# This script is licensed under M.I.T
# -------------------------------------------------------------------------
# Version 3.6.1 - 2019-04-23
# Version 3.6.2 - 2019-04-24
# -------------------------------------------------------------------------

##################################
Expand Down Expand Up @@ -114,9 +114,9 @@ fi
##################################

DIR_SRC="/usr/local/src"
NGINX_EE_VER="3.6.1"
NGINX_EE_VER="3.6.2"
NGINX_MAINLINE="$(curl -sL https://nginx.org/en/download.html 2>&1 | grep -E -o 'nginx\-[0-9.]+\.tar[.a-z]*' | awk -F "nginx-" '/.tar.gz$/ {print $2}' | sed -e 's|.tar.gz||g' | head -n 1 2>&1)"
NGINX_STABLE="$(curl -sL https://nginx.org/en/download.html 2>&1 | grep -E -o 'nginx\-[0-9.]+\.tar[.a-z]*' | awk -F "nginx-" '/.tar.gz$/ {print $2}' | sed -e 's|.tar.gz||g' | head -n 2 | grep 1.14 2>&1)"
NGINX_STABLE="$(curl -sL https://nginx.org/en/download.html 2>&1 | grep -E -o 'nginx\-[0-9.]+\.tar[.a-z]*' | awk -F "nginx-" '/.tar.gz$/ {print $2}' | sed -e 's|.tar.gz||g' | head -n 2 | grep 1.16 2>&1)"
LIBRESSL_VER="2.9.1"
OPENSSL_VER="1.1.1b"
TLS13_CIPHERS="TLS13+AESGCM+AES256:TLS13+AESGCM+AES128:TLS13+CHACHA20:EECDH+CHACHA20:EECDH+AESGCM:EECDH+AES"
Expand Down Expand Up @@ -230,7 +230,7 @@ fi

if [ "$NGINX_RELEASE" = "2" ]; then
NGINX_VER="$NGINX_STABLE"
NGX_HPACK=""
NGX_HPACK="--with-http_v2_hpack_enc"
else
NGINX_VER="$NGINX_MAINLINE"
NGX_HPACK="--with-http_v2_hpack_enc"
Expand Down Expand Up @@ -279,12 +279,15 @@ else
if [ "$OPENSSL_LIB" = "2" ]; then
NGX_SSL_LIB="--with-openssl=../openssl"
OPENSSL_VALID="3.0.0-dev"
LIBSSL_DEV=""
elif [ "$OPENSSL_LIB" = "3" ]; then
NGX_SSL_LIB=""
OPENSSL_VALID="from system"
LIBSSL_DEV="libssl-dev"
else
NGX_SSL_LIB="--with-openssl=../openssl"
OPENSSL_VALID="1.1.1b Stable"
LIBSSL_DEV=""
fi
fi

Expand Down Expand Up @@ -363,11 +366,11 @@ _install_dependencies() {
echo -ne ' Installing dependencies [..]\r'
if ! {
DEBIAN_FRONTEND=noninteractive apt-get -o Dpkg::Options::="--force-confmiss" -o Dpkg::Options::="--force-confold" -y install \
git build-essential libtool automake autoconf zlib1g-dev \
libpcre3 libpcre3-dev libgd3 libgd-dev libssl-dev libxslt1.1 libxslt1-dev libgeoip-dev libjemalloc1 libjemalloc-dev \
libbz2-1.0 libreadline-dev libbz2-dev libbz2-ocaml libbz2-ocaml-dev software-properties-common tar zlibc zlib1g zlib1g-dbg \
libcurl4-openssl-dev libgoogle-perftools-dev perl libperl-dev libpam0g-dev libbsd-dev gnupg gnupg2 \
libgmp-dev autotools-dev checkinstall ccache libxml2 libxml2-dev
git build-essential libtool automake autoconf \
libgd3 libgd-dev libgeoip-dev libjemalloc1 libjemalloc-dev \
libbz2-1.0 libreadline-dev libbz2-dev libbz2-ocaml libbz2-ocaml-dev software-properties-common tar \
libgoogle-perftools-dev perl libperl-dev libpam0g-dev libbsd-dev gnupg gnupg2 \
libgmp-dev autotools-dev checkinstall ccache libxml2 libxml2-dev "$LIBSSL_DEV"
} >> /dev/null 2>&1; then
echo -e " Installing dependencies [${CRED}FAIL${CEND}]"
echo -e '\n Please look at /tmp/nginx-ee.log\n'
Expand Down Expand Up @@ -1008,7 +1011,10 @@ _patch_nginx() {

echo -ne ' Applying nginx patches [..]\r'
if [ "$NGINX_RELEASE" = "2" ]; then
curl -sL https://raw.githubusercontent.com/nginx-modules/ngx_http_tls_dyn_size/master/nginx__dynamic_tls_records_1.13.0%2B.patch | patch -p1 >> /tmp/nginx-ee.log 2>&1
{
curl -sL https://raw.githubusercontent.com/kn007/patch/master/nginx.patch | patch -p1
curl -sL https://raw.githubusercontent.com/kn007/patch/master/nginx_auto_using_PRIORITIZE_CHACHA.patch | patch -p1
} >> /tmp/nginx-ee.log 2>&1
else
{
echo "### nginx_hpack_push patch"
Expand Down

0 comments on commit cac9e4b

Please sign in to comment.