| 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 |
|
|
} |