aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Spil <brnrd@FreeBSD.org>2023-03-25 12:54:01 +0000
committerBernard Spil <brnrd@FreeBSD.org>2023-03-25 12:54:01 +0000
commit629cac1468e5d56064fdff0a0fefd643632c3042 (patch)
tree3328e4da78287eb5f5d403aac52717b1a94fcbe9
parent7a796901eda966fbb01311816fde074976761861 (diff)
downloadports-629cac1468e5d56064fdff0a0fefd643632c3042.tar.gz
ports-629cac1468e5d56064fdff0a0fefd643632c3042.zip
security/libressl-devel: Fix libtls flavor build
-rw-r--r--security/libressl-devel/Makefile7
-rw-r--r--security/libressl-devel/pkg-plist12
-rw-r--r--security/libressl-devel/pkg-plist-libtls4
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