Сравнение nagios-plugins-2.4.12 с nagios-plugins-2.4.12-r4

/usr/portage/net-analyzer/nagios-plugins/nagios-plugins-2.4.12-r4.ebuild 2026-01-24 11:18:05.024337288 +0300
1
# Copyright 1999-2025 Gentoo Authors
1
# Copyright 1999-2026 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4 4
EAPI=8
5 5

  
6
inherit autotools
7

  
6 8
DESCRIPTION="Official plugins for Nagios"
7 9
HOMEPAGE="https://nagios-plugins.org/"
8 10
SRC_URI="https://github.com/${PN}/${PN}/releases/download/release-${PV}/${P}.tar.gz"
9 11

  
10 12
LICENSE="GPL-2"
11 13
SLOT="0"
12
KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ppc ppc64 ~sparc x86"
13
IUSE="ipv6 ldap mysql nagios-dns nagios-ping nagios-game postgres radius samba selinux snmp ssh +ssl"
14
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86"
15
IUSE="ipv6 ldap mysql nagios-dns nagios-ping nagios-game nls postgres samba selinux snmp ssh +ssl rpc"
14 16

  
15 17
# Most of the plugins use automagic dependencies, i.e. the plugin will
16 18
# get built if the binary it uses is installed. For example, check_snmp
......
18 20
# installed. End result: most of our runtime dependencies are required
19 21
# at build time as well.
20 22
AUTOMAGIC_DEPEND="
21
	nagios-dns? ( net-dns/bind-tools )
23
	nagios-dns? ( net-dns/bind )
22 24
	nagios-game? ( games-util/qstat )
23 25
	nagios-ping? ( net-analyzer/fping )
26
	rpc? ( net-nds/rpcbind )
24 27
	samba? ( net-fs/samba )
25 28
	ssh? ( virtual/openssh )
26 29
	snmp? ( dev-perl/Net-SNMP
......
36 39
	postgres? ( dev-db/postgresql:* )
37 40
	ssl? (
38 41
		dev-libs/openssl:0=
39
	)
40
	radius? ( net-dialup/freeradius-client )"
42
	)"
41 43

  
42 44
# Basically everything in net-analyzer/monitoring-plugins collides with
43 45
# nagios-plugins. Perl (from BDEPEND) is needed at runtime, too.
......
49 51
# At least one test is interactive.
50 52
RESTRICT="test"
51 53

  
54
PATCHES=(
55
	"${FILESDIR}/${P}-postgresql-detection.patch"
56
	"${FILESDIR}/${P}-snmpgetnext.patch"
57
)
58

  
52 59
DOCS=(
53 60
	ACKNOWLEDGEMENTS
54 61
	AUTHORS
......
79 86
	sed -i -e "1s:/usr/local/bin/perl:/usr/bin/perl:" \
80 87
		"${S}"/plugins-scripts/*.pl \
81 88
		|| die 'failed to fix perl interpreter path'
89

  
90
	eautoreconf
91

  
92
	# eautoreconf replaces $(MKDIR_P) with $(mkdir_p) in
93
	# po/Makefile.in.in. As you might expect, this does not work.
94
	sed -i po/Makefile.in.in \
95
		-e 's/@mkdir_p@/@MKDIR_P@/' \
96
		|| die
82 97
}
83 98

  
84 99
src_configure() {
......
101 116
		myconf+=( --with-ping6-command="$(command -v ping6) -n -U -w %d -c %d %s" )
102 117
	fi
103 118

  
119
	# Radius support has been broken for a long time and causes the build
120
	# to fail (bug 957000, but before that too). I would recommend using
121
	# net-analyzer/monitoring-plugins if you need check_radius.
104 122
	econf \
105
		$(use_with mysql) \
106 123
		$(use_with ipv6) \
107 124
		$(use_with ldap) \
125
		$(use_with mysql) \
126
		$(use_enable nls) \
108 127
		$(use_with postgres pgsql /usr) \
109
		$(use_with radius) \
128
		--without-radius \
110 129
		"${myconf[@]}" \
111 130
		--libexecdir="/usr/$(get_libdir)/nagios/plugins" \
112 131
		--sysconfdir="/etc/nagios"
Спасибо!