/[gentoo-x86]/net-analyzer/nagios-nsca/nagios-nsca-2.7.2.ebuild
Gentoo

Contents of /net-analyzer/nagios-nsca/nagios-nsca-2.7.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Sat Aug 18 00:17:19 2012 UTC (9 months ago) by flameeyes
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
Remove old; revbump and cleanup ebuild: use EAPI 4, use econf, set up the nagios user correctly, instead of depending on nagios-plugins for that; make tcpd dependency non-automagic; fix install path of send_ncsa; don't chown files that are world-executable; init script is cleaned up, uses the new runscript syntax and is safe to run on LXC hosts as well.

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

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 }

  ViewVC Help
Powered by ViewVC 1.1.13