1 |
dertobi123 07/09/29 09:11:00 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: nagios-plugins-1.4.10.ebuild |
5 |
Removed: nagios-plugins-1.4.9.ebuild |
6 |
Log: |
7 |
Version bump, fix quoting, 1.4.10 fixes a buffer overflow vulnerability in its check_http plugin |
8 |
(Portage version: 2.1.3.9) |
9 |
|
10 |
Revision Changes Path |
11 |
1.70 net-analyzer/nagios-plugins/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/nagios-plugins/ChangeLog?rev=1.70&view=markup |
14 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/nagios-plugins/ChangeLog?rev=1.70&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/nagios-plugins/ChangeLog?r1=1.69&r2=1.70 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/net-analyzer/nagios-plugins/ChangeLog,v |
20 |
retrieving revision 1.69 |
21 |
retrieving revision 1.70 |
22 |
diff -u -r1.69 -r1.70 |
23 |
--- ChangeLog 30 Jun 2007 16:36:32 -0000 1.69 |
24 |
+++ ChangeLog 29 Sep 2007 09:10:59 -0000 1.70 |
25 |
@@ -1,6 +1,14 @@ |
26 |
# ChangeLog for net-analyzer/nagios-plugins |
27 |
# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-plugins/ChangeLog,v 1.69 2007/06/30 16:36:32 dertobi123 Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-plugins/ChangeLog,v 1.70 2007/09/29 09:10:59 dertobi123 Exp $ |
30 |
+ |
31 |
+*nagios-plugins-1.4.10 (29 Sep 2007) |
32 |
+ |
33 |
+ 29 Sep 2007; Tobias Scherbaum <dertobi123@g.o> |
34 |
+ +files/nagios-plugins-1.4.10-contrib.patch, -nagios-plugins-1.4.9.ebuild, |
35 |
+ +nagios-plugins-1.4.10.ebuild: |
36 |
+ Version bump, fix quoting, 1.4.10 fixes a buffer overflow vulnerability in |
37 |
+ its check_http plugin |
38 |
|
39 |
30 Jun 2007; Tobias Scherbaum <dertobi123@g.o> |
40 |
nagios-plugins-1.4.8-r1.ebuild, nagios-plugins-1.4.9.ebuild: |
41 |
|
42 |
|
43 |
|
44 |
1.1 net-analyzer/nagios-plugins/nagios-plugins-1.4.10.ebuild |
45 |
|
46 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/nagios-plugins/nagios-plugins-1.4.10.ebuild?rev=1.1&view=markup |
47 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/nagios-plugins/nagios-plugins-1.4.10.ebuild?rev=1.1&content-type=text/plain |
48 |
|
49 |
Index: nagios-plugins-1.4.10.ebuild |
50 |
=================================================================== |
51 |
# Copyright 1999-2007 Gentoo Foundation |
52 |
# Distributed under the terms of the GNU General Public License v2 |
53 |
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-plugins/nagios-plugins-1.4.10.ebuild,v 1.1 2007/09/29 09:10:59 dertobi123 Exp $ |
54 |
|
55 |
WANT_AUTOCONF="latest" |
56 |
WANT_AUTOMAKE="latest" |
57 |
|
58 |
inherit eutils autotools |
59 |
|
60 |
DESCRIPTION="Nagios $PV plugins - Pack of plugins to make Nagios work properly" |
61 |
HOMEPAGE="http://www.nagios.org/" |
62 |
SRC_URI="mirror://sourceforge/nagiosplug/${P}.tar.gz" |
63 |
|
64 |
LICENSE="GPL-2" |
65 |
SLOT="0" |
66 |
KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86" |
67 |
IUSE="ssl samba mysql postgres ldap snmp nagios-dns nagios-ntp nagios-ping |
68 |
nagios-ssh nagios-game ups ipv6 radius" |
69 |
|
70 |
DEPEND="ldap? ( >=net-nds/openldap-2.0.25 ) |
71 |
mysql? ( virtual/mysql ) |
72 |
postgres? ( >=dev-db/postgresql-7.2 ) |
73 |
ssl? ( >=dev-libs/openssl-0.9.6g ) |
74 |
radius? ( >=net-dialup/radiusclient-0.3.2 )" |
75 |
|
76 |
RESTRICT="test" |
77 |
|
78 |
RDEPEND="${DEPEND} |
79 |
>=dev-lang/perl-5.6.1-r7 |
80 |
samba? ( >=net-fs/samba-2.2.5-r1 ) |
81 |
snmp? ( >=dev-perl/Net-SNMP-4.0.1-r1 |
82 |
>=net-analyzer/net-snmp-5.0.6 |
83 |
) |
84 |
mysql? ( dev-perl/DBI |
85 |
dev-perl/DBD-mysql ) |
86 |
nagios-dns? ( >=net-dns/bind-tools-9.2.2_rc1 ) |
87 |
nagios-ntp? ( >=net-misc/ntp-4.1.1a ) |
88 |
nagios-ping? ( >=net-analyzer/fping-2.4_beta2-r1 ) |
89 |
nagios-ssh? ( >=net-misc/openssh-3.5_p1 ) |
90 |
ups? ( >=sys-power/nut-1.4 ) |
91 |
!sparc? ( nagios-game? ( >=games-util/qstat-2.6 ) )" |
92 |
|
93 |
pkg_setup() { |
94 |
enewgroup nagios |
95 |
enewuser nagios -1 /bin/bash /var/nagios/home nagios |
96 |
} |
97 |
|
98 |
src_unpack() { |
99 |
unpack ${A} |
100 |
cd "${S}" |
101 |
if ! use radius; then |
102 |
EPATCH_OPTS="-p0 -d ${S}" epatch \ |
103 |
${FILESDIR}/nagios-plugins-1.4-noradius.patch |
104 |
fi |
105 |
|
106 |
epatch ${FILESDIR}/${PN}-1.4.10-contrib.patch |
107 |
|
108 |
AT_M4DIR="m4 gl/m4" eautoreconf |
109 |
} |
110 |
|
111 |
src_compile() { |
112 |
|
113 |
local conf |
114 |
if use ssl; then |
115 |
conf="${conf} --with-openssl=/usr" |
116 |
else |
117 |
conf="${conf} --without-openssl" |
118 |
fi |
119 |
|
120 |
econf \ |
121 |
$(use_with mysql) \ |
122 |
$(use_with postgres) \ |
123 |
$(use_with ipv6) \ |
124 |
${conf} \ |
125 |
--host=${CHOST} \ |
126 |
--prefix=/usr/nagios \ |
127 |
--sysconfdir=/etc/nagios \ |
128 |
--infodir=/usr/share/info \ |
129 |
--mandir=/usr/share/man || die "econf failed" |
130 |
|
131 |
# fix problem with additional - |
132 |
sed -i -e 's:/bin/ps -axwo:/bin/ps axwo:g' config.h || die "sed failed" |
133 |
|
134 |
emake || die "emake 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 '30s/use lib utils.pm;/use utils;/' \ |
143 |
"${S}"/plugins-scripts/check_file_age.pl || die "sed failed" |
144 |
|
145 |
dodoc ABOUT-NLS ACKNOWLEDGEMENTS AUTHORS BUGS CHANGES CODING COPYING \ |
146 |
Changelog FAQ INSTALL LEGAL NEWS README REQUIREMENTS SUPPORT |
147 |
|
148 |
emake DESTDIR="${D}" install || die "make install failed" |
149 |
|
150 |
if use mysql || use postgres; then |
151 |
dodir /usr/nagios/libexec |
152 |
exeinto /usr/nagios/libexec |
153 |
doexe "${S}"/contrib/check_nagios_db.pl |
154 |
fi |
155 |
|
156 |
dodir /usr/nagios/libexec/ |
157 |
mv "${S}"/contrib "${D}"/usr/nagios/libexec/contrib |
158 |
|
159 |
chown root:nagios "${D}"/usr/nagios || die "Failed Chown of ${D}usr/nagios" |
160 |
chown -R root:nagios "${D}"/usr/nagios/libexec || die "Failed Chown of ${D}usr/nagios/libexec" |
161 |
|
162 |
chmod -R o-rwx "${D}"/usr/nagios/libexec || die "Failed Chmod of ${D}usr/nagios/libexec" |
163 |
|
164 |
chmod 04710 "${D}"/usr/nagios/libexec/check_icmp || die "Failed Chmod of ${D}usr/nagios/libexec/check_icmp" |
165 |
} |
166 |
|
167 |
pkg_postinst() { |
168 |
einfo "This ebuild has a number of USE flags which determines what nagios is able to monitor." |
169 |
einfo "Depending on what you want to monitor with nagios, some or all of these USE" |
170 |
einfo "flags need to be set for nagios to function correctly." |
171 |
echo |
172 |
einfo "contrib plugins are installed into /usr/nagios/libexec/contrib" |
173 |
} |
174 |
|
175 |
|
176 |
|
177 |
-- |
178 |
gentoo-commits@g.o mailing list |