1 |
idl0r 12/07/31 21:53:01 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: nagios-plugins-1.4.16.ebuild |
5 |
Log: |
6 |
Non-maitainer bump, fixes bug 428560, bug 411497 and bug 366403. |
7 |
|
8 |
(Portage version: 2.2.0_alpha120/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.145 net-analyzer/nagios-plugins/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nagios-plugins/ChangeLog?rev=1.145&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nagios-plugins/ChangeLog?rev=1.145&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nagios-plugins/ChangeLog?r1=1.144&r2=1.145 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/net-analyzer/nagios-plugins/ChangeLog,v |
20 |
retrieving revision 1.144 |
21 |
retrieving revision 1.145 |
22 |
diff -u -r1.144 -r1.145 |
23 |
--- ChangeLog 12 Jun 2012 02:44:29 -0000 1.144 |
24 |
+++ ChangeLog 31 Jul 2012 21:53:01 -0000 1.145 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for net-analyzer/nagios-plugins |
27 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-plugins/ChangeLog,v 1.144 2012/06/12 02:44:29 zmedico Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-plugins/ChangeLog,v 1.145 2012/07/31 21:53:01 idl0r Exp $ |
30 |
+ |
31 |
+*nagios-plugins-1.4.16 (31 Jul 2012) |
32 |
+ |
33 |
+ 31 Jul 2012; Christian Ruppert <idl0r@g.o> |
34 |
+ +nagios-plugins-1.4.16.ebuild, +files/nagios-plugins-1.4.16-contrib.patch: |
35 |
+ Non-maitainer bump, fixes bug 428560, bug 411497 and bug 366403. |
36 |
|
37 |
12 Jun 2012; Zac Medico <zmedico@g.o> nagios-plugins-1.4.14-r2.ebuild, |
38 |
nagios-plugins-1.4.14.ebuild, nagios-plugins-1.4.15.ebuild: |
39 |
|
40 |
|
41 |
|
42 |
1.1 net-analyzer/nagios-plugins/nagios-plugins-1.4.16.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nagios-plugins/nagios-plugins-1.4.16.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nagios-plugins/nagios-plugins-1.4.16.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: nagios-plugins-1.4.16.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2012 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-1.4.16.ebuild,v 1.1 2012/07/31 21:53:01 idl0r Exp $ |
52 |
|
53 |
EAPI=4 |
54 |
|
55 |
inherit autotools eutils multilib user |
56 |
|
57 |
DESCRIPTION="Nagios $PV plugins - Pack of plugins to make Nagios work properly" |
58 |
HOMEPAGE="http://www.nagios.org/" |
59 |
SRC_URI="mirror://sourceforge/nagiosplug/${P}.tar.gz" |
60 |
|
61 |
LICENSE="GPL-2" |
62 |
SLOT="0" |
63 |
KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86" |
64 |
IUSE="+ssl samba mysql postgres ldap snmp nagios-dns nagios-ntp nagios-ping nagios-ssh nagios-game ups ipv6 radius +suid jabber" |
65 |
|
66 |
DEPEND="ldap? ( >=net-nds/openldap-2.0.25 ) |
67 |
mysql? ( virtual/mysql ) |
68 |
postgres? ( dev-db/postgresql-base ) |
69 |
ssl? ( >=dev-libs/openssl-0.9.6g ) |
70 |
radius? ( >=net-dialup/radiusclient-0.3.2 )" |
71 |
|
72 |
RESTRICT="test" |
73 |
|
74 |
RDEPEND="${DEPEND} |
75 |
>=dev-lang/perl-5.6.1-r7 |
76 |
samba? ( >=net-fs/samba-2.2.5-r1 ) |
77 |
snmp? ( >=dev-perl/Net-SNMP-4.0.1-r1 |
78 |
>=net-analyzer/net-snmp-5.0.6 |
79 |
) |
80 |
mysql? ( dev-perl/DBI |
81 |
dev-perl/DBD-mysql ) |
82 |
nagios-dns? ( >=net-dns/bind-tools-9.2.2_rc1 ) |
83 |
nagios-ntp? ( >=net-misc/ntp-4.1.1a ) |
84 |
nagios-ping? ( >=net-analyzer/fping-2.4_beta2-r1 ) |
85 |
nagios-ssh? ( >=net-misc/openssh-3.5_p1 ) |
86 |
ups? ( >=sys-power/nut-1.4 ) |
87 |
!sparc? ( nagios-game? ( >=games-util/qstat-2.6 ) ) |
88 |
jabber? ( >=dev-perl/Net-Jabber-2.0 )" |
89 |
|
90 |
pkg_setup() { |
91 |
enewgroup nagios |
92 |
enewuser nagios -1 /bin/bash /var/nagios/home nagios |
93 |
} |
94 |
|
95 |
src_prepare() { |
96 |
if ! use radius; then |
97 |
EPATCH_OPTS="-p1 -d ${S}" epatch \ |
98 |
"${FILESDIR}"/nagios-plugins-1.4.10-noradius.patch |
99 |
fi |
100 |
|
101 |
# bug 366403 |
102 |
epatch "${FILESDIR}"/${P}-contrib.patch |
103 |
|
104 |
epatch "${FILESDIR}"/${PN}-1.4.12-pgsqlconfigure.patch |
105 |
epatch "${FILESDIR}"/${PN}-1.4.15-vserver.patch |
106 |
epatch "${FILESDIR}"/${PN}-1.4.15-openldap.patch |
107 |
|
108 |
eautoreconf |
109 |
} |
110 |
|
111 |
src_configure() { |
112 |
local conf |
113 |
if use ssl; then |
114 |
conf="${conf} --with-openssl=/usr" |
115 |
else |
116 |
conf="${conf} --without-openssl" |
117 |
fi |
118 |
|
119 |
if use postgres; then |
120 |
conf="${conf} --with-pgsql=/usr" |
121 |
fi |
122 |
|
123 |
econf \ |
124 |
$(use_with mysql) \ |
125 |
$(use_with ipv6) \ |
126 |
$(use_with ldap) \ |
127 |
${conf} \ |
128 |
--host=${CHOST} \ |
129 |
--prefix=/usr \ |
130 |
--libexecdir=/usr/$(get_libdir)/nagios/plugins \ |
131 |
--sysconfdir=/etc/nagios || die "econf failed" |
132 |
|
133 |
# fix problem with additional - |
134 |
sed -i -e 's:/bin/ps -axwo:/bin/ps axwo:g' config.h || die "sed failed" |
135 |
} |
136 |
|
137 |
src_install() { |
138 |
mv "${S}"/contrib/check_compaq_insight.pl "${S}"/contrib/check_compaq_insight.pl.msg |
139 |
chmod +x "${S}"/contrib/*.pl |
140 |
|
141 |
sed -i -e '1s;#!.*;#!/usr/bin/perl -w;' "${S}"/contrib/*.pl || die "sed failed" |
142 |
sed -i -e s#/usr/nagios/libexec#/usr/$(get_libdir)/nagios/plugins#g "${S}"/contrib/*.pl || die "sed failed" |
143 |
sed -i -e '30s/use lib utils.pm;/use utils;/' \ |
144 |
"${S}"/plugins-scripts/check_file_age.pl || die "sed failed" |
145 |
|
146 |
dodoc ACKNOWLEDGEMENTS AUTHORS BUGS CODING \ |
147 |
ChangeLog FAQ NEWS README REQUIREMENTS SUPPORT THANKS |
148 |
|
149 |
emake DESTDIR="${D}" install || die "make install failed" |
150 |
|
151 |
if use mysql || use postgres; then |
152 |
dodir /usr/$(get_libdir)/nagios/plugins |
153 |
exeinto /usr/$(get_libdir)/nagios/plugins |
154 |
doexe "${S}"/contrib/check_nagios_db.pl |
155 |
fi |
156 |
|
157 |
if ! use snmp; then |
158 |
rm "${D}"/usr/$(get_libdir)/nagios/plugins/check_if{operstatus,status} \ |
159 |
|| die "Failed to remove SNMP check plugins" |
160 |
fi |
161 |
|
162 |
mv "${S}"/contrib "${D}"/usr/$(get_libdir)/nagios/plugins/contrib |
163 |
|
164 |
if ! use jabber; then |
165 |
rm "${D}"usr/$(get_libdir)/nagios/plugins/contrib/nagios_sendim.pl \ |
166 |
|| die "Failed to remove XMPP notification addon" |
167 |
fi |
168 |
|
169 |
chown -R root:nagios "${D}"/usr/$(get_libdir)/nagios/plugins \ |
170 |
|| die "Failed chown of ${D}usr/$(get_libdir)/nagios/plugins" |
171 |
|
172 |
chmod -R o-rwx "${D}"/usr/$(get_libdir)/nagios/plugins \ |
173 |
|| die "Failed chmod of ${D}usr/$(get_libdir)/nagios/plugins" |
174 |
|
175 |
if use suid ; then |
176 |
|
177 |
chmod 04710 "${D}"/usr/$(get_libdir)/nagios/plugins/{check_icmp,check_ide_smart,check_dhcp} \ |
178 |
|| die "Failed setting the suid bit for various plugins" |
179 |
fi |
180 |
|
181 |
dosym /usr/$(get_libdir)/nagios/plugins/utils.sh /usr/$(get_libdir)/nagios/plugins/contrib/utils.sh |
182 |
dosym /usr/$(get_libdir)/nagios/plugins/utils.pm /usr/$(get_libdir)/nagios/plugins/contrib/utils.pm |
183 |
} |
184 |
|
185 |
pkg_postinst() { |
186 |
einfo "This ebuild has a number of USE flags which determines what nagios is able to monitor." |
187 |
einfo "Depending on what you want to monitor with nagios, some or all of these USE" |
188 |
einfo "flags need to be set for nagios to function correctly." |
189 |
echo |
190 |
einfo "contrib plugins are installed into /usr/$(get_libdir)/nagios/plugins/contrib" |
191 |
} |