From 5f3561bb70240f9a90e45a10d987933882c8a744 Mon Sep 17 00:00:00 2001 From: Datong Sun Date: Fri, 5 Nov 2021 01:45:37 -0700 Subject: [PATCH] fix(kong-ngx-build) use SourceForge mirror for PCRE downloads It appears that ftp.pcre.org is no longer online and the [official website for PCRE](http://pcre.org) now recommends downloading from the SourceForge mirror instead. --- openresty-build-tools/kong-ngx-build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openresty-build-tools/kong-ngx-build b/openresty-build-tools/kong-ngx-build index a5a115f8..96d11d1d 100755 --- a/openresty-build-tools/kong-ngx-build +++ b/openresty-build-tools/kong-ngx-build @@ -236,7 +236,7 @@ main() { PCRE_DOWNLOAD=$DOWNLOAD_CACHE/pcre-$PCRE_VER if [ ! -d $PCRE_DOWNLOAD ]; then warn "PCRE source not found, downloading..." - curl -sSLO https://ftp.pcre.org/pub/pcre/pcre-${PCRE_VER}.tar.gz + curl -sSLO https://downloads.sourceforge.net/project/pcre/pcre/${PCRE_VER}/pcre-${PCRE_VER}.tar.gz if [ ! -z ${PCRE_SHA+x} ]; then echo "$PCRE_SHA pcre-${PCRE_VER}.tar.gz" | sha256sum -c - fi