diff options
Diffstat (limited to 'network/haproxy/haproxy.SlackBuild')
-rw-r--r-- | network/haproxy/haproxy.SlackBuild | 29 |
1 files changed, 19 insertions, 10 deletions
diff --git a/network/haproxy/haproxy.SlackBuild b/network/haproxy/haproxy.SlackBuild index cdfb235a07..255230798e 100644 --- a/network/haproxy/haproxy.SlackBuild +++ b/network/haproxy/haproxy.SlackBuild @@ -29,7 +29,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=haproxy VERSION=${VERSION:-2.6.2} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -71,12 +71,14 @@ fi # use 'generic' instead TARGET=${TARGET:-linux-glibc} -# Include lua support? (Requires lua53) +# Include lua support? (Requires lua) LUA=${LUA:-no} -# Perl Compatible Regular Expressions version 2 -# is enabled by default. You can't compile both -# PCRE and PCRE2 support. -OLDPCRE=${OLDPCRE:-no} +# Perl Compatible Regular Expressions version 2 is enabled by default. +# You might want to use libpcre1 and/or JIT-enabled version instead. +PCRE=${PCRE:-PCRE2} +# Include QUIC (HTTP/3) support? (experimental). +# This requires QUICTLS. +QUIC=${QUIC:-no} set -e @@ -101,16 +103,23 @@ else fi PCREOPT="" -if [ "$OLDPCRE" == "yes" ]; then - PCREOPT="USE_PCRE=1" +if [ "$PCRE" != "PCRE2" ]; then + PCREOPT=$(echo $PCRE | sed -e 's/USE_//' -e 's/=1//') else - PCREOPT="USE_PCRE2=1" + PCREOPT="PCRE2" fi +QUICOPT="" +if [ "$QUIC" == "yes" ]; then + LUAOPT="USE_QUIC=1" +else + LUAOPT="USE_QUIC=" +fi make \ TARGET=$TARGET \ - $PCREOPT \ + USE_$PCREOPT=1 \ + $QUICOPT \ USE_OPENSSL=1 \ USE_ENGINE=1 \ USE_ZLIB=1 \ |