/[gentoo-x86]/net-analyzer/nagios-plugins-snmp/nagios-plugins-snmp-0.6.0.ebuild
Gentoo

Contents of /net-analyzer/nagios-plugins-snmp/nagios-plugins-snmp-0.6.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Wed Apr 15 19:50:40 2009 UTC (4 years, 1 month ago) by ranger
Branch: MAIN
Changes since 1.3: +2 -2 lines
Marking nagios-plugins-snmp-0.6.0 ~ppc64 for bug 256177
(Portage version: 2.1.6.11/cvs/Linux ppc64)

1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-plugins-snmp/nagios-plugins-snmp-0.6.0.ebuild,v 1.3 2009/04/04 14:12:21 maekke Exp $
4
5 inherit eutils autotools
6
7 DESCRIPTION="Additional Nagios plugins for monitoring SNMP capable devices"
8 HOMEPAGE="http://nagios.manubulon.com"
9 SRC_URI="http://nagios.manubulon.com/${P}.tgz"
10
11 LICENSE="GPL-2"
12 SLOT="0"
13 KEYWORDS="amd64 ~ppc64 x86"
14 IUSE=""
15
16 DEPEND="net-analyzer/net-snmp"
17 RDEPEND="${DEPEND}"
18
19 S=${WORKDIR}/nagios-plugins-snmp
20
21 pkg_setup() {
22 enewgroup nagios
23 enewuser nagios -1 /bin/bash /var/nagios/home nagios
24 }
25
26 src_unpack() {
27 unpack ${A}
28 cd "${S}"
29
30 eautoreconf
31 }
32
33 src_compile() {
34 econf \
35 --libexecdir=/usr/$(get_libdir)/nagios/plugins \
36 --sysconfdir=/etc/nagios || die "econf failed"
37
38 emake || die "emake failed"
39 }
40
41 src_install() {
42 emake DESTDIR="${D}" install || die "make install failed"
43
44 chown -R root:nagios "${D}"/usr/$(get_libdir)/nagios/plugins || die "Failed Chown of ${D}usr/$(get_libdir)/nagios/plugins"
45 chmod -R o-rwx "${D}"/usr/$(get_libdir)/nagios/plugins || die "Failed Chmod of ${D}usr/$(get_libdir)/nagios/plugins"
46
47 dodoc README NEWS AUTHORS
48 }

  ViewVC Help
Powered by ViewVC 1.1.13