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, 15 Nov 2017 02:17:02
Message-Id: 1510712136.0596d25a6519eea0fcf46b33305488b69ee2f6d7.mjo@gentoo
1 commit: 0596d25a6519eea0fcf46b33305488b69ee2f6d7
2 Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
3 AuthorDate: Wed Nov 15 02:15:36 2017 +0000
4 Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
5 CommitDate: Wed Nov 15 02:15:36 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0596d25a
7
8 net-analyzer/nagios-plugins: remove unused nagios-plugins-2.2.1.ebuild.
9
10 Package-Manager: Portage-2.3.8, Repoman-2.3.3
11
12 .../nagios-plugins/nagios-plugins-2.2.1.ebuild | 114 ---------------------
13 1 file changed, 114 deletions(-)
14
15 diff --git a/net-analyzer/nagios-plugins/nagios-plugins-2.2.1.ebuild b/net-analyzer/nagios-plugins/nagios-plugins-2.2.1.ebuild
16 deleted file mode 100644
17 index 25ec7dd32f3..00000000000
18 --- a/net-analyzer/nagios-plugins/nagios-plugins-2.2.1.ebuild
19 +++ /dev/null
20 @@ -1,114 +0,0 @@
21 -# Copyright 1999-2017 Gentoo Foundation
22 -# Distributed under the terms of the GNU General Public License v2
23 -
24 -EAPI=6
25 -
26 -inherit user
27 -
28 -DESCRIPTION="Official plugins for Nagios"
29 -HOMEPAGE="http://nagios-plugins.org/"
30 -SRC_URI="http://nagios-plugins.org/download/${P}.tar.gz"
31 -
32 -LICENSE="GPL-2"
33 -SLOT="0"
34 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
35 -IUSE="ipv6 ldap libressl mysql nagios-dns nagios-ping nagios-game postgres samba selinux 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 - ldap? ( net-nds/openldap )
48 - mysql? ( virtual/mysql )
49 - postgres? ( dev-db/postgresql:* )
50 - ssl? (
51 - !libressl? ( dev-libs/openssl:0 )
52 - libressl? ( dev-libs/libressl )
53 - )"
54 -
55 -DEPEND="${REAL_DEPEND}
56 - nagios-dns? ( net-dns/bind-tools )
57 - nagios-game? ( games-util/qstat )
58 - nagios-ping? ( net-analyzer/fping )
59 - samba? ( net-fs/samba )
60 - ssh? ( net-misc/openssh )
61 - snmp? ( dev-perl/Net-SNMP
62 - net-analyzer/net-snmp[-minimal] )"
63 -
64 -# Basically everything collides with nagios-plugins.
65 -RDEPEND="${DEPEND}
66 - !net-analyzer/monitoring-plugins
67 - selinux? ( sec-policy/selinux-nagios )"
68 -
69 -# At least one test is interactive.
70 -RESTRICT="test"
71 -
72 -DOCS=(
73 - ACKNOWLEDGEMENTS
74 - AUTHORS
75 - CODING
76 - ChangeLog
77 - FAQ
78 - NEWS
79 - README
80 - REQUIREMENTS
81 - SUPPORT
82 - THANKS
83 -)
84 -
85 -src_prepare() {
86 - default
87 -
88 - # Fix the path to our perl interpreter
89 - sed -i -e "1s:/usr/local/bin/perl:/usr/bin/perl:" \
90 - "${S}"/plugins-scripts/*.pl \
91 - || die 'failed to fix perl interpreter path'
92 -}
93 -
94 -src_configure() {
95 - # Use an array to prevent econf from mangling the ping args.
96 - local myconf=()
97 -
98 - if use ssl; then
99 - myconf+=( $(use_with ssl openssl /usr) )
100 - else
101 - myconf+=( --without-openssl )
102 - myconf+=( --without-gnutls )
103 - fi
104 -
105 - # The autodetection for these two commands can hang if localhost is
106 - # down or ICMP traffic is filtered. Bug #468296.
107 - myconf+=( --with-ping-command="/bin/ping -n -U -w %d -c %d %s" )
108 -
109 - if use ipv6; then
110 - myconf+=( --with-ping6-command="/bin/ping6 -n -U -w %d -c %d %s" )
111 - fi
112 -
113 - econf \
114 - $(use_with mysql) \
115 - $(use_with ipv6) \
116 - $(use_with ldap) \
117 - $(use_with postgres pgsql /usr) \
118 - "${myconf[@]}" \
119 - --libexecdir="/usr/$(get_libdir)/nagios/plugins" \
120 - --sysconfdir="/etc/nagios"
121 -}
122 -
123 -pkg_preinst() {
124 - enewgroup nagios
125 - enewuser nagios -1 /bin/bash /var/nagios/home nagios
126 -}
127 -
128 -pkg_postinst() {
129 - elog "This ebuild has a number of USE flags that determine what you"
130 - elog "are able to monitor. Depending on what you want to monitor, some"
131 - elog "or all of these USE flags need to be set."
132 - elog
133 - elog "The plugins are installed in ${ROOT}usr/$(get_libdir)/nagios/plugins"
134 -}