git: 0f0d78cc8f31 - main - net/libpfctl: Fix makesum to deal with multiple OS release versions

From: Kristof Provost <kp_at_FreeBSD.org>
Date: Sun, 09 Mar 2025 11:59:52 UTC
The branch main has been updated by kp:

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

commit 0f0d78cc8f311ed02883805e61a6b3e08f62c5d2
Author:     Craig Leres <leres@freebsd.org>
AuthorDate: 2025-03-09 10:40:13 +0000
Commit:     Kristof Provost <kp@FreeBSD.org>
CommitDate: 2025-03-09 10:41:30 +0000

    net/libpfctl: Fix makesum to deal with multiple OS release versions
    
    Allow makesum to generate entries for all supported versions.
    patch adapted from lang/python-doc-html.
    
    PR:             285264
---
 net/libpfctl/Makefile | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/net/libpfctl/Makefile b/net/libpfctl/Makefile
index b8d4e7288db1..67098f2989f0 100644
--- a/net/libpfctl/Makefile
+++ b/net/libpfctl/Makefile
@@ -36,9 +36,17 @@ do-install:
 	${LN} -s libpfctl.so.0 ${STAGEDIR}${PREFIX}/lib/libpfctl.so
 	${INSTALL_DATA} ${WRKSRC}/*.h ${STAGEDIR}${PREFIX}/include
 
+_ALL_VERSIONS=	13.3 13.4 14.0 14.1 14.2
+.if make(makesum)
+DISTFILES=
+.for version in ${_ALL_VERSIONS}
+DISTFILES+=	libpfctl-${version}_${_LIBPFCTL_REV}.tar.gz
+.endfor
+.endif
+
 .if defined(MAINTAINER_MODE)
 upload:
-	for version in 13.3 13.4 14.0 14.1 14.2; \
+	for version in ${_ALL_VERSIONS}; \
 	do \
 		cd /usr/src/lib && \
 		git archive --format=tar.gz \