git: ced29daafbf8 - main - net-mgmt/nagios-plugins: Fix check_smtp certificate

From: Danilo G. Baio <dbaio_at_FreeBSD.org>
Date: Fri, 19 Aug 2022 01:27:19 UTC
The branch main has been updated by dbaio:

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

commit ced29daafbf87319adab2ebc14e46543399558ea
Author:     Alan Hicks <ahicks@p-o.co.uk>
AuthorDate: 2022-08-19 01:20:57 +0000
Commit:     Danilo G. Baio <dbaio@FreeBSD.org>
CommitDate: 2022-08-19 01:25:37 +0000

    net-mgmt/nagios-plugins: Fix check_smtp certificate
    
    https://github.com/nagios-plugins/nagios-plugins/pull/649
    
    PR:             263192
    Approved by:    maintainer timeout
    MFH:            2022Q3
---
 net-mgmt/nagios-plugins/Makefile                          |  1 +
 net-mgmt/nagios-plugins/files/patch-plugins_check__smtp.c | 10 ++++++++++
 2 files changed, 11 insertions(+)

diff --git a/net-mgmt/nagios-plugins/Makefile b/net-mgmt/nagios-plugins/Makefile
index 0a33fc14863b..c738cfd78810 100644
--- a/net-mgmt/nagios-plugins/Makefile
+++ b/net-mgmt/nagios-plugins/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	nagios-plugins
 DISTVERSION=	2.4.0
+PORTREVISION=	1
 PORTEPOCH=	1
 CATEGORIES=	net-mgmt
 MASTER_SITES=	https://github.com/${PORTNAME}/${PORTNAME}/releases/download/release-${DISTVERSION}/ \
diff --git a/net-mgmt/nagios-plugins/files/patch-plugins_check__smtp.c b/net-mgmt/nagios-plugins/files/patch-plugins_check__smtp.c
new file mode 100644
index 000000000000..975d8d450958
--- /dev/null
+++ b/net-mgmt/nagios-plugins/files/patch-plugins_check__smtp.c
@@ -0,0 +1,10 @@
+--- plugins/check_smtp.c.orig	2021-10-29 19:30:39 UTC
++++ plugins/check_smtp.c
+@@ -648,6 +648,7 @@ process_arguments (int argc, char **argv)
+ #else
+ 			usage (_("SSL support not available - install OpenSSL and recompile"));
+ #endif
++			break;
+ 		case 's':
+ 		/* ssl */
+ 			use_ssl = TRUE;