gentoo-ebuilds/net-analyzer/nagios-check_mysql_health/nagios-check_mysql_health-2.2.2-r2.ebuild
Andreas K. Hüttel 619f6222b6
net-analyzer/nagios-check_mysql_health: virtual/perl-Net-Ping is going away
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
2025-02-27 12:50:42 +01:00

38 lines
1.1 KiB
Bash

# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
MY_PN="${PN#nagios-}"
MY_P="${MY_PN}-${PV}"
DESCRIPTION="Nagios plugin for checking MySQL server health"
HOMEPAGE="https://labs.consol.de/nagios/check_mysql_health/"
SRC_URI="https://labs.consol.de/assets/downloads/nagios/${MY_P}.tar.gz"
S="${WORKDIR}/${MY_P}"
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 x86"
# 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-Time-HiRes
"
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!