Skip to content

Commit

Permalink
net/haproxy: enable QUIC support.
Browse files Browse the repository at this point in the history
PR:	267388
Submitted by:	Frank Wall <freebsd@moov.de>
  • Loading branch information
Dmitry Sivachenko authored and Dmitry Sivachenko committed Dec 29, 2023
1 parent 1e3ee52 commit a2405c5
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions 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/

Expand Down Expand Up @@ -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/
Expand All @@ -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>

0 comments on commit a2405c5

Please sign in to comment.