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: Sat, 16 Feb 2019 16:01:53
Message-Id: 1550332869.ec0cf769285f14f04060a9d0ce5ebf3a58aef255.mjo@gentoo
1 commit: ec0cf769285f14f04060a9d0ce5ebf3a58aef255
2 Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
3 AuthorDate: Sat Feb 16 15:58:55 2019 +0000
4 Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 16 16:01:09 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ec0cf769
7
8 net-analyzer/nagios-plugins: remove old "unused" ebuilds.
9
10 Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org>
11 Package-Manager: Portage-2.3.51, Repoman-2.3.11
12
13 net-analyzer/nagios-plugins/Manifest | 1 -
14 .../nagios-plugins/nagios-plugins-2.0.3-r2.ebuild | 97 -----------------
15 .../nagios-plugins/nagios-plugins-2.2.1-r2.ebuild | 118 ---------------------
16 3 files changed, 216 deletions(-)
17
18 diff --git a/net-analyzer/nagios-plugins/Manifest b/net-analyzer/nagios-plugins/Manifest
19 index 5495ce352bc..325cb951dd7 100644
20 --- a/net-analyzer/nagios-plugins/Manifest
21 +++ b/net-analyzer/nagios-plugins/Manifest
22 @@ -1,2 +1 @@
23 -DIST nagios-plugins-2.0.3.tar.gz 2659772 BLAKE2B d4deccf04458daccde5fbe7e6c659282d36fec69096e6b1b8487455db0089f7a5073ce14ef6a74f82869de08ad740b0d3b617d691c85b8895e475302152ca33c SHA512 2753e6f3fc7433a5583fee01e63a65b9ea74155964f2b6e6bf3458e56cb29ea5dbd020f83816044a717b66d6548d203b3a082fba0faedcd629c7a8457bc19b36
24 DIST nagios-plugins-2.2.1.tar.gz 2728818 BLAKE2B ea89862935491d9c31403a36712d39557fa8e90dc2306e027531e974933cd13cc6b55ebfdd7dfc7541d6458741aaf57714df57fdddc92049001a59f0ffb6413a SHA512 6ffe313a56a305b382f62abc0f0958d7078f9050e1340f30721d6e6f71944b57b1650e90e6835c35dd7c9f3f4b4cee9f235b8382b0811db30b3729daaafc9bc3
25
26 diff --git a/net-analyzer/nagios-plugins/nagios-plugins-2.0.3-r2.ebuild b/net-analyzer/nagios-plugins/nagios-plugins-2.0.3-r2.ebuild
27 deleted file mode 100644
28 index e5022388456..00000000000
29 --- a/net-analyzer/nagios-plugins/nagios-plugins-2.0.3-r2.ebuild
30 +++ /dev/null
31 @@ -1,97 +0,0 @@
32 -# Copyright 1999-2015 Gentoo Foundation
33 -# Distributed under the terms of the GNU General Public License v2
34 -
35 -EAPI=5
36 -
37 -inherit eutils multilib user
38 -
39 -DESCRIPTION="Official set of plugins for Nagios"
40 -HOMEPAGE="http://nagios-plugins.org/"
41 -SRC_URI="http://nagios-plugins.org/download/${P}.tar.gz"
42 -
43 -LICENSE="GPL-2"
44 -SLOT="0"
45 -KEYWORDS="alpha amd64 ~arm ~arm64 hppa ppc ppc64 sparc x86"
46 -IUSE="ipv6 ldap mysql nagios-dns nagios-ping nagios-game postgres samba snmp ssh +ssl"
47 -
48 -# Most of the plugins use automagic dependencies, i.e. the plugin will
49 -# get built if the binary it uses is installed. For example, check_snmp
50 -# will be built only if snmpget from net-analyzer/net-snmp[-minimal] is
51 -# installed. End result: most of our runtime dependencies are required
52 -# at build time as well.
53 -#
54 -# REAL_DEPEND contains the dependencies that are actually needed to
55 -# build. DEPEND contains those plus the automagic dependencies.
56 -#
57 -REAL_DEPEND="dev-lang/perl
58 - ldap? ( net-nds/openldap )
59 - mysql? ( virtual/mysql )
60 - postgres? ( dev-db/postgresql:* )
61 - ssl? ( dev-libs/openssl:0 )"
62 -
63 -DEPEND="${REAL_DEPEND}
64 - nagios-dns? ( net-dns/bind-tools )
65 - nagios-game? ( games-util/qstat )
66 - nagios-ping? ( net-analyzer/fping )
67 - samba? ( net-fs/samba )
68 - ssh? ( net-misc/openssh )
69 - snmp? ( dev-perl/Net-SNMP
70 - net-analyzer/net-snmp[-minimal] )"
71 -
72 -# Basically everything collides with nagios-plugins.
73 -RDEPEND="${DEPEND}
74 - !net-analyzer/monitoring-plugins"
75 -
76 -# At least one test is interactive.
77 -RESTRICT="test"
78 -
79 -src_prepare() {
80 - # Fix the path to our perl interpreter
81 - sed -i -e "1s:/usr/local/bin/perl:/usr/bin/perl:" \
82 - "${S}"/plugins-scripts/*.pl || die
83 -}
84 -
85 -src_configure() {
86 - # Use an array to prevent econf from mangling the ping args.
87 - local myconf=()
88 -
89 - if use ssl; then
90 - myconf+=( $(use_with ssl openssl /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 -n -U -w %d -c %d %s" )
99 -
100 - if use ipv6; then
101 - myconf+=( --with-ping6-command="/bin/ping6 -n -U -w %d -c %d %s" )
102 - fi
103 -
104 - econf \
105 - $(use_with mysql) \
106 - $(use_with ipv6) \
107 - $(use_with ldap) \
108 - $(use_with postgres pgsql /usr) \
109 - "${myconf[@]}" \
110 - --libexecdir="/usr/$(get_libdir)/nagios/plugins" \
111 - --sysconfdir="/etc/nagios"
112 -}
113 -
114 -DOCS=( ACKNOWLEDGEMENTS AUTHORS CODING ChangeLog FAQ \
115 - NEWS README REQUIREMENTS SUPPORT THANKS )
116 -
117 -pkg_preinst() {
118 - enewgroup nagios
119 - enewuser nagios -1 /bin/bash /var/nagios/home nagios
120 -}
121 -
122 -pkg_postinst() {
123 - elog "This ebuild has a number of USE flags that determine what you"
124 - elog "are able to monitor. Depending on what you want to monitor, some"
125 - elog "or all of these USE flags need to be set."
126 - elog
127 - elog "The plugins are installed in ${ROOT}usr/$(get_libdir)/nagios/plugins"
128 -}
129
130 diff --git a/net-analyzer/nagios-plugins/nagios-plugins-2.2.1-r2.ebuild b/net-analyzer/nagios-plugins/nagios-plugins-2.2.1-r2.ebuild
131 deleted file mode 100644
132 index 70bc775d0c4..00000000000
133 --- a/net-analyzer/nagios-plugins/nagios-plugins-2.2.1-r2.ebuild
134 +++ /dev/null
135 @@ -1,118 +0,0 @@
136 -# Copyright 1999-2018 Gentoo Foundation
137 -# Distributed under the terms of the GNU General Public License v2
138 -
139 -EAPI=6
140 -
141 -inherit user
142 -
143 -DESCRIPTION="Official plugins for Nagios"
144 -HOMEPAGE="http://nagios-plugins.org/"
145 -SRC_URI="http://nagios-plugins.org/download/${P}.tar.gz"
146 -
147 -LICENSE="GPL-2"
148 -SLOT="0"
149 -KEYWORDS="alpha amd64 ~arm ~arm64 ~hppa ppc ppc64 sparc x86"
150 -IUSE="ipv6 ldap libressl mysql nagios-dns nagios-ping nagios-game postgres radius samba selinux snmp ssh +ssl"
151 -
152 -# Most of the plugins use automagic dependencies, i.e. the plugin will
153 -# get built if the binary it uses is installed. For example, check_snmp
154 -# will be built only if snmpget from net-analyzer/net-snmp[-minimal] is
155 -# installed. End result: most of our runtime dependencies are required
156 -# at build time as well.
157 -#
158 -# REAL_DEPEND contains the dependencies that are actually needed to
159 -# build. DEPEND contains those plus the automagic dependencies.
160 -#
161 -REAL_DEPEND="dev-lang/perl
162 - ldap? ( net-nds/openldap )
163 - mysql? ( virtual/mysql )
164 - postgres? ( dev-db/postgresql:* )
165 - ssl? (
166 - !libressl? ( dev-libs/openssl:0 )
167 - libressl? ( dev-libs/libressl )
168 - )
169 - radius? ( net-dialup/freeradius-client )"
170 -
171 -DEPEND="${REAL_DEPEND}
172 - nagios-dns? ( net-dns/bind-tools )
173 - nagios-game? ( games-util/qstat )
174 - nagios-ping? ( net-analyzer/fping )
175 - samba? ( net-fs/samba )
176 - ssh? ( net-misc/openssh )
177 - snmp? ( dev-perl/Net-SNMP
178 - net-analyzer/net-snmp[-minimal] )"
179 -
180 -# Basically everything collides with nagios-plugins.
181 -RDEPEND="${DEPEND}
182 - !net-analyzer/monitoring-plugins
183 - selinux? ( sec-policy/selinux-nagios )"
184 -
185 -# At least one test is interactive.
186 -RESTRICT="test"
187 -
188 -DOCS=(
189 - ACKNOWLEDGEMENTS
190 - AUTHORS
191 - CODING
192 - ChangeLog
193 - FAQ
194 - NEWS
195 - README
196 - REQUIREMENTS
197 - SUPPORT
198 - THANKS
199 -)
200 -
201 -PATCHES=( "${FILESDIR}/define-own-mysql-port-constant.patch" )
202 -
203 -src_prepare() {
204 - default
205 -
206 - # Fix the path to our perl interpreter
207 - sed -i -e "1s:/usr/local/bin/perl:/usr/bin/perl:" \
208 - "${S}"/plugins-scripts/*.pl \
209 - || die 'failed to fix perl interpreter path'
210 -}
211 -
212 -src_configure() {
213 - # Use an array to prevent econf from mangling the ping args.
214 - local myconf=()
215 -
216 - if use ssl; then
217 - myconf+=( $(use_with ssl openssl /usr) )
218 - else
219 - myconf+=( --without-openssl )
220 - myconf+=( --without-gnutls )
221 - fi
222 -
223 - # The autodetection for these two commands can hang if localhost is
224 - # down or ICMP traffic is filtered. Bug #468296.
225 - myconf+=( --with-ping-command="/bin/ping -n -U -w %d -c %d %s" )
226 -
227 - if use ipv6; then
228 - myconf+=( --with-ping6-command="/bin/ping6 -n -U -w %d -c %d %s" )
229 - fi
230 -
231 - econf \
232 - $(use_with mysql) \
233 - $(use_with ipv6) \
234 - $(use_with ldap) \
235 - $(use_with postgres pgsql /usr) \
236 - $(use_with radius) \
237 - "${myconf[@]}" \
238 - --libexecdir="/usr/$(get_libdir)/nagios/plugins" \
239 - --sysconfdir="/etc/nagios"
240 -}
241 -
242 -pkg_preinst() {
243 - enewgroup nagios
244 - enewuser nagios -1 /bin/bash /var/nagios/home nagios
245 -}
246 -
247 -pkg_postinst() {
248 - elog "This ebuild has a number of USE flags that determine what you"
249 - elog "are able to monitor. Depending on what you want to monitor, some"
250 - elog "or all of these USE flags need to be set."
251 - elog
252 - elog "The plugins are installed in ${ROOT}usr/$(get_libdir)/nagios/plugins"
253 -}