git: 1b441d1eff59 - main - security/p5-IO-Socket-SSL: allow www/p5-Mozilla-CA to be optional

From: Dan Langille <dvl_at_FreeBSD.org>
Date: Thu, 25 Apr 2024 14:25:04 UTC
The branch main has been updated by dvl:

URL: https://cgit.FreeBSD.org/ports/commit/?id=1b441d1eff59ee3d47c789bcc1b1299992308446

commit 1b441d1eff59ee3d47c789bcc1b1299992308446
Author:     Dan Langille <dvl@FreeBSD.org>
AuthorDate: 2024-04-25 14:19:24 +0000
Commit:     Dan Langille <dvl@FreeBSD.org>
CommitDate: 2024-04-25 14:24:49 +0000

    security/p5-IO-Socket-SSL: allow www/p5-Mozilla-CA to be optional
    
    This new option is enabled by default, thus perserving existing
    behavior. There are circumstances when we don't want www/p5-Mozilla-CA
    to be installed. This patch permits that.
    
    PR:             278567
---
 security/p5-IO-Socket-SSL/Makefile | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/security/p5-IO-Socket-SSL/Makefile b/security/p5-IO-Socket-SSL/Makefile
index ece8e54719a7..270ecebc28e7 100644
--- a/security/p5-IO-Socket-SSL/Makefile
+++ b/security/p5-IO-Socket-SSL/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	IO-Socket-SSL
 DISTVERSION=	2.085
+PORTREVISION=	1
 CATEGORIES=	security perl5
 MASTER_SITES=	CPAN
 PKGNAMEPREFIX=	p5-
@@ -13,8 +14,7 @@ LICENSE_COMB=	dual
 LICENSE_FILE=	${WRKSRC}/lib/IO/Socket/SSL.pod
 
 BUILD_DEPENDS=	${RUN_DEPENDS}
-RUN_DEPENDS=	p5-Mozilla-CA>=20130114:www/p5-Mozilla-CA \
-		p5-Net-SSLeay>=1.59:security/p5-Net-SSLeay
+RUN_DEPENDS=	p5-Net-SSLeay>=1.59:security/p5-Net-SSLeay
 
 USES=		perl5 shebangfix
 USE_PERL5=	configure
@@ -28,7 +28,11 @@ NO_ARCH=	yes
 
 PORTEXAMPLES=	*
 
-OPTIONS_DEFINE=		EXAMPLES IDN IPV6
+OPTIONS_DEFINE=		CERTS EXAMPLES IDN IPV6
+OPTIONS_DEFAULT=	CERTS
+CERTS_DESC=		Install the Mozilla CA cert bundle
+CERTS_BUILD_DEPENDS=	p5-Mozilla-CA>=20130114:www/p5-Mozilla-CA
+CERTS_RUN_DEPENDS=	p5-Mozilla-CA>=20130114:www/p5-Mozilla-CA
 IDN_BUILD_DEPENDS=	p5-URI>=1.50:net/p5-URI
 IDN_RUN_DEPENDS=	${IDN_BUILD_DEPENDS}
 IPV6_RUN_DEPENDS=	p5-IO-Socket-IP>0:net/p5-IO-Socket-IP