X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;ds=sidebyside;f=net-analyzer%2Fnagios-check_mysql_health%2Fnagios-check_mysql_health-2.1.9.2.ebuild;fp=net-analyzer%2Fnagios-check_mysql_health%2Fnagios-check_mysql_health-2.1.9.2.ebuild;h=6dda964bd561c985f49afb8186b1c81bdf29c9c5;hb=07c768ce0f17966eb26cda67f7ac0e11bfa6d602;hp=0000000000000000000000000000000000000000;hpb=39a1d85502f881cead96db21c3817d9f3a86bb3c;p=mjo-overlay.git diff --git a/net-analyzer/nagios-check_mysql_health/nagios-check_mysql_health-2.1.9.2.ebuild b/net-analyzer/nagios-check_mysql_health/nagios-check_mysql_health-2.1.9.2.ebuild new file mode 100644 index 0000000..6dda964 --- /dev/null +++ b/net-analyzer/nagios-check_mysql_health/nagios-check_mysql_health-2.1.9.2.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 + +inherit multilib user + +MY_PN="${PN#nagios-}" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="A nagios plugin for checking MySQL server health" +HOMEPAGE="http://labs.consol.de/lang/de/nagios/${MY_PN}/" +SRC_URI="http://labs.consol.de/download/shinken-nagios-plugins/${MY_P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +# Found by grepping for "use " in the built +# plugins-scripts/check_mysql_health. +RDEPEND="dev-perl/DBD-mysql + dev-perl/DBI + virtual/perl-Data-Dumper + virtual/perl-File-Temp + virtual/perl-Net-Ping + virtual/perl-Time-HiRes" + +S="${WORKDIR}/${MY_P}" + +src_configure(){ + # Should match net-analyzer/{monitoring,nagios}-plugins. + econf --libexecdir="/usr/$(get_libdir)/nagios/plugins" +} + +pkg_preinst() { + # These should match net-analyzer/{monitoring,nagios}-plugins. + enewgroup nagios + enewuser nagios -1 /bin/bash /var/nagios/home nagios +}