1
0
mirror of https://github.com/dokku/buildpack-nginx.git synced 2024-12-26 05:55:24 +00:00

Merge pull request #63 from dokku/upgrade-pcre

Upgrade pcre to pcre2
This commit is contained in:
Jose Diaz-Gonzalez 2022-09-10 21:09:31 -04:00 committed by GitHub
commit aa191df661
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,8 +5,8 @@ set -eo pipefail
NGINX_VERSION="1.23.1" NGINX_VERSION="1.23.1"
NGINX_TARBALL="nginx-${NGINX_VERSION}.tar.gz" NGINX_TARBALL="nginx-${NGINX_VERSION}.tar.gz"
PCRE_VERSION="8.45" PCRE_VERSION="10.40"
PCRE_TARBALL="pcre-${PCRE_VERSION}.tar.gz" PCRE_TARBALL="pcre2-${PCRE_VERSION}.tar.gz"
SIGIL_VERSION="0.9.0" SIGIL_VERSION="0.9.0"
SIGIL_TARBALL="gliderlabs-sigil_${SIGIL_VERSION}_linux_amd64.tgz" SIGIL_TARBALL="gliderlabs-sigil_${SIGIL_VERSION}_linux_amd64.tgz"
ZLIB_VERSION="1.2.12" ZLIB_VERSION="1.2.12"
@ -57,7 +57,7 @@ fi
if [[ ! -d "${PCRE_TARBALL%.tar.gz}" ]]; then if [[ ! -d "${PCRE_TARBALL%.tar.gz}" ]]; then
echo "-----> Download and unzip pcre ${PCRE_VERSION} via http" echo "-----> Download and unzip pcre ${PCRE_VERSION} via http"
curl -sSL "https://downloads.sourceforge.net/project/pcre/pcre/${PCRE_VERSION}/${PCRE_TARBALL}" -o "${PCRE_TARBALL}" curl -sSL "https://github.com/PCRE2Project/pcre2/releases/download/pcre2-${PCRE_VERSION}/${PCRE_TARBALL}" -o "${PCRE_TARBALL}"
tar xzf "${PCRE_TARBALL}" && rm -f "${PCRE_TARBALL}" tar xzf "${PCRE_TARBALL}" && rm -f "${PCRE_TARBALL}"
fi fi
@ -83,7 +83,7 @@ if [[ ! -f "${CACHE_DIR}/bin/nginx" ]]; then
suppress ./configure \ suppress ./configure \
--with-cpu-opt=generic \ --with-cpu-opt=generic \
--prefix="$BUILD_DIR/nginx" \ --prefix="$BUILD_DIR/nginx" \
--with-pcre=../pcre-${PCRE_VERSION} \ --with-pcre=../pcre2-${PCRE_VERSION} \
--sbin-path=. \ --sbin-path=. \
--pid-path=./nginx.pid \ --pid-path=./nginx.pid \
--conf-path=./nginx.conf \ --conf-path=./nginx.conf \