git: a2405c51ca2c - main - net/haproxy: enable QUIC support.

From: Dmitry Sivachenko <demon_at_FreeBSD.org>
Date: Fri, 29 Dec 2023 22:23:02 UTC
The branch main has been updated by demon:

URL: https://cgit.FreeBSD.org/ports/commit/?id=a2405c51ca2cf6f0e633f6b8cd4839e68ba1b865

commit a2405c51ca2cf6f0e633f6b8cd4839e68ba1b865
Author:     Dmitry Sivachenko <demon@FreeBSD.org>
AuthorDate: 2023-12-29 22:20:42 +0000
Commit:     Dmitry Sivachenko <demon@FreeBSD.org>
CommitDate: 2023-12-29 22:22:56 +0000

    net/haproxy: enable QUIC support.
    
    PR:     267388
    Submitted by:   Frank Wall <freebsd@moov.de>
---
 net/haproxy/Makefile | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/net/haproxy/Makefile b/net/haproxy/Makefile
index b67eac5bc4b7..3ed42706c23c 100644
--- a/net/haproxy/Makefile
+++ b/net/haproxy/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	haproxy
 DISTVERSION=	2.8.5
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	net www
 MASTER_SITES=	http://www.haproxy.org/download/2.8/src/
 
@@ -63,6 +63,14 @@ LUA_MAKE_ARGS=		USE_LUA=1 LUA_INC=${LUA_INCDIR} LUA_LIB=${LUA_LIBDIR} LUA_LIB_NA
 OPTIONS_DEFAULT+=	LUA
 .endif
 
+.include <bsd.port.pre.mk>
+
+.if ${SSL_DEFAULT:Mlibressl*} || ${SSL_DEFAULT:M*quictls}
+OPENSSL_MAKE_ARGS+=	USE_QUIC=1
+.else
+OPENSSL_MAKE_ARGS+=	USE_QUIC=1 USE_QUIC_OPENSSL_COMPAT=1
+.endif
+
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/haproxy ${STAGEDIR}${PREFIX}/sbin/
 	${INSTALL_PROGRAM} ${WRKSRC}/admin/halog/halog ${STAGEDIR}${PREFIX}/sbin/
@@ -72,4 +80,4 @@ do-install:
 	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
 	(cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} \* ${STAGEDIR}${EXAMPLESDIR})
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>