diff options
author | Badchay <badchay@protonmail.com> | 2022-07-29 22:52:40 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-07-29 22:52:40 +0700 |
commit | b841b3c68e26c2c82c1f6af77e58be7b9bcadcd7 (patch) | |
tree | fa059cc093aa513b725f8784392e159e2807ee3c /network/haproxy/haproxy.SlackBuild | |
parent | 103e41bdab451922c816e1b97eaf2e240725b910 (diff) |
network/haproxy: Added PCRE2 JIT and QUIC support.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
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 cdfb235a07e8..255230798e7c 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 \ |