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
This commit is contained in:
Craig Leres 2025-03-09 11:40:13 +01:00 committed by Kristof Provost
parent 0f5bc8d19a
commit 0f0d78cc8f

View file

@ -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 \