| 1 |
# Copyright 1999-2008 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-nsca/nagios-nsca-2.7.2.ebuild,v 1.5 2008/03/14 11:57:19 caleb Exp $
|
| 4 |
|
| 5 |
DESCRIPTION="Nagios NSCA - Nagios Service Check Acceptor"
|
| 6 |
HOMEPAGE="http://www.nagios.org/"
|
| 7 |
SRC_URI="mirror://sourceforge/nagios/nsca-${PV}.tar.gz"
|
| 8 |
|
| 9 |
LICENSE="GPL-2"
|
| 10 |
SLOT="0"
|
| 11 |
KEYWORDS="~alpha amd64 ~ppc ppc64 sparc x86"
|
| 12 |
IUSE=""
|
| 13 |
|
| 14 |
DEPEND=">=net-analyzer/nagios-plugins-1.3.1
|
| 15 |
>=dev-libs/libmcrypt-2.5.1-r4"
|
| 16 |
S="${WORKDIR}/nsca-${PV}"
|
| 17 |
|
| 18 |
src_compile() {
|
| 19 |
./configure \
|
| 20 |
--host=${CHOST} \
|
| 21 |
--prefix=/usr/nagios \
|
| 22 |
--localstatedir=/var/nagios \
|
| 23 |
--sysconfdir=/etc/nagios \
|
| 24 |
--with-nsca-user=nagios \
|
| 25 |
--with-nsca-grp=nagios \
|
| 26 |
--infodir=/usr/share/info \
|
| 27 |
--mandir=/usr/share/man || die "./configure failed"
|
| 28 |
emake all || die "emake failed"
|
| 29 |
}
|
| 30 |
|
| 31 |
src_install() {
|
| 32 |
dodoc LEGAL Changelog README SECURITY
|
| 33 |
insinto /etc/nagios
|
| 34 |
doins "${S}"/sample-config/nsca.cfg
|
| 35 |
doins "${S}"/sample-config/send_nsca.cfg
|
| 36 |
exeinto /usr/nagios/bin
|
| 37 |
doexe src/nsca
|
| 38 |
fowners nagios:nagios /usr/nagios/bin/nsca
|
| 39 |
exeinto /usr/nagios/libexec
|
| 40 |
doexe src/send_nsca
|
| 41 |
fowners nagios:nagios /usr/nagios/libexec/send_nsca
|
| 42 |
newinitd "${FILESDIR}"/nsca nsca
|
| 43 |
}
|
| 44 |
pkg_postinst() {
|
| 45 |
einfo
|
| 46 |
einfo "If you are using the nsca daemon, remember to edit"
|
| 47 |
einfo "the config file /etc/nagios/nsca.cfg"
|
| 48 |
einfo
|
| 49 |
}
|