Gentoo Archives: gentoo-commits

From: "Tobias Scherbaum (dertobi123)" <dertobi123@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-analyzer/nagios-plugins: ChangeLog nagios-plugins-1.4.11-r102.ebuild
Date: Sun, 27 Apr 2008 18:25:10
Message-Id: E1JqBYh-0005M6-9z@stork.gentoo.org
1 dertobi123 08/04/27 18:25:07
2
3 Modified: ChangeLog
4 Added: nagios-plugins-1.4.11-r102.ebuild
5 Log:
6 bump for nagios-3
7 (Portage version: 2.1.5_rc6)
8
9 Revision Changes Path
10 1.88 net-analyzer/nagios-plugins/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/nagios-plugins/ChangeLog?rev=1.88&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/nagios-plugins/ChangeLog?rev=1.88&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/nagios-plugins/ChangeLog?r1=1.87&r2=1.88
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-analyzer/nagios-plugins/ChangeLog,v
19 retrieving revision 1.87
20 retrieving revision 1.88
21 diff -u -r1.87 -r1.88
22 --- ChangeLog 27 Apr 2008 17:52:45 -0000 1.87
23 +++ ChangeLog 27 Apr 2008 18:25:06 -0000 1.88
24 @@ -1,6 +1,12 @@
25 # ChangeLog for net-analyzer/nagios-plugins
26 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-plugins/ChangeLog,v 1.87 2008/04/27 17:52:45 dertobi123 Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-plugins/ChangeLog,v 1.88 2008/04/27 18:25:06 dertobi123 Exp $
29 +
30 +*nagios-plugins-1.4.11-r102 (27 Apr 2008)
31 +
32 + 27 Apr 2008; Tobias Scherbaum <dertobi123@g.o>
33 + +nagios-plugins-1.4.11-r102.ebuild:
34 + bump for nagios-3
35
36 *nagios-plugins-1.4.11-r1 (27 Apr 2008)
37
38
39
40
41 1.1 net-analyzer/nagios-plugins/nagios-plugins-1.4.11-r102.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/nagios-plugins/nagios-plugins-1.4.11-r102.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/nagios-plugins/nagios-plugins-1.4.11-r102.ebuild?rev=1.1&content-type=text/plain
45
46 Index: nagios-plugins-1.4.11-r102.ebuild
47 ===================================================================
48 # Copyright 1999-2008 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-plugins/nagios-plugins-1.4.11-r102.ebuild,v 1.1 2008/04/27 18:25:06 dertobi123 Exp $
51
52 WANT_AUTOCONF="latest"
53 WANT_AUTOMAKE="latest"
54
55 inherit eutils autotools
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 ~ppc ~ppc64 ~sparc ~x86"
64 IUSE="ssl samba mysql postgres ldap snmp nagios-dns nagios-ntp nagios-ping
65 nagios-ssh nagios-game ups ipv6 radius"
66
67 DEPEND="ldap? ( >=net-nds/openldap-2.0.25 )
68 mysql? ( virtual/mysql )
69 postgres? ( >=dev-db/postgresql-7.2 )
70 ssl? ( >=dev-libs/openssl-0.9.6g )
71 radius? ( >=net-dialup/radiusclient-0.3.2 )"
72
73 RESTRICT="test"
74
75 RDEPEND="${DEPEND}
76 >=dev-lang/perl-5.6.1-r7
77 samba? ( >=net-fs/samba-2.2.5-r1 )
78 snmp? ( >=dev-perl/Net-SNMP-4.0.1-r1
79 >=net-analyzer/net-snmp-5.0.6
80 )
81 mysql? ( dev-perl/DBI
82 dev-perl/DBD-mysql )
83 nagios-dns? ( >=net-dns/bind-tools-9.2.2_rc1 )
84 nagios-ntp? ( >=net-misc/ntp-4.1.1a )
85 nagios-ping? ( >=net-analyzer/fping-2.4_beta2-r1 )
86 nagios-ssh? ( >=net-misc/openssh-3.5_p1 )
87 ups? ( >=sys-power/nut-1.4 )
88 !sparc? ( nagios-game? ( >=games-util/qstat-2.6 ) )"
89
90 pkg_setup() {
91 enewgroup nagios
92 enewuser nagios -1 /bin/bash /var/nagios/home nagios
93 }
94
95 src_unpack() {
96 unpack ${A}
97 cd "${S}"
98
99 if ! use radius; then
100 EPATCH_OPTS="-p1 -d ${S}" epatch \
101 "${FILESDIR}"/nagios-plugins-1.4.10-noradius.patch
102 fi
103
104 epatch "${FILESDIR}"/${PN}-1.4.10-contrib.patch
105 epatch "${FILESDIR}"/${P}-autoconf-2.62.patch
106
107 AT_M4DIR="m4 gl/m4" eautoreconf
108 }
109
110 src_compile() {
111
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 econf \
120 $(use_with mysql) \
121 $(use_with postgres) \
122 $(use_with ipv6) \
123 ${conf} \
124 --host=${CHOST} \
125 --prefix=/usr \
126 --libexecdir=/usr/$(get_libdir)/nagios/plugins \
127 --sysconfdir=/etc/nagios || die "econf failed"
128
129 # fix problem with additional -
130 sed -i -e 's:/bin/ps -axwo:/bin/ps axwo:g' config.h || die "sed failed"
131
132 emake || die "emake failed"
133 }
134
135 src_install() {
136 mv "${S}"/contrib/check_compaq_insight.pl "${S}"/contrib/check_compaq_insight.pl.msg
137 chmod +x "${S}"/contrib/*.pl
138
139 sed -i -e '1s;#!.*;#!/usr/bin/perl -w;' "${S}"/contrib/*.pl || die "sed failed"
140 sed -i -e '30s/use lib utils.pm;/use utils;/' \
141 "${S}"/plugins-scripts/check_file_age.pl || die "sed failed"
142
143 dodoc ABOUT-NLS ACKNOWLEDGEMENTS AUTHORS BUGS CODING \
144 ChangeLog FAQ NEWS README REQUIREMENTS SUPPORT THANKS
145
146 emake DESTDIR="${D}" install || die "make install failed"
147
148 if use mysql || use postgres; then
149 dodir /usr/$(get_libdir)/nagios/plugins
150 exeinto /usr/$(get_libdir)/nagios/plugins
151 doexe "${S}"/contrib/check_nagios_db.pl
152 fi
153
154 mv "${S}"/contrib "${D}"/usr/$(get_libdir)/nagios/plugins/contrib
155
156 chown -R root:nagios "${D}"/usr/$(get_libdir)/nagios/plugins \
157 || die "Failed chown of ${D}usr/$(get_libdir)/nagios/plugins"
158
159 chmod -R o-rwx "${D}"/usr/$(get_libdir)/nagios/plugins \
160 || die "Failed chmod of ${D}usr/$(get_libdir)/nagios/plugins"
161
162 chmod 04710 "${D}"/usr/$(get_libdir)/nagios/plugins/check_icmp \
163 || die "Failed chmod of ${D}usr/$(get_libdir)/nagios/plugins/check_icmp"
164
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/$(get_libdir)/nagios/plugins/contrib"
173 }
174
175
176
177 --
178 gentoo-commits@l.g.o mailing list