/[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.6 - (hide annotations) (download)
Mon Aug 20 03:20:17 2012 UTC (9 months, 4 weeks ago) by flameeyes
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
Respect user cflags (bug #432016); install in the same locations as other plugins instead of inventing /usr/nagios; use EAPI=4 and default functions whenever possible.

(Portage version: 2.2.0_alpha120/cvs/Linux x86_64)

1 zmedico 1.5 # Copyright 1999-2012 Gentoo Foundation
2 dertobi123 1.1 # Distributed under the terms of the GNU General Public License v2
3 flameeyes 1.6 # $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-plugins-snmp/nagios-plugins-snmp-0.6.0.ebuild,v 1.5 2012/06/12 02:41:55 zmedico Exp $
4 dertobi123 1.1
5 zmedico 1.5 inherit autotools multilib user
6 dertobi123 1.1
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 ranger 1.4 KEYWORDS="amd64 ~ppc64 x86"
14 dertobi123 1.1 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 tove 1.2 chmod -R o-rwx "${D}"/usr/$(get_libdir)/nagios/plugins || die "Failed Chmod of ${D}usr/$(get_libdir)/nagios/plugins"
46 dertobi123 1.1
47     dodoc README NEWS AUTHORS
48     }

  ViewVC Help
Powered by ViewVC 1.1.20