diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /net-analyzer/nagios-check_mysql_health/nagios-check_mysql_health-2.2.2.ebuild |
reinit the tree, so we can have metadata
Diffstat (limited to 'net-analyzer/nagios-check_mysql_health/nagios-check_mysql_health-2.2.2.ebuild')
-rw-r--r-- | net-analyzer/nagios-check_mysql_health/nagios-check_mysql_health-2.2.2.ebuild | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/net-analyzer/nagios-check_mysql_health/nagios-check_mysql_health-2.2.2.ebuild b/net-analyzer/nagios-check_mysql_health/nagios-check_mysql_health-2.2.2.ebuild new file mode 100644 index 000000000000..eed773ec2099 --- /dev/null +++ b/net-analyzer/nagios-check_mysql_health/nagios-check_mysql_health-2.2.2.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +MY_PN="${PN#nagios-}" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="A nagios plugin for checking MySQL server health" +HOMEPAGE="https://labs.consol.de/nagios/${MY_PN}/" +SRC_URI="https://labs.consol.de/assets/downloads/nagios/${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" +} + +# Here we should have a pkg_preinst() that creates the nagios user/group +# (using the same command from e.g. net-analyzer/nagios-plugins). But +# right now, the build system for check_mysql_health has a bug: it +# doesn't use the configured user (INSTALL_OPTIONS aren't passed to +# /usr/bin/install), so it's pointless. Don't forget to inherit +# user.eclass! |