Gentoo Archives: gentoo-commits

From: "Robin H. Johnson" <robbat2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/nagios-plugin-check_raid/
Date: Sun, 21 Feb 2016 01:37:15
Message-Id: 1456018615.1bf37856489e9447aa1a516c472ee44d139c53eb.robbat2@gentoo
1 commit: 1bf37856489e9447aa1a516c472ee44d139c53eb
2 Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
3 AuthorDate: Sun Feb 21 01:34:11 2016 +0000
4 Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 21 01:36:55 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1bf37856
7
8 net-analyzer/nagios-plugin-check_raid: initial commit, moved from infra overlay.
9
10 Package-Manager: portage-2.2.27
11
12 net-analyzer/nagios-plugin-check_raid/Manifest | 3 +
13 net-analyzer/nagios-plugin-check_raid/metadata.xml | 28 +++++++++
14 .../nagios-plugin-check_raid-4.0.0-r1.ebuild | 65 +++++++++++++++++++++
15 ...nagios-plugin-check_raid-4.0.0_p20151215.ebuild | 68 ++++++++++++++++++++++
16 ...nagios-plugin-check_raid-4.0.0_p20160215.ebuild | 68 ++++++++++++++++++++++
17 5 files changed, 232 insertions(+)
18
19 diff --git a/net-analyzer/nagios-plugin-check_raid/Manifest b/net-analyzer/nagios-plugin-check_raid/Manifest
20 new file mode 100644
21 index 0000000..10a71f4
22 --- /dev/null
23 +++ b/net-analyzer/nagios-plugin-check_raid/Manifest
24 @@ -0,0 +1,3 @@
25 +DIST nagios-plugin-check_raid-02b6425dac3db7e98d4c36bf0836357c6b36196c.tar.gz 49866 SHA256 959e269e58795cf89fab61b041511513d1b724855f1d38338f1f5e4e1083a8a7 SHA512 548241cd344c135dd6509e930329a9957184330a6f317f758a35c32fc680d421932e3daa12a8f7c0ec8071f96f9e63619de4dff2ea648652b6c2494e800d7ed4 WHIRLPOOL cd00353df2c133576e36f8fe204e11fb754fed081565d87b305905b0ee2a1e6c652f11a9bb99769e1467e838711583886dfe9ecfeb3c40c566069ce07af84cd0
26 +DIST nagios-plugin-check_raid-4.0.0.tar.gz 46308 SHA256 eb33c54b6c532076dafe72bc80905c17d1604fc306f5075b6fdc6cf41dcd8ac2 SHA512 0f80321615a29665c32bef8b5426fad5994c28b48446167d81504b8ae5720c28b9eaf449f48147e5fc7b24907560994d61b81bed68f9b8caa9a87b18eddd9ee9 WHIRLPOOL 8af62afd9eff172ab4e24bbde564c52826390ad40130ae091d62c10634e0313cb55f39e163988349015694389c152a6e4930c84ebd230ac3686a59e8b6ca56b9
27 +DIST nagios-plugin-check_raid-5da4400ff978189d6be889f2448099535baa01f4.tar.gz 46422 SHA256 423da601fa7471dda5db839a07a52ce21e33ec00e09ad859f4fac4705f6bad18 SHA512 4c4d372735576cf104886c62c071dc98512687ecc1b2f3d56f614c24b747566ff849119c3e0a71b011db5a32e67f50c9d772c0c68a895320e0a5b63322cf6446 WHIRLPOOL 791836ab95edc679cd2288ba9231c4eccddd1d7a09cca68ce446fde498503942a040d48862f4157ebe1b83f645d31b77f7a7a6785095d3e4a5a7a40f56dd56c4
28
29 diff --git a/net-analyzer/nagios-plugin-check_raid/metadata.xml b/net-analyzer/nagios-plugin-check_raid/metadata.xml
30 new file mode 100644
31 index 0000000..61b6124
32 --- /dev/null
33 +++ b/net-analyzer/nagios-plugin-check_raid/metadata.xml
34 @@ -0,0 +1,28 @@
35 +<?xml version="1.0" encoding="UTF-8"?>
36 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
37 +<pkgmetadata>
38 + <maintainer type="person">
39 + <email>robbat2@g.o</email>
40 + <name>Robin H. Johnson</name>
41 + </maintainer>
42 + <longdescription lang="en">
43 + Nagios/Icinga plugin to check current server's RAID status; this tool
44 + wraps MANY different RAID tools and provides a consistent check for
45 + them.
46 + </longdescription>
47 + <upstream>
48 + <remote-id type="github">glensc/nagios-plugin-check_raid</remote-id>
49 + </upstream>
50 + <use>
51 + <flag name='3ware'>Support 3ware RAID controllers</flag>
52 + <flag name='aacraid'>Support Adaptec AAC-RAID controllers</flag>
53 + <flag name='dmraid'>Support Device-Mapper RAID</flag>
54 + <flag name='hpa'>Support HP Array controllers</flag>
55 + <flag name='hpsa'>Support HP SmartArray (CCISS) controllers</flag>
56 + <flag name='megaraid-sas'>Support LSI MegaRAID SAS controllers</flag>
57 + <flag name='megaraid-scsi'>Support LSI MegaRAID SCSI controllers</flag>
58 + <flag name='mpt-sas2'>Support LSI SAS-2 controllers</flag>
59 + <flag name='mpt'>Support LSI MPT Fusion controllers</flag>
60 + <flag name='i2o'>Support DPT-I2O controllers (mostly Adaptec)</flag>
61 + </use>
62 +</pkgmetadata>
63
64 diff --git a/net-analyzer/nagios-plugin-check_raid/nagios-plugin-check_raid-4.0.0-r1.ebuild b/net-analyzer/nagios-plugin-check_raid/nagios-plugin-check_raid-4.0.0-r1.ebuild
65 new file mode 100644
66 index 0000000..ab33b2b
67 --- /dev/null
68 +++ b/net-analyzer/nagios-plugin-check_raid/nagios-plugin-check_raid-4.0.0-r1.ebuild
69 @@ -0,0 +1,65 @@
70 +# Copyright 1999-2016 Gentoo Foundation
71 +# Distributed under the terms of the GNU General Public License v2
72 +# $Id$
73 +
74 +EAPI=6
75 +
76 +inherit eutils perl-module
77 +
78 +DESCRIPTION="Nagios/Icinga plugin to check current server's RAID status"
79 +HOMEPAGE="https://github.com/glensc/nagios-plugin-check_raid"
80 +SRC_URI="${HOMEPAGE}/archive/${PV}.tar.gz -> ${P}.tar.gz"
81 +
82 +LICENSE="GPL-2"
83 +SLOT="0"
84 +KEYWORDS="~amd64 ~x86"
85 +IUSE="3ware aacraid dmraid hpa hpsa i2o megaraid-sas megaraid-scsi mpt mpt-sas2"
86 +
87 +DEPEND="dev-perl/Monitoring-Plugin
88 + dev-perl/Module-Pluggable"
89 +RDEPEND="${DEPEND}
90 + sys-apps/smartmontools
91 + sys-fs/lsscsi
92 + 3ware? ( sys-block/tw_cli )
93 + aacraid? ( sys-block/arcconf )
94 + dmraid? ( sys-fs/dmraid )
95 + hpa? ( sys-block/hpacucli )
96 + hpsa? ( sys-apps/cciss_vol_status )
97 + i2o? ( sys-apps/raidutils )
98 + megaraid-sas? ( sys-block/megacli )
99 + megaraid-scsi? ( sys-block/megarc )
100 + mpt-sas2? ( sys-block/sas2ircu )
101 + mpt? ( sys-block/mpt-status )
102 + "
103 +
104 +# TODO:
105 +# Package all the other Perl build pieces, and stop using the monolithic perl script.
106 +src_prepare() {
107 + # Upstream has a custom Makefile that is meant to build bundles.
108 + mv -f Makefile Makefile.upstream
109 + sed -i '/CPANfile/d' Makefile.PL
110 + default
111 +}
112 +
113 +src_install() {
114 + default
115 + plugindir="/usr/$(get_libdir)/nagios/plugins"
116 + dodir "$plugindir"
117 + mv -f "${D}"/usr/bin/check_raid.pl "${D}"/"${plugindir}"
118 + dodoc README.md ChangeLog.md CONTRIBUTING.md check_raid.cfg
119 +}
120 +
121 +pkg_postinst() {
122 + einfo "The following RAID controllers are supported without special tools:"
123 + einfo "GDT (Intel/ICP) RAID Controller"
124 + einfo "HP MSA (special configuration needed)"
125 + einfo "The following RAID controllers do not have tools packaged in Gentoo, but ARE supported by this tool:"
126 + einfo "Intel: CmdTool2"
127 + einfo "Areca: areca-cli"
128 + einfo "See https://github.com/glensc/nagios-plugin-check_raid/issues/10"
129 + einfo "Marvell RAID: mvcli"
130 + einfo "See https://github.com/glensc/nagios-plugin-check_raid/issues/92"
131 + einfo "Adaptec ServeRAID: aaccli"
132 + einfo "Adaptec AACRAID: afacli (* some controllers supported by USE=aacraid, sys-block/arcconf)"
133 + einfo "Adaptec ServeRAID 7k: ipssend"
134 +}
135
136 diff --git a/net-analyzer/nagios-plugin-check_raid/nagios-plugin-check_raid-4.0.0_p20151215.ebuild b/net-analyzer/nagios-plugin-check_raid/nagios-plugin-check_raid-4.0.0_p20151215.ebuild
137 new file mode 100644
138 index 0000000..7698f47
139 --- /dev/null
140 +++ b/net-analyzer/nagios-plugin-check_raid/nagios-plugin-check_raid-4.0.0_p20151215.ebuild
141 @@ -0,0 +1,68 @@
142 +# Copyright 1999-2016 Gentoo Foundation
143 +# Distributed under the terms of the GNU General Public License v2
144 +# $Id$
145 +
146 +EAPI=6
147 +
148 +inherit eutils perl-module
149 +
150 +DESCRIPTION="Nagios/Icinga plugin to check current server's RAID status"
151 +HOMEPAGE="https://github.com/glensc/nagios-plugin-check_raid"
152 +COMMIT="5da4400ff978189d6be889f2448099535baa01f4"
153 +MY_PV="${COMMIT:-$PV}"
154 +MY_P="${PN}-${MY_PV}"
155 +SRC_URI="${HOMEPAGE}/archive/${COMMIT}.tar.gz -> ${MY_P}.tar.gz"
156 +
157 +LICENSE="GPL-2"
158 +SLOT="0"
159 +KEYWORDS="~amd64 ~x86"
160 +IUSE="3ware aacraid dmraid hpa hpsa i2o megaraid-sas megaraid-scsi mpt mpt-sas2"
161 +
162 +DEPEND="dev-perl/Monitoring-Plugin
163 + dev-perl/Module-Pluggable"
164 +RDEPEND="${DEPEND}
165 + sys-apps/smartmontools
166 + sys-fs/lsscsi
167 + 3ware? ( sys-block/tw_cli )
168 + aacraid? ( sys-block/arcconf )
169 + dmraid? ( sys-fs/dmraid )
170 + hpa? ( sys-block/hpacucli )
171 + hpsa? ( sys-apps/cciss_vol_status )
172 + i2o? ( sys-apps/raidutils )
173 + megaraid-sas? ( sys-block/megacli )
174 + megaraid-scsi? ( sys-block/megarc )
175 + mpt-sas2? ( sys-block/sas2ircu )
176 + mpt? ( sys-block/mpt-status )
177 + "
178 +
179 +S="${WORKDIR}/${MY_P}"
180 +
181 +src_prepare() {
182 + # Upstream has a custom Makefile that is meant to build bundles.
183 + mv -f Makefile Makefile.upstream
184 + sed -i '/CPANfile/d' Makefile.PL
185 + default
186 +}
187 +
188 +src_install() {
189 + default
190 + plugindir="/usr/$(get_libdir)/nagios/plugins"
191 + dodir "$plugindir"
192 + mv -f "${D}"/usr/bin/check_raid.pl "${D}"/"${plugindir}"
193 + dodoc README.md ChangeLog.md CONTRIBUTING.md check_raid.cfg
194 +}
195 +
196 +pkg_postinst() {
197 + einfo "The following RAID controllers are supported without special tools:"
198 + einfo "GDT (Intel/ICP) RAID Controller"
199 + einfo "HP MSA (special configuration needed)"
200 + einfo "The following RAID controllers do not have tools packaged in Gentoo, but ARE supported by this tool:"
201 + einfo "Intel: CmdTool2"
202 + einfo "Areca: areca-cli"
203 + einfo "See https://github.com/glensc/nagios-plugin-check_raid/issues/10"
204 + einfo "Marvell RAID: mvcli"
205 + einfo "See https://github.com/glensc/nagios-plugin-check_raid/issues/92"
206 + einfo "Adaptec ServeRAID: aaccli"
207 + einfo "Adaptec AACRAID: afacli (* some controllers supported by USE=aacraid, sys-block/arcconf)"
208 + einfo "Adaptec ServeRAID 7k: ipssend"
209 +}
210
211 diff --git a/net-analyzer/nagios-plugin-check_raid/nagios-plugin-check_raid-4.0.0_p20160215.ebuild b/net-analyzer/nagios-plugin-check_raid/nagios-plugin-check_raid-4.0.0_p20160215.ebuild
212 new file mode 100644
213 index 0000000..d2d29ef
214 --- /dev/null
215 +++ b/net-analyzer/nagios-plugin-check_raid/nagios-plugin-check_raid-4.0.0_p20160215.ebuild
216 @@ -0,0 +1,68 @@
217 +# Copyright 1999-2016 Gentoo Foundation
218 +# Distributed under the terms of the GNU General Public License v2
219 +# $Id$
220 +
221 +EAPI=6
222 +
223 +inherit eutils perl-module
224 +
225 +DESCRIPTION="Nagios/Icinga plugin to check current server's RAID status"
226 +HOMEPAGE="https://github.com/glensc/nagios-plugin-check_raid"
227 +COMMIT="02b6425dac3db7e98d4c36bf0836357c6b36196c"
228 +MY_PV="${COMMIT:-$PV}"
229 +MY_P="${PN}-${MY_PV}"
230 +SRC_URI="${HOMEPAGE}/archive/${COMMIT}.tar.gz -> ${MY_P}.tar.gz"
231 +
232 +LICENSE="GPL-2"
233 +SLOT="0"
234 +KEYWORDS="~amd64 ~x86"
235 +IUSE="3ware aacraid dmraid hpa hpsa i2o megaraid-sas megaraid-scsi mpt mpt-sas2"
236 +
237 +DEPEND="dev-perl/Monitoring-Plugin
238 + dev-perl/Module-Pluggable"
239 +RDEPEND="${DEPEND}
240 + sys-apps/smartmontools
241 + sys-fs/lsscsi
242 + 3ware? ( sys-block/tw_cli )
243 + aacraid? ( sys-block/arcconf )
244 + dmraid? ( sys-fs/dmraid )
245 + hpa? ( sys-block/hpacucli )
246 + hpsa? ( sys-apps/cciss_vol_status )
247 + i2o? ( sys-apps/raidutils )
248 + megaraid-sas? ( sys-block/megacli )
249 + megaraid-scsi? ( sys-block/megarc )
250 + mpt-sas2? ( sys-block/sas2ircu )
251 + mpt? ( sys-block/mpt-status )
252 + "
253 +
254 +S="${WORKDIR}/${MY_P}"
255 +
256 +src_prepare() {
257 + # Upstream has a custom Makefile that is meant to build bundles.
258 + mv -f Makefile Makefile.upstream
259 + sed -i '/CPANfile/d' Makefile.PL
260 + default
261 +}
262 +
263 +src_install() {
264 + default
265 + plugindir="/usr/$(get_libdir)/nagios/plugins"
266 + dodir "$plugindir"
267 + mv -f "${D}"/usr/bin/check_raid.pl "${D}"/"${plugindir}"
268 + dodoc README.md ChangeLog.md CONTRIBUTING.md check_raid.cfg
269 +}
270 +
271 +pkg_postinst() {
272 + einfo "The following RAID controllers are supported without special tools:"
273 + einfo "GDT (Intel/ICP) RAID Controller"
274 + einfo "HP MSA (special configuration needed)"
275 + einfo "The following RAID controllers do not have tools packaged in Gentoo, but ARE supported by this tool:"
276 + einfo "Intel: CmdTool2"
277 + einfo "Areca: areca-cli"
278 + einfo "See https://github.com/glensc/nagios-plugin-check_raid/issues/10"
279 + einfo "Marvell RAID: mvcli"
280 + einfo "See https://github.com/glensc/nagios-plugin-check_raid/issues/92"
281 + einfo "Adaptec ServeRAID: aaccli"
282 + einfo "Adaptec AACRAID: afacli (* some controllers supported by USE=aacraid, sys-block/arcconf)"
283 + einfo "Adaptec ServeRAID 7k: ipssend"
284 +}