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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Tue Jun 12 02:41:55 2012 UTC (2 years, 2 months ago) by zmedico
Branch: MAIN
Changes since 1.5: +3 -3 lines
inherit user for enewgroup and enewuser, and multilib for get_libdir

(Portage version: 2.2.0_alpha110_p25/cvs/Linux i686)

1 # Copyright 1999-2012 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-r1.ebuild,v 1.5 2009/03/18 22:19:34 ranger Exp $
4
5 inherit autotools user
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 ~ppc ppc64 ~sparc 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 --prefix=/usr/nagios \
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/nagios/libexec || die "Failed Chown of ${D}usr/nagios/libexec"
45 chmod -R o-rwx "${D}"/usr/nagios/libexec || die "Failed Chmod of ${D}usr/nagios/libexec"
46
47 dodoc README NEWS AUTHORS
48
49 cat <<- EOF > "${T}"/55-nagios-plugins-snmp-revdep
50 SEARCH_DIRS="/usr/nagios/libexec"
51 EOF
52
53 insinto /etc/revdep-rebuild
54 doins "${T}"/55-nagios-plugins-snmp-revdep
55 }

  ViewVC Help
Powered by ViewVC 1.1.20