File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -28,8 +28,10 @@ if [[ "${GIT_USER_EMAIL}" = "" ]]; then
2828fi
2929
3030# dep versions
31- ZLIB=" zlib-1.2.11"
32- PCRE=" pcre-8.42"
31+ ZLIB=" $( curl -s ' https://zlib.net/' | grep -ioP ' zlib-(\d+\.)+\d+' | sort -ruV | head -1) "
32+ ZLIB=" ${ZLIB:- zlib-1.2.11} "
33+ PCRE=" $( curl -s ' https://ftp.pcre.org/pub/pcre/' | grep -ioP ' pcre-(\d+\.)+\d+' | sort -ruV | head -1) "
34+ PCRE=" ${PCRE:- pcre-8.42} "
3335OPENSSL=" openssl-1.1.1"
3436
3537# clone and patch nginx
@@ -54,8 +56,8 @@ git checkout -b patch
5456git am -3 ../nginx-* .patch
5557
5658# download deps
57- wget -c -nv " https://download.sourceforge. net/libpng/ ${ZLIB} .tar.gz "
58- tar -xf " ${ZLIB} .tar.gz "
59+ wget -c -nv " https://zlib. net/${ZLIB} .tar.xz "
60+ tar -xf " ${ZLIB} .tar.xz "
5961wget -c -nv " https://ftp.pcre.org/pub/pcre/${PCRE} .tar.bz2"
6062tar -xf " ${PCRE} .tar.bz2"
6163wget -c -nv " https://www.openssl.org/source/${OPENSSL} .tar.gz"
You can’t perform that action at this time.
0 commit comments