aboutsummaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorEugene Grosbein <eugen@FreeBSD.org>2023-06-10 11:37:53 +0000
committerEugene Grosbein <eugen@FreeBSD.org>2023-06-10 11:42:37 +0000
commit51e672e854a7a2288007c387c499ee46186c1160 (patch)
tree80f075e7aa87ccfc7312a978f422acfb2f28f33a /security
parentd3a0030f8b35eaba3ad10e24f3340e270f727f21 (diff)
downloadports-51e672e854a7a2288007c387c499ee46186c1160.tar.gz
ports-51e672e854a7a2288007c387c499ee46186c1160.zip
security/gost-engine: be ready for OpenSSL 3.0 in base system
This is temporary hack until __FreeBSD_version updated. PORTREVISION not bumped intentionally.
Diffstat (limited to 'security')
-rw-r--r--security/gost-engine/Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/security/gost-engine/Makefile b/security/gost-engine/Makefile
index 22881074bb70..4bbc16383612 100644
--- a/security/gost-engine/Makefile
+++ b/security/gost-engine/Makefile
@@ -25,15 +25,20 @@ USE_GITHUB= yes
GH_ACCOUNT= gost-engine
GH_PROJECT= engine
-.if ${FLAVOR:U} == openssl30
+BASE_OPENSSL_VSTR!= /usr/bin/openssl version
+BASE_OPENSSL_VER=${BASE_OPENSSL_VSTR:C/^OpenSSL //W:C/\..*//gW}
+
+.if ${FLAVOR:U} == openssl30 || ${BASE_OPENSSL_VER:U} == 3
GH_TAGNAME= 2b22503
GH_TUPLE+= provider-corner:libprov:e9f3e6a:libprov
GH_SUBDIR= libprov:libprov
DISTVERSION= g20230106
-BROKEN_SSL+= base # openssl31
EDIR?= lib/engines-12
EDIRV?= @comment unused
-DISTINFO_FILE= ${.CURDIR}/distinfo.${FLAVOR}
+DISTINFO_FILE= ${.CURDIR}/distinfo.openssl30
+.if ${BASE_OPENSSL_VER:U} != 3
+BROKEN_SSL+= base # openssl31
+.endif
.else
GH_TAGNAME= 739f957
DISTVERSION= g20220520