1 |
mjo 14/11/26 02:04:33 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: nagios-plugins-2.0.3-r1.ebuild |
5 |
Log: |
6 |
Revbump to fix bug #468296 and bug #481926. |
7 |
|
8 |
(Portage version: 2.2.8-r2/cvs/Linux x86_64, signed Manifest commit with key 0x6F48D3DA05C2DADB!) |
9 |
|
10 |
Revision Changes Path |
11 |
1.169 net-analyzer/nagios-plugins/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nagios-plugins/ChangeLog?rev=1.169&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nagios-plugins/ChangeLog?rev=1.169&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nagios-plugins/ChangeLog?r1=1.168&r2=1.169 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/net-analyzer/nagios-plugins/ChangeLog,v |
20 |
retrieving revision 1.168 |
21 |
retrieving revision 1.169 |
22 |
diff -u -r1.168 -r1.169 |
23 |
--- ChangeLog 22 Nov 2014 21:19:19 -0000 1.168 |
24 |
+++ ChangeLog 26 Nov 2014 02:04:33 -0000 1.169 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for net-analyzer/nagios-plugins |
27 |
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-plugins/ChangeLog,v 1.168 2014/11/22 21:19:19 mjo Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-plugins/ChangeLog,v 1.169 2014/11/26 02:04:33 mjo Exp $ |
30 |
+ |
31 |
+*nagios-plugins-2.0.3-r1 (26 Nov 2014) |
32 |
+ |
33 |
+ 26 Nov 2014; Michael Orlitzky <mjo@g.o> |
34 |
+ +nagios-plugins-2.0.3-r1.ebuild: |
35 |
+ Revbump to fix bug #468296 and bug #481926. |
36 |
|
37 |
*nagios-plugins-2.0.3 (22 Nov 2014) |
38 |
|
39 |
|
40 |
|
41 |
|
42 |
1.1 net-analyzer/nagios-plugins/nagios-plugins-2.0.3-r1.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nagios-plugins/nagios-plugins-2.0.3-r1.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nagios-plugins/nagios-plugins-2.0.3-r1.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: nagios-plugins-2.0.3-r1.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2014 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-plugins/nagios-plugins-2.0.3-r1.ebuild,v 1.1 2014/11/26 02:04:33 mjo Exp $ |
52 |
|
53 |
EAPI=5 |
54 |
|
55 |
inherit eutils multilib user |
56 |
|
57 |
DESCRIPTION="Official set of plugins for Nagios" |
58 |
HOMEPAGE="http://nagios-plugins.org/" |
59 |
SRC_URI="http://nagios-plugins.org/download/${P}.tar.gz" |
60 |
|
61 |
LICENSE="GPL-2" |
62 |
SLOT="0" |
63 |
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86" |
64 |
IUSE="ipv6 ldap mysql nagios-dns nagios-ping nagios-game postgres samba snmp ssh +ssl" |
65 |
|
66 |
# Most of the plugins use automagic dependencies, i.e. the plugin will |
67 |
# get built if the binary it uses is installed. For example, check_snmp |
68 |
# will be built only if snmpget from net-analyzer/net-snmp[-minimal] is |
69 |
# installed. End result: most of our runtime dependencies are required |
70 |
# at build time as well. |
71 |
# |
72 |
# REAL_DEPEND contains the dependencies that are actually needed to |
73 |
# build. DEPEND contains those plus the automagic dependencies. |
74 |
# |
75 |
REAL_DEPEND="dev-lang/perl |
76 |
ldap? ( net-nds/openldap ) |
77 |
mysql? ( virtual/mysql ) |
78 |
postgres? ( dev-db/postgresql-base ) |
79 |
ssl? ( dev-libs/openssl )" |
80 |
|
81 |
DEPEND="${REAL_DEPEND} |
82 |
nagios-dns? ( net-dns/bind-tools ) |
83 |
nagios-game? ( games-util/qstat ) |
84 |
nagios-ping? ( net-analyzer/fping ) |
85 |
samba? ( net-fs/samba ) |
86 |
ssh? ( net-misc/openssh ) |
87 |
snmp? ( dev-perl/Net-SNMP |
88 |
net-analyzer/net-snmp[-minimal] )" |
89 |
|
90 |
RDEPEND="${DEPEND}" |
91 |
|
92 |
# At least one test is interactive. |
93 |
RESTRICT="test" |
94 |
|
95 |
src_prepare() { |
96 |
# Fix the path to our perl interpreter |
97 |
sed -i -e "1s:/usr/local/bin/perl:${ROOT}usr/bin/perl:" \ |
98 |
"${S}"/plugins-scripts/*.pl || die |
99 |
} |
100 |
|
101 |
src_configure() { |
102 |
# Use an array to prevent econf from mangling the ping args. |
103 |
local myconf=() |
104 |
|
105 |
if use ssl; then |
106 |
myconf+=( $(use_with ssl openssl /usr) ) |
107 |
else |
108 |
myconf+=( --without-openssl ) |
109 |
myconf+=( --without-gnutls ) |
110 |
fi |
111 |
|
112 |
# The autodetection for these two commands can hang if localhost is |
113 |
# down or ICMP traffic is filtered. Bug #468296. |
114 |
myconf+=( --with-ping-command="${ROOT}bin/ping -n -U -w %d -c %d %s" ) |
115 |
|
116 |
if use ipv6; then |
117 |
myconf+=( --with-ping6-command="${ROOT}bin/ping6 -n -U -w %d -c %d %s" ) |
118 |
fi |
119 |
|
120 |
econf \ |
121 |
$(use_with mysql) \ |
122 |
$(use_with ipv6) \ |
123 |
$(use_with ldap) \ |
124 |
$(use_with postgres pgsql /usr) \ |
125 |
"${myconf[@]}" \ |
126 |
--libexecdir="${ROOT}usr/$(get_libdir)/nagios/plugins" \ |
127 |
--sysconfdir="${ROOT}etc/nagios" |
128 |
} |
129 |
|
130 |
DOCS=( ACKNOWLEDGEMENTS AUTHORS CODING ChangeLog FAQ \ |
131 |
NEWS README REQUIREMENTS SUPPORT THANKS ) |
132 |
|
133 |
pkg_preinst() { |
134 |
enewgroup nagios |
135 |
enewuser nagios -1 /bin/bash /var/nagios/home nagios |
136 |
} |
137 |
|
138 |
pkg_postinst() { |
139 |
elog "This ebuild has a number of USE flags that determine what Nagios" |
140 |
elog "is able to monitor. Depending on what you want to monitor, some" |
141 |
elog "or all of these USE flags need to be set." |
142 |
elog |
143 |
elog "The plugins are installed in ${ROOT}usr/$(get_libdir)/nagios/plugins" |
144 |
} |