git: 864ebacac35c - main - sysutils/p5-Device-RAID-Poller: Add new port

From: Yasuhiro Kimura <yasu_at_FreeBSD.org>
Date: Sat, 06 Nov 2021 04:42:52 UTC
The branch main has been updated by yasu:

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

commit 864ebacac35c379f0cc3e15faadf0b63b5f93397
Author:     Zane C. Bowers-Hadley <vvelox@vvelox.net>
AuthorDate: 2021-11-06 04:29:44 +0000
Commit:     Yasuhiro Kimura <yasu@FreeBSD.org>
CommitDate: 2021-11-06 04:42:03 +0000

    sysutils/p5-Device-RAID-Poller: Add new port
    
    The included check_raid provides LibreNMS JSON app or Nagios style
    check output.
    
    The RAID checking is supported for the following.
    
    - Adaptec arcconf
    - Avago tw_cli
    - GEOM
    -- mirror
    -- graid3
    -- graid
    - ZFS
    
    PR:             259188
---
 sysutils/Makefile                        |  1 +
 sysutils/p5-Device-RAID-Poller/Makefile  | 21 +++++++++++++++++++++
 sysutils/p5-Device-RAID-Poller/distinfo  |  3 +++
 sysutils/p5-Device-RAID-Poller/pkg-descr | 14 ++++++++++++++
 sysutils/p5-Device-RAID-Poller/pkg-plist | 17 +++++++++++++++++
 5 files changed, 56 insertions(+)

diff --git a/sysutils/Makefile b/sysutils/Makefile
index 8b580a382385..5f0229df19b0 100644
--- a/sysutils/Makefile
+++ b/sysutils/Makefile
@@ -827,6 +827,7 @@
     SUBDIR += p5-BSD-getloadavg
     SUBDIR += p5-BackupPC-XS
     SUBDIR += p5-Brackup
+    SUBDIR += p5-Device-RAID-Poller
     SUBDIR += p5-Dir-Purge
     SUBDIR += p5-File-BackupCopy
     SUBDIR += p5-File-Cmp
diff --git a/sysutils/p5-Device-RAID-Poller/Makefile b/sysutils/p5-Device-RAID-Poller/Makefile
new file mode 100644
index 000000000000..c4d36b4f0a78
--- /dev/null
+++ b/sysutils/p5-Device-RAID-Poller/Makefile
@@ -0,0 +1,21 @@
+PORTNAME=	Device-RAID-Poller
+PORTVERSION=	0.2.0
+CATEGORIES=	sysutils perl5
+MASTER_SITES=	CPAN
+PKGNAMEPREFIX=	p5-
+
+MAINTAINER=	vvelox@vvelox.net
+COMMENT=	RAID poller providing LibreNMS JSON app and Nagios style checks
+
+LICENSE=	ART10 GPLv1+
+LICENSE_COMB=	dual
+
+BUILD_DEPENDS=	p5-Error-Helper>=1.0.0:devel/p5-Error-Helper \
+		p5-JSON>=2.97.001:converters/p5-JSON \
+		p5-Module-List>=0.004:devel/p5-Module-List
+RUN_DEPENDS:=	${BUILD_DEPENDS}
+
+USES=		perl5
+USE_PERL5=	configure
+
+.include <bsd.port.mk>
diff --git a/sysutils/p5-Device-RAID-Poller/distinfo b/sysutils/p5-Device-RAID-Poller/distinfo
new file mode 100644
index 000000000000..88b34ffee48d
--- /dev/null
+++ b/sysutils/p5-Device-RAID-Poller/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1634307568
+SHA256 (Device-RAID-Poller-0.2.0.tar.gz) = 29ff75836cc3936a38b62b575200b8a40c7887bb0cf7b8e024717a70ecb6d243
+SIZE (Device-RAID-Poller-0.2.0.tar.gz) = 14341
diff --git a/sysutils/p5-Device-RAID-Poller/pkg-descr b/sysutils/p5-Device-RAID-Poller/pkg-descr
new file mode 100644
index 000000000000..87dc0d6da775
--- /dev/null
+++ b/sysutils/p5-Device-RAID-Poller/pkg-descr
@@ -0,0 +1,14 @@
+The included check_raid provides LibreNMS JSON app or
+Nagios style check output.
+
+The RAID checking is supported for the following.
+
+- Adaptec arcconf
+- Avago tw_cli
+- GEOM
+-- mirror
+-- graid3
+-- graid
+- ZFS
+
+WWW: https://metacpan.org/dist/Device-RAID-Poller
diff --git a/sysutils/p5-Device-RAID-Poller/pkg-plist b/sysutils/p5-Device-RAID-Poller/pkg-plist
new file mode 100644
index 000000000000..012f22081ba1
--- /dev/null
+++ b/sysutils/p5-Device-RAID-Poller/pkg-plist
@@ -0,0 +1,17 @@
+bin/check_raid
+%%SITE_PERL%%/Device/RAID/Poller.pm
+%%SITE_PERL%%/Device/RAID/Poller/Backends/FBSD_gmirror.pm
+%%SITE_PERL%%/Device/RAID/Poller/Backends/FBSD_graid.pm
+%%SITE_PERL%%/Device/RAID/Poller/Backends/FBSD_graid3.pm
+%%SITE_PERL%%/Device/RAID/Poller/Backends/ZFS.pm
+%%SITE_PERL%%/Device/RAID/Poller/Backends/Linux_mdadm.pm
+%%SITE_PERL%%/Device/RAID/Poller/Backends/Avago_tw_cli.pm
+%%SITE_PERL%%/Device/RAID/Poller/Backends/Adaptec_arcconf.pm
+%%PERL5_MAN3%%/Device::RAID::Poller.3.gz
+%%PERL5_MAN3%%/Device::RAID::Poller::Backends::FBSD_gmirror.3.gz
+%%PERL5_MAN3%%/Device::RAID::Poller::Backends::FBSD_graid.3.gz
+%%PERL5_MAN3%%/Device::RAID::Poller::Backends::FBSD_graid3.3.gz
+%%PERL5_MAN3%%/Device::RAID::Poller::Backends::ZFS.3.gz
+%%PERL5_MAN3%%/Device::RAID::Poller::Backends::Linux_mdadm.3.gz
+%%PERL5_MAN3%%/Device::RAID::Poller::Backends::Avago_tw_cli.3.gz
+%%PERL5_MAN3%%/Device::RAID::Poller::Backends::Adaptec_arcconf.3.gz