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/nagios-plugins/
Date: Wed, 05 Aug 2020 15:35:01
Message-Id: 1596641690.da85e1b542a1a2aae3401869a767456061de6dda.mjo@gentoo
1 commit: da85e1b542a1a2aae3401869a767456061de6dda
2 Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
3 AuthorDate: Wed Aug 5 15:33:26 2020 +0000
4 Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 5 15:34:50 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=da85e1b5
7
8 net-analyzer/nagios-plugins: remove old "unused" version 2.2.1-r3.
9
10 Package-Manager: Portage-2.3.103, Repoman-2.3.23
11 Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org>
12
13 net-analyzer/nagios-plugins/Manifest | 1 -
14 .../nagios-plugins/nagios-plugins-2.2.1-r3.ebuild | 118 ---------------------
15 2 files changed, 119 deletions(-)
16
17 diff --git a/net-analyzer/nagios-plugins/Manifest b/net-analyzer/nagios-plugins/Manifest
18 index a61327a7e25..b54c98b7a97 100644
19 --- a/net-analyzer/nagios-plugins/Manifest
20 +++ b/net-analyzer/nagios-plugins/Manifest
21 @@ -1,2 +1 @@
22 -DIST nagios-plugins-2.2.1.tar.gz 2728818 BLAKE2B ea89862935491d9c31403a36712d39557fa8e90dc2306e027531e974933cd13cc6b55ebfdd7dfc7541d6458741aaf57714df57fdddc92049001a59f0ffb6413a SHA512 6ffe313a56a305b382f62abc0f0958d7078f9050e1340f30721d6e6f71944b57b1650e90e6835c35dd7c9f3f4b4cee9f235b8382b0811db30b3729daaafc9bc3
23 DIST nagios-plugins-2.3.1.tar.gz 2833267 BLAKE2B f89eda7a29558dd33dedbf0de150b6a13ba66d213d74041d9eb8c680880b3825bcc9312d251d22f3b483a14c0de7c59d7801954e7563c16352bfc38236676863 SHA512 89208f211e51db4e0d56725a6ff6d2fcf4eb2207f877a2b8f130cda8480a70f318eceb94140eb4f2a17fe3dd967bb3615ccc366c1a531ebd4ff0a04b60c61b8a
24
25 diff --git a/net-analyzer/nagios-plugins/nagios-plugins-2.2.1-r3.ebuild b/net-analyzer/nagios-plugins/nagios-plugins-2.2.1-r3.ebuild
26 deleted file mode 100644
27 index 77dac5af393..00000000000
28 --- a/net-analyzer/nagios-plugins/nagios-plugins-2.2.1-r3.ebuild
29 +++ /dev/null
30 @@ -1,118 +0,0 @@
31 -# Copyright 1999-2020 Gentoo Authors
32 -# Distributed under the terms of the GNU General Public License v2
33 -
34 -EAPI=6
35 -
36 -inherit user
37 -
38 -DESCRIPTION="Official plugins for Nagios"
39 -HOMEPAGE="http://nagios-plugins.org/"
40 -SRC_URI="http://nagios-plugins.org/download/${P}.tar.gz"
41 -
42 -LICENSE="GPL-2"
43 -SLOT="0"
44 -KEYWORDS="~alpha amd64 ~arm ~arm64 hppa ppc ppc64 sparc x86"
45 -IUSE="ipv6 ldap libressl mysql nagios-dns nagios-ping nagios-game postgres radius samba selinux snmp ssh +ssl"
46 -
47 -# Most of the plugins use automagic dependencies, i.e. the plugin will
48 -# get built if the binary it uses is installed. For example, check_snmp
49 -# will be built only if snmpget from net-analyzer/net-snmp[-minimal] is
50 -# installed. End result: most of our runtime dependencies are required
51 -# at build time as well.
52 -#
53 -# REAL_DEPEND contains the dependencies that are actually needed to
54 -# build. DEPEND contains those plus the automagic dependencies.
55 -#
56 -REAL_DEPEND="dev-lang/perl
57 - ldap? ( net-nds/openldap )
58 - mysql? ( dev-db/mysql-connector-c )
59 - postgres? ( dev-db/postgresql:* )
60 - ssl? (
61 - !libressl? ( dev-libs/openssl:0 )
62 - libressl? ( dev-libs/libressl )
63 - )
64 - radius? ( net-dialup/freeradius-client )"
65 -
66 -DEPEND="${REAL_DEPEND}
67 - nagios-dns? ( net-dns/bind-tools )
68 - nagios-game? ( games-util/qstat )
69 - nagios-ping? ( net-analyzer/fping )
70 - samba? ( net-fs/samba )
71 - ssh? ( net-misc/openssh )
72 - snmp? ( dev-perl/Net-SNMP
73 - net-analyzer/net-snmp[-minimal] )"
74 -
75 -# Basically everything collides with nagios-plugins.
76 -RDEPEND="${DEPEND}
77 - !net-analyzer/monitoring-plugins
78 - selinux? ( sec-policy/selinux-nagios )"
79 -
80 -# At least one test is interactive.
81 -RESTRICT="test"
82 -
83 -DOCS=(
84 - ACKNOWLEDGEMENTS
85 - AUTHORS
86 - CODING
87 - ChangeLog
88 - FAQ
89 - NEWS
90 - README
91 - REQUIREMENTS
92 - SUPPORT
93 - THANKS
94 -)
95 -
96 -PATCHES=( "${FILESDIR}/define-own-mysql-port-constant.patch" )
97 -
98 -src_prepare() {
99 - default
100 -
101 - # Fix the path to our perl interpreter
102 - sed -i -e "1s:/usr/local/bin/perl:/usr/bin/perl:" \
103 - "${S}"/plugins-scripts/*.pl \
104 - || die 'failed to fix perl interpreter path'
105 -}
106 -
107 -src_configure() {
108 - # Use an array to prevent econf from mangling the ping args.
109 - local myconf=()
110 -
111 - if use ssl; then
112 - myconf+=( $(use_with ssl openssl /usr) )
113 - else
114 - myconf+=( --without-openssl )
115 - myconf+=( --without-gnutls )
116 - fi
117 -
118 - # The autodetection for these two commands can hang if localhost is
119 - # down or ICMP traffic is filtered. Bug #468296.
120 - myconf+=( --with-ping-command="/bin/ping -n -U -w %d -c %d %s" )
121 -
122 - if use ipv6; then
123 - myconf+=( --with-ping6-command="/bin/ping6 -n -U -w %d -c %d %s" )
124 - fi
125 -
126 - econf \
127 - $(use_with mysql) \
128 - $(use_with ipv6) \
129 - $(use_with ldap) \
130 - $(use_with postgres pgsql /usr) \
131 - $(use_with radius) \
132 - "${myconf[@]}" \
133 - --libexecdir="/usr/$(get_libdir)/nagios/plugins" \
134 - --sysconfdir="/etc/nagios"
135 -}
136 -
137 -pkg_preinst() {
138 - enewgroup nagios
139 - enewuser nagios -1 /bin/bash /var/nagios/home nagios
140 -}
141 -
142 -pkg_postinst() {
143 - elog "This ebuild has a number of USE flags that determine what you"
144 - elog "are able to monitor. Depending on what you want to monitor, some"
145 - elog "or all of these USE flags need to be set."
146 - elog
147 - elog "The plugins are installed in ${ROOT}usr/$(get_libdir)/nagios/plugins"
148 -}