git: 40dd71f82843 - main - security/rubygem-openssl2: Mark IGNORE_SSL

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Sat, 22 Jul 2023 06:11:29 UTC
The branch main has been updated by bofh:

URL: https://cgit.FreeBSD.org/ports/commit/?id=40dd71f82843dadc72d14860913989d10ba94d31

commit 40dd71f82843dadc72d14860913989d10ba94d31
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-07-21 22:00:57 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-07-22 06:11:20 +0000

    security/rubygem-openssl2: Mark IGNORE_SSL
    
    This specific version do not have upstream support for OpenSSL 3 and
    later. So Mark this version with IGNORE_SSL. In case OpenSSL 3 and later
    support is required use security/rubygem-openssl.
    
    Approved by:    portmgr (blanket)
    Sponsored by:   The FreeBSD Foundation
---
 security/rubygem-openssl2/Makefile | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/security/rubygem-openssl2/Makefile b/security/rubygem-openssl2/Makefile
index 1f6bd2cbad71..bec193948740 100644
--- a/security/rubygem-openssl2/Makefile
+++ b/security/rubygem-openssl2/Makefile
@@ -13,9 +13,6 @@ LICENSE_COMB=	dual
 LICENSE_FILE_BSD2CLAUSE=${WRKSRC}/BSDL
 LICENSE_FILE_RUBY=	${WRKSRC}/LICENSE.txt
 
-BROKEN_SSL=	openssl30 openssl31
-BROKEN_SSL_REASON=	Requires OpenSSL >= 1.0.1, < 3.0.0
-
 RUN_DEPENDS=	rubygem-ipaddr>=0:net/rubygem-ipaddr
 
 USES=		cpe gem ssl
@@ -24,4 +21,11 @@ CPE_VENDOR=	ruby-lang
 
 PORTSCOUT=	limit:^2\.
 
+.include <bsd.port.options.mk>
+
+.if ( ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400092 && ${SSL_DEFAULT} == base ) || ${SSL_DEFAULT:Mopenssl3*}
+IGNORE_SSL=	base openssl30 openssl31
+IGNORE_SSL_REASON=	Missing upstream support for OpenSSL 3.0.0 and later in this version
+.endif
+
 .include <bsd.port.mk>