blob: 2f20e4c834a13e775196e41fab6c4ee55261d206 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-nrpe/nagios-nrpe-1.5.ebuild,v 1.2 2003/02/13 13:44:03 vapier Exp $
DESCRIPTION="Nagios $PV NRPE - Nagios Remote Plugin Executor"
HOMEPAGE="http://www.nagios.org/"
SRC_URI="http://telia.dl.sourceforge.net/sourceforge/nagios/nrpe-1.5.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE=""
DEPEND=">=net-analyzer/nagios-plugins-1.3_beta1"
S="${WORKDIR}/nrpe-1.5"
src_compile() {
./configure \
--host=${CHOST} \
--prefix=/usr/nagios \
--localstatedir=/var/nagios \
--sysconfdir=/etc/nagios \
--with-nrpe-user=nagios \
--with-nrpe-grp=nagios \
--infodir=/usr/share/info \
--mandir=/usr/share/man || die "./configure failed"
emake all || die
}
src_install() {
dodoc LEGAL Changelog README
insinto /etc/nagios
doins ${FILESDIR}/nrpe.cfg
exeinto /usr/nagios/bin
doexe src/nrpe
fowners nagios:nagios /usr/nagios/bin/nrpe
exeinto /usr/nagios/libexec
doexe src/check_nrpe
fowners nagios:nagios /usr/nagios/libexec/check_nrpe
exeinto /etc/init.d
doexe ${FILESDIR}/nrpe
}
pkg_postinst() {
einfo
einfo "If you are using the nrpe daemon, remember to edit"
einfo "the config file /etc/nagios/nrpe.cfg"
einfo
}
|