Gentoo Archives: gentoo-commits

From: Michael Orlitzky <mjo@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/monitoring-plugins/
Date: Thu, 01 Dec 2022 01:00:53
Message-Id: 1669856325.821a6d18123a0f24f84404d9e3c76c46f2943f77.mjo@gentoo
1 commit: 821a6d18123a0f24f84404d9e3c76c46f2943f77
2 Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
3 AuthorDate: Thu Dec 1 00:50:52 2022 +0000
4 Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
5 CommitDate: Thu Dec 1 00:58:45 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=821a6d18
7
8 net-analyzer/monitoring-plugins: drop 2.3.1-r2
9
10 Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org>
11
12 .../monitoring-plugins-2.3.1-r2.ebuild | 106 ---------------------
13 1 file changed, 106 deletions(-)
14
15 diff --git a/net-analyzer/monitoring-plugins/monitoring-plugins-2.3.1-r2.ebuild b/net-analyzer/monitoring-plugins/monitoring-plugins-2.3.1-r2.ebuild
16 deleted file mode 100644
17 index 98c4b1592214..000000000000
18 --- a/net-analyzer/monitoring-plugins/monitoring-plugins-2.3.1-r2.ebuild
19 +++ /dev/null
20 @@ -1,106 +0,0 @@
21 -# Copyright 1999-2022 Gentoo Authors
22 -# Distributed under the terms of the GNU General Public License v2
23 -
24 -EAPI=7
25 -
26 -inherit flag-o-matic
27 -
28 -DESCRIPTION="50+ standard plugins for Icinga, Naemon, Nagios, Shinken, Sensu"
29 -HOMEPAGE="https://www.monitoring-plugins.org/"
30 -SRC_URI="https://www.monitoring-plugins.org/download/${P}.tar.gz"
31 -
32 -LICENSE="GPL-3"
33 -SLOT="0"
34 -KEYWORDS="amd64 ~arm ~arm64 sparc x86"
35 -IUSE="curl gnutls ipv6 ldap mysql dns fping game postgres radius samba snmp ssh +ssl"
36 -
37 -# Most of the plugins use automagic dependencies, i.e. the plugin will
38 -# get built if the binary it uses is installed. For example, check_snmp
39 -# will be built only if snmpget from net-analyzer/net-snmp[-minimal] is
40 -# installed. End result: most of our runtime dependencies are required
41 -# at build time as well.
42 -#
43 -# REAL_DEPEND contains the dependencies that are actually needed to
44 -# build. DEPEND contains those plus the automagic dependencies.
45 -#
46 -REAL_DEPEND="dev-lang/perl
47 - curl? (
48 - dev-libs/uriparser
49 - net-misc/curl
50 - )
51 - ldap? ( net-nds/openldap:= )
52 - mysql? ( || ( dev-db/mysql-connector-c dev-db/mariadb-connector-c ) )
53 - postgres? ( dev-db/postgresql:= )
54 - ssl? (
55 - !gnutls? (
56 - dev-libs/openssl:0=
57 - )
58 - gnutls? ( net-libs/gnutls )
59 - )
60 - radius? ( net-dialup/freeradius-client )"
61 -
62 -DEPEND="${REAL_DEPEND}
63 - dns? ( net-dns/bind-tools )
64 - game? ( games-util/qstat )
65 - fping? ( net-analyzer/fping )
66 - samba? ( net-fs/samba )
67 - ssh? ( net-misc/openssh )
68 - snmp? ( dev-perl/Net-SNMP
69 - net-analyzer/net-snmp[-minimal] )"
70 -
71 -# Basically everything collides with nagios-plugins.
72 -RDEPEND="${DEPEND}
73 - acct-group/nagios
74 - acct-user/nagios
75 - !net-analyzer/nagios-plugins"
76 -
77 -# At least one test is interactive.
78 -RESTRICT="test"
79 -
80 -PATCHES=( "${FILESDIR}/define-own-mysql-port-constant.patch" )
81 -
82 -src_configure() {
83 - append-flags -fno-strict-aliasing
84 -
85 - # Use an array to prevent econf from mangling the ping args.
86 - local myconf=()
87 -
88 - if use ssl; then
89 - myconf+=( $(use_with !gnutls openssl /usr)
90 - $(use_with gnutls gnutls /usr) )
91 - else
92 - myconf+=( --without-openssl )
93 - myconf+=( --without-gnutls )
94 - fi
95 -
96 - # The autodetection for these two commands can hang if localhost is
97 - # down or ICMP traffic is filtered. Bug #468296.
98 - myconf+=( --with-ping-command="/bin/ping -4 -n -U -w %d -c %d %s" )
99 -
100 - if use ipv6; then
101 - myconf+=( --with-ping6-command="/bin/ping -6 -n -U -w %d -c %d %s" )
102 - fi
103 -
104 - econf \
105 - $(use_with curl libcurl) \
106 - $(use_with curl uriparser) \
107 - $(use_with mysql) \
108 - $(use_with ipv6) \
109 - $(use_with ldap) \
110 - $(use_with postgres pgsql /usr) \
111 - $(use_with radius) \
112 - "${myconf[@]}" \
113 - --libexecdir="/usr/$(get_libdir)/nagios/plugins" \
114 - --sysconfdir="/etc/nagios"
115 -}
116 -
117 -DOCS=( ACKNOWLEDGEMENTS AUTHORS CODING ChangeLog FAQ \
118 - NEWS README REQUIREMENTS SUPPORT THANKS )
119 -
120 -pkg_postinst() {
121 - elog "This ebuild has a number of USE flags that determine what you"
122 - elog "are able to monitor. Depending on what you want to monitor, some"
123 - elog "or all of these USE flags need to be set."
124 - elog
125 - elog "The plugins are installed in ${EROOT}/usr/$(get_libdir)/nagios/plugins"
126 -}