git: 629cac1468e5 - main - security/libressl-devel: Fix libtls flavor build

From: Bernard Spil <brnrd_at_FreeBSD.org>
Date: Sat, 25 Mar 2023 12:54:03 UTC
The branch main has been updated by brnrd:

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

commit 629cac1468e5d56064fdff0a0fefd643632c3042
Author:     Bernard Spil <brnrd@FreeBSD.org>
AuthorDate: 2023-03-25 12:54:01 +0000
Commit:     Bernard Spil <brnrd@FreeBSD.org>
CommitDate: 2023-03-25 12:54:01 +0000

    security/libressl-devel: Fix libtls flavor build
---
 security/libressl-devel/Makefile         |  7 +++++++
 security/libressl-devel/pkg-plist        | 12 ++++++------
 security/libressl-devel/pkg-plist-libtls |  4 ++--
 3 files changed, 15 insertions(+), 8 deletions(-)

diff --git a/security/libressl-devel/Makefile b/security/libressl-devel/Makefile
index 7928fd981a54..5dc64ce38627 100644
--- a/security/libressl-devel/Makefile
+++ b/security/libressl-devel/Makefile
@@ -49,6 +49,13 @@ LDFLAGS+=	-pthread
 INSTALL_TARGET=	install-strip
 TEST_TARGET=	check
 
+PLIST_SUB+=	LIBCRYPTO_SHLIBMAJ=50 \
+		LIBCRYPTO_SHLIBFULL=50.0.2 \
+		LIBSSL_SHLIBMAJ=53 \
+		LIBSSL_SHLIBFULL=53.0.2 \
+		LIBTLS_SHLIBMAJ=26 \
+		LIBTLS_SHLIBFULL=26.0.2
+
 post-patch-MAN3-off:
 	${REINPLACE_CMD} -e '/^install-man:/s/install-man3//' \
 		-e '/$$(MAKE) $$(AM_MAKEFLAGS) install-data-hook/d' \
diff --git a/security/libressl-devel/pkg-plist b/security/libressl-devel/pkg-plist
index 5103949411ff..2715748487d7 100644
--- a/security/libressl-devel/pkg-plist
+++ b/security/libressl-devel/pkg-plist
@@ -80,16 +80,16 @@ include/openssl/x509v3.h
 include/tls.h
 lib/libcrypto.a
 lib/libcrypto.so
-lib/libcrypto.so.50
-lib/libcrypto.so.50.0.2
+lib/libcrypto.so.%%LIBCRYPTO_SHLIBMAJ%%
+lib/libcrypto.so.%%LIBCRYPTO_SHLIBFULL%%
 lib/libssl.a
 lib/libssl.so
-lib/libssl.so.53
-lib/libssl.so.53.0.2
+lib/libssl.so.%%LIBSSL_SHLIBMAJ%%
+lib/libssl.so.%%LIBSSL_SHLIBFULL%%
 lib/libtls.a
 lib/libtls.so
-lib/libtls.so.26
-lib/libtls.so.26.0.2
+lib/libtls.so.%%LIBTLS_SHLIBMAJ%%
+lib/libtls.so.%%LIBTLS_SHLIBFULL%%
 libdata/pkgconfig/libcrypto.pc
 libdata/pkgconfig/libssl.pc
 libdata/pkgconfig/libtls.pc
diff --git a/security/libressl-devel/pkg-plist-libtls b/security/libressl-devel/pkg-plist-libtls
index bea9fec82850..d74aa579bb00 100644
--- a/security/libressl-devel/pkg-plist-libtls
+++ b/security/libressl-devel/pkg-plist-libtls
@@ -4,8 +4,8 @@ etc/ssl/x509v3.cnf
 include/tls.h
 lib/libtls.a
 lib/libtls.so
-lib/libtls.so.26
-lib/libtls.so.26.0.0
+lib/libtls.so.%%LIBTLS_SHLIBMAJ%%
+lib/libtls.so.%%LIBTLS_SHLIBFULL%%
 libdata/pkgconfig/libtls.pc
 %%NC%%man/man1/nc.1.gz
 @dir etc/ssl/certs