summaryrefslogtreecommitdiffstats
path: root/network/haproxy/haproxy.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/haproxy/haproxy.SlackBuild')
-rw-r--r--network/haproxy/haproxy.SlackBuild32
1 files changed, 21 insertions, 11 deletions
diff --git a/network/haproxy/haproxy.SlackBuild b/network/haproxy/haproxy.SlackBuild
index 84d8db2e21..6347d65637 100644
--- a/network/haproxy/haproxy.SlackBuild
+++ b/network/haproxy/haproxy.SlackBuild
@@ -5,7 +5,7 @@
# Copyright 2018 T3slider <t3slider@gmail.com>
# All rights reserved.
#
-# Copyright 2022 Badchay <badchay@protonmail.com>
+# Copyright 2024 Badchay <badchay@protonmail.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -28,7 +28,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=haproxy
-VERSION=${VERSION:-2.6.1}
+VERSION=${VERSION:-2.8.9}
BUILD=${BUILD:-1}
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?
+# This requires QUICTLS or wolfSSL.
+QUIC=${QUIC:-no}
set -e
@@ -101,20 +103,28 @@ 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 \
USE_NS=1 \
+ USE_PROMEX=1 \
USE_SYSTEMD= \
$LUAOPT \
EXTRA=""