git: ba5974666efc - main - www/pound: update the port to the latest version 4.21

From: Alexey Dokuchaev <danfe_at_FreeBSD.org>
Date: Tue, 17 Mar 2026 06:33:58 UTC
The branch main has been updated by danfe:

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

commit ba5974666efcb3fcea76546d3c46542270e5ea99
Author:     Alexey Dokuchaev <danfe@FreeBSD.org>
AuthorDate: 2026-03-17 06:32:46 +0000
Commit:     Alexey Dokuchaev <danfe@FreeBSD.org>
CommitDate: 2026-03-17 06:32:46 +0000

    www/pound: update the port to the latest version 4.21
    
    - Drop DSAPARAM option, the code it used to patch is gone
    - Add optional Lua support (requires version 5.3.5 or 5.4)
    
    Requested by:   maintainer
---
 www/pound/Makefile | 13 ++++++-------
 www/pound/distinfo |  6 +++---
 2 files changed, 9 insertions(+), 10 deletions(-)

diff --git a/www/pound/Makefile b/www/pound/Makefile
index 006670a69423..1dab119c13f9 100644
--- a/www/pound/Makefile
+++ b/www/pound/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	pound
-PORTVERSION=	4.18
+PORTVERSION=	4.21
 CATEGORIES=	www net
 MASTER_SITES=	https://github.com/graygnuorg/pound/releases/download/v${PORTVERSION}/
 
@@ -26,18 +26,17 @@ SUB_LIST=	NAME=${PORTNAME}
 INFO=		${PORTNAME}
 PORTDOCS=	AUTHORS ChangeLog ChangeLog.apsis NEWS README THANKS
 
-OPTIONS_DEFINE=	DOCS DSAPARAM PCRE
+OPTIONS_DEFINE=	DOCS LUA PCRE
 OPTIONS_DEFAULT=PCRE
 
-DSAPARAM_DESC=	Generate DH parameters without using "safe" primes
+LUA_USES=		lua # supported versions: 5.3.5 or 5.4
+LUA_CONFIGURE_ENV=	LUA_CFLAGS="-I${LUA_INCDIR}" \
+			LUA_LIBS="-L${LUA_LIBDIR} -llua-${LUA_VER} -lm"
+LUA_CONFIGURE_OFF=	--disable-lua
 
 PCRE_LIB_DEPENDS=	libpcre2-8.so:devel/pcre2
 PCRE_CONFIGURE_OFF=	--disable-pcre
 
-post-patch-DSAPARAM-on:
-	@${REINPLACE_CMD} -e '/openssl dhparam/s,-5,-dsaparam,' \
-		${WRKSRC}/src/Makefile.in
-
 post-install:
 	${INSTALL_DATA} ${WRKDIR}/${PORTNAME}.cfg \
 		${STAGEDIR}${PREFIX}/etc/${PORTNAME}.cfg.sample
diff --git a/www/pound/distinfo b/www/pound/distinfo
index f9a75fea6661..52b52eb24edd 100644
--- a/www/pound/distinfo
+++ b/www/pound/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1761741942
-SHA256 (pound-4.18.tar.gz) = 688e2544a521104014be557646f747c915fcb3af28af4dae414b7a0eea7cc369
-SIZE (pound-4.18.tar.gz) = 1062958
+TIMESTAMP = 1773484053
+SHA256 (pound-4.21.tar.gz) = 616c2e465595f328722874ebaceb757b0df24830e69039bff27f843fb5bf8064
+SIZE (pound-4.21.tar.gz) = 1139289