/[gentoo-x86]/net-analyzer/prelude-nagios/prelude-nagios-0.0.2.ebuild
Gentoo

Contents of /net-analyzer/prelude-nagios/prelude-nagios-0.0.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (hide annotations) (download)
Thu Jun 24 22:15:55 2004 UTC (15 years, 8 months ago) by agriffis
Branch: MAIN
Changes since 1.4: +2 -2 lines
update copyright line: Gentoo Technologies => Gentoo Foundation

1 agriffis 1.5 # Copyright 1999-2004 Gentoo Foundation
2 solar 1.1 # Distributed under the terms of the GNU General Public License v2
3 agriffis 1.5 # $Header: /var/cvsroot/gentoo-x86/net-analyzer/prelude-nagios/prelude-nagios-0.0.2.ebuild,v 1.4 2004/03/20 06:37:02 mboman Exp $
4 mboman 1.4
5     inherit eutils
6 solar 1.1
7     DESCRIPTION="Plugin for Nagios to talk with Prelude"
8     HOMEPAGE="http://www.exaprobe.com/labs/downloads/index.php3?DIR=/downloads/Nagios_Plugin"
9     SRC_URI="http://www.exaprobe.com/labs/downloads/Nagios_Plugin/prelude-nagios-${PV}.tar.gz"
10     LICENSE="GPL-2"
11     SLOT="0"
12 mboman 1.3 KEYWORDS="x86"
13 solar 1.1 IUSE=""
14     DEPEND="
15 mboman 1.4 || ( dev-libs/libprelude dev-libs/libprelude-cvs )"
16     RDEPEND="${DEPEND}
17     net-analyzer/nagios-core"
18 solar 1.1
19     S=${WORKDIR}/${P}
20    
21     src_unpack() {
22     # prelude-nagios-0.0.2.tar.gz is a POSIX tar archive from exaprobe
23 msterret 1.2 # In the future I think we should to try to avoid calling
24 solar 1.1 # tar directly from ebuilds.
25    
26     # Our possible solutions.
27     # 1) email exaprobe and inform them that the .tar.gz is only a .tar
28     # 2) Repackage the tarball as a .bz2 and put it on a gentoo mirror
29 msterret 1.2
30 solar 1.1 tar xvf ${DISTDIR}/${A} -C ${WORKDIR}
31     #unpack ${A}
32     epatch ${FILESDIR}/prelude-nagios-${PV}-001.patch
33     }
34    
35     src_compile() {
36     econf || die "econf failed"
37     emake || die "emake failed"
38     }
39    
40     src_install() {
41     insinto /etc/prelude-nagios
42     doins prelude-nagios.conf
43    
44     exeinto /usr/nagios/bin
45     doexe src/prelude-nagios
46     }

  ViewVC Help
Powered by ViewVC 1.1.20