net-analyzer/nagios-plugins: new "rpc" USE flag

The path to rpcinfo is detected at build time and if it is not found,
check_rpc won't work. We add a USE flag to pull in net-nds/rpcbind at
both build and run-time.

Bug: https://bugs.gentoo.org/964247
Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
This commit is contained in:
Michael Orlitzky 2025-10-27 14:07:04 -04:00
parent 5d94b3176e
commit 6be3b8891f
No known key found for this signature in database
GPG Key ID: 6F48D3DA05C2DADB
2 changed files with 6 additions and 1 deletions

View File

@ -26,6 +26,10 @@
Install <pkg>net-analyzer/fping</pkg> required for fancy ping
monitoring. Disabling the flag does not remove any plugin file.
</flag>
<flag name="rpc">
Install <pkg>net-nds/rpcbind</pkg> required for monitoring RPC
services. Disabling the flag does not remove any plugin file.
</flag>
<flag name="ssh">
Install <pkg>net-misc/openssh</pkg> required for monitoring SSH
servers. Disabling the flag does not remove any plugin file.

View File

@ -12,7 +12,7 @@ SRC_URI="https://github.com/${PN}/${PN}/releases/download/release-${PV}/${P}.tar
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86"
IUSE="ipv6 ldap mysql nagios-dns nagios-ping nagios-game nls postgres radius samba selinux snmp ssh +ssl"
IUSE="ipv6 ldap mysql nagios-dns nagios-ping nagios-game nls postgres radius samba selinux snmp ssh +ssl rpc"
# Most of the plugins use automagic dependencies, i.e. the plugin will
# get built if the binary it uses is installed. For example, check_snmp
@ -23,6 +23,7 @@ AUTOMAGIC_DEPEND="
nagios-dns? ( net-dns/bind )
nagios-game? ( games-util/qstat )
nagios-ping? ( net-analyzer/fping )
rpc? ( net-nds/rpcbind )
samba? ( net-fs/samba )
ssh? ( virtual/openssh )
snmp? ( dev-perl/Net-SNMP