git: 3e909375ffcb - main - net-mgmt/p5-Nagios-Plugin_check_raid: New port

From: Dan Langille <dvl_at_FreeBSD.org>
Date: Fri, 13 Jan 2023 20:28:21 UTC
The branch main has been updated by dvl:

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

commit 3e909375ffcbc864d123c6cf9fcbc316452fdcac
Author:     Dan Langille <dvl@FreeBSD.org>
AuthorDate: 2023-01-13 20:26:55 +0000
Commit:     Dan Langille <dvl@FreeBSD.org>
CommitDate: 2023-01-13 20:28:19 +0000

    net-mgmt/p5-Nagios-Plugin_check_raid: New port
    
    Nagios/Icinga/Sensu plugin to check current server's RAID status
---
 net-mgmt/Makefile                              |  1 +
 net-mgmt/p5-Nagios-Plugin_check_raid/Makefile  | 19 ++++++++++++++
 net-mgmt/p5-Nagios-Plugin_check_raid/distinfo  |  3 +++
 net-mgmt/p5-Nagios-Plugin_check_raid/pkg-descr | 17 +++++++++++++
 net-mgmt/p5-Nagios-Plugin_check_raid/pkg-plist | 35 ++++++++++++++++++++++++++
 5 files changed, 75 insertions(+)

diff --git a/net-mgmt/Makefile b/net-mgmt/Makefile
index f1afa268f780..cc6acffabde0 100644
--- a/net-mgmt/Makefile
+++ b/net-mgmt/Makefile
@@ -239,6 +239,7 @@
     SUBDIR += p5-Nagios-Plugin-Beanstalk
     SUBDIR += p5-Nagios-Plugin-LDAP
     SUBDIR += p5-Nagios-Plugins-Memcached
+    SUBDIR += p5-Nagios-Plugin_check_raid
     SUBDIR += p5-Net-ACL
     SUBDIR += p5-Net-Abuse-Utils
     SUBDIR += p5-Net-Abuse-Utils-Spamhaus
diff --git a/net-mgmt/p5-Nagios-Plugin_check_raid/Makefile b/net-mgmt/p5-Nagios-Plugin_check_raid/Makefile
new file mode 100644
index 000000000000..dd4eef7367d3
--- /dev/null
+++ b/net-mgmt/p5-Nagios-Plugin_check_raid/Makefile
@@ -0,0 +1,19 @@
+PORTNAME=	nagios-plugin-check_raid
+PORTVERSION=	4.0.10
+CATEGORIES=	net-mgmt
+PKGNAMEPREFIX=	p5-
+
+MAINTAINER=	dvl@FreeBSD.org
+COMMENT=	Nagios/Icinga/Sensu plugin to check RAID status
+WWW=		https://github.com/glensc/nagios-plugin-check_raid
+
+BUILD_DEPENDS=	p5-ExtUtils-MakeMaker-CPANfile>0:devel/p5-ExtUtils-MakeMaker-CPANfile
+
+USES=		perl5
+USE_PERL5=	configure
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	glensc
+GH_PROJECT=	${PORTNAME}
+
+.include <bsd.port.mk>
diff --git a/net-mgmt/p5-Nagios-Plugin_check_raid/distinfo b/net-mgmt/p5-Nagios-Plugin_check_raid/distinfo
new file mode 100644
index 000000000000..2a9a42a19294
--- /dev/null
+++ b/net-mgmt/p5-Nagios-Plugin_check_raid/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1673380504
+SHA256 (glensc-nagios-plugin-check_raid-4.0.10_GH0.tar.gz) = f35cc1294d0a4286b2a012e8f986d4a8d0ca1c0467466f5c45350cb4dab439ba
+SIZE (glensc-nagios-plugin-check_raid-4.0.10_GH0.tar.gz) = 54895
diff --git a/net-mgmt/p5-Nagios-Plugin_check_raid/pkg-descr b/net-mgmt/p5-Nagios-Plugin_check_raid/pkg-descr
new file mode 100644
index 000000000000..eac3051c2b0b
--- /dev/null
+++ b/net-mgmt/p5-Nagios-Plugin_check_raid/pkg-descr
@@ -0,0 +1,17 @@
+Nagios/Icinga/Sensu plugin to check current server's RAID status
+
+This plugin checks all RAID volumes (hardware and software) that can be
+identified.
+
+While written originally for Nagios, it's known to work also with:
+
+* Icinga
+* Sensu
+
+This is supposed to be a general plugin to run via NRPE. It checks for the
+various RAID systems, and verifies they are working correctly.
+
+Some checks require root permission, that is acomplished using sudo.
+Neccessary sudo rules (detected for your system), can be installed when
+check_raid is invoked with -S argument. You need to be root user and it will add
+required lines to the sudo config file. Run with -d to preview the sudo rules
diff --git a/net-mgmt/p5-Nagios-Plugin_check_raid/pkg-plist b/net-mgmt/p5-Nagios-Plugin_check_raid/pkg-plist
new file mode 100644
index 000000000000..f0ab1fa2f2fa
--- /dev/null
+++ b/net-mgmt/p5-Nagios-Plugin_check_raid/pkg-plist
@@ -0,0 +1,35 @@
+bin/check_raid.pl
+%%SITE_PERL%%/App/Monitoring/Plugin/CheckRaid.pm
+%%SITE_PERL%%/App/Monitoring/Plugin/CheckRaid/Plugin.pm
+%%SITE_PERL%%/App/Monitoring/Plugin/CheckRaid/Plugins/aaccli.pm
+%%SITE_PERL%%/App/Monitoring/Plugin/CheckRaid/Plugins/afacli.pm
+%%SITE_PERL%%/App/Monitoring/Plugin/CheckRaid/Plugins/arcconf.pm
+%%SITE_PERL%%/App/Monitoring/Plugin/CheckRaid/Plugins/areca.pm
+%%SITE_PERL%%/App/Monitoring/Plugin/CheckRaid/Plugins/cciss.pm
+%%SITE_PERL%%/App/Monitoring/Plugin/CheckRaid/Plugins/cmdtool2.pm
+%%SITE_PERL%%/App/Monitoring/Plugin/CheckRaid/Plugins/dm.pm
+%%SITE_PERL%%/App/Monitoring/Plugin/CheckRaid/Plugins/dmraid.pm
+%%SITE_PERL%%/App/Monitoring/Plugin/CheckRaid/Plugins/dpt_i2o.pm
+%%SITE_PERL%%/App/Monitoring/Plugin/CheckRaid/Plugins/gdth.pm
+%%SITE_PERL%%/App/Monitoring/Plugin/CheckRaid/Plugins/hp_msa.pm
+%%SITE_PERL%%/App/Monitoring/Plugin/CheckRaid/Plugins/hpacucli.pm
+%%SITE_PERL%%/App/Monitoring/Plugin/CheckRaid/Plugins/hpssacli.pm
+%%SITE_PERL%%/App/Monitoring/Plugin/CheckRaid/Plugins/ips.pm
+%%SITE_PERL%%/App/Monitoring/Plugin/CheckRaid/Plugins/lsraid.pm
+%%SITE_PERL%%/App/Monitoring/Plugin/CheckRaid/Plugins/lsscsi.pm
+%%SITE_PERL%%/App/Monitoring/Plugin/CheckRaid/Plugins/lsvg.pm
+%%SITE_PERL%%/App/Monitoring/Plugin/CheckRaid/Plugins/mdstat.pm
+%%SITE_PERL%%/App/Monitoring/Plugin/CheckRaid/Plugins/megacli.pm
+%%SITE_PERL%%/App/Monitoring/Plugin/CheckRaid/Plugins/megaide.pm
+%%SITE_PERL%%/App/Monitoring/Plugin/CheckRaid/Plugins/megaraid.pm
+%%SITE_PERL%%/App/Monitoring/Plugin/CheckRaid/Plugins/megarc.pm
+%%SITE_PERL%%/App/Monitoring/Plugin/CheckRaid/Plugins/metastat.pm
+%%SITE_PERL%%/App/Monitoring/Plugin/CheckRaid/Plugins/mpt.pm
+%%SITE_PERL%%/App/Monitoring/Plugin/CheckRaid/Plugins/mvcli.pm
+%%SITE_PERL%%/App/Monitoring/Plugin/CheckRaid/Plugins/sas2ircu.pm
+%%SITE_PERL%%/App/Monitoring/Plugin/CheckRaid/Plugins/smartctl.pm
+%%SITE_PERL%%/App/Monitoring/Plugin/CheckRaid/Plugins/ssacli.pm
+%%SITE_PERL%%/App/Monitoring/Plugin/CheckRaid/Plugins/tw_cli.pm
+%%SITE_PERL%%/App/Monitoring/Plugin/CheckRaid/SerialLine.pm
+%%SITE_PERL%%/App/Monitoring/Plugin/CheckRaid/Sudoers.pm
+%%SITE_PERL%%/App/Monitoring/Plugin/CheckRaid/Utils.pm