diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2017-12-04 08:16:43 -0800 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2017-12-04 08:17:12 -0800 |
commit | fe9be1ba0a4c206f7bf0a2af398348bdeecb1e3b (patch) | |
tree | 0979fd734ef08df00d9bcd65ce3e6b9f0b17ab26 /net-analyzer/nagios-plugin-check_raid/nagios-plugin-check_raid-4.0.8.ebuild | |
parent | app-doc/pms: Drop git protocol URI for live ebuild. (diff) | |
download | gentoo-fe9be1ba0a4c206f7bf0a2af398348bdeecb1e3b.tar.gz gentoo-fe9be1ba0a4c206f7bf0a2af398348bdeecb1e3b.tar.bz2 gentoo-fe9be1ba0a4c206f7bf0a2af398348bdeecb1e3b.zip |
net-analyzer/nagios-plugin-check_raid: bump
Package-Manager: Portage-2.3.16, Repoman-2.3.6
Diffstat (limited to 'net-analyzer/nagios-plugin-check_raid/nagios-plugin-check_raid-4.0.8.ebuild')
-rw-r--r-- | net-analyzer/nagios-plugin-check_raid/nagios-plugin-check_raid-4.0.8.ebuild | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/net-analyzer/nagios-plugin-check_raid/nagios-plugin-check_raid-4.0.8.ebuild b/net-analyzer/nagios-plugin-check_raid/nagios-plugin-check_raid-4.0.8.ebuild new file mode 100644 index 000000000000..b54ad284019d --- /dev/null +++ b/net-analyzer/nagios-plugin-check_raid/nagios-plugin-check_raid-4.0.8.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit eutils perl-module + +DESCRIPTION="Nagios/Icinga plugin to check current server's RAID status" +HOMEPAGE="https://github.com/glensc/nagios-plugin-check_raid" +#COMMIT="" +MY_PV="${COMMIT:-$PV}" +MY_P="${PN}-${MY_PV}" +SRC_URI="${HOMEPAGE}/archive/${MY_PV}.tar.gz -> ${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="3ware aacraid dmraid hpa hpsa i2o megaraid-sas megaraid-scsi mpt mpt-sas2" + +DEPEND="dev-perl/Monitoring-Plugin + dev-perl/Module-Pluggable" +RDEPEND="${DEPEND} + sys-apps/smartmontools + sys-fs/lsscsi + 3ware? ( sys-block/tw_cli ) + aacraid? ( sys-block/arcconf ) + dmraid? ( sys-fs/dmraid ) + hpa? ( sys-block/hpacucli ) + hpsa? ( sys-apps/cciss_vol_status ) + i2o? ( sys-apps/raidutils ) + megaraid-sas? ( sys-block/megacli ) + megaraid-scsi? ( sys-block/megarc ) + mpt-sas2? ( sys-block/sas2ircu ) + mpt? ( sys-block/mpt-status ) + " + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + # Upstream has a custom Makefile that is meant to build bundles. + mv -f Makefile Makefile.upstream + sed -i '/CPANfile/d' Makefile.PL + default +} + +src_install() { + default + plugindir="/usr/$(get_libdir)/nagios/plugins" + dodir "$plugindir" + mv -f "${D}"/usr/bin/check_raid.pl "${D}"/"${plugindir}" + dodoc README.md CHANGELOG.md CONTRIBUTING.md check_raid.cfg +} + +pkg_postinst() { + einfo "The following RAID controllers are supported without special tools:" + einfo "GDT (Intel/ICP) RAID Controller" + einfo "HP MSA (special configuration needed)" + einfo "The following RAID controllers do not have tools packaged in Gentoo, but ARE supported by this tool:" + einfo "Intel: CmdTool2" + einfo "Areca: areca-cli" + einfo "See https://github.com/glensc/nagios-plugin-check_raid/issues/10" + einfo "Marvell RAID: mvcli" + einfo "See https://github.com/glensc/nagios-plugin-check_raid/issues/92" + einfo "Adaptec ServeRAID: aaccli" + einfo "Adaptec AACRAID: afacli (* some controllers supported by USE=aacraid, sys-block/arcconf)" + einfo "Adaptec ServeRAID 7k: ipssend" +} |