Files
monitoring/net-analyzer/check_pdu_health/check_pdu_health-0.24-r1.ebuild

29 lines
940 B
Bash

# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit autotools git-r3
DESCRIPTION="A nagios plugin for checking USV health"
HOMEPAGE="https://github.com/lausser/check_pdu_health"
EGIT_REPO_URI="https://github.com/lausser/check_pdu_health.git"
EGIT_COMMIT="20d85d8059d85253f6b090ea2c6bb6b07a2f75e6"
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
src_configure(){
default_src_configure
eautoreconf
# Should match net-analyzer/{monitoring,nagios}-plugins.
econf --libexecdir="/usr/$(get_libdir)/nagios/plugins/contrib"
}
# 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