/[gentoo-x86]/net-analyzer/pnp4nagios/pnp4nagios-0.6.14.ebuild
Gentoo

Contents of /net-analyzer/pnp4nagios/pnp4nagios-0.6.14.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Sat May 11 13:43:34 2013 UTC (14 months, 2 weeks ago) by idl0r
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +1 -1 lines
FILE REMOVED
Version bump. Remove old versions.

(Portage version: 2.1.11.62/cvs/Linux x86_64, signed Manifest commit with key B427ABC8)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-analyzer/pnp4nagios/pnp4nagios-0.6.14.ebuild,v 1.6 2012/06/18 10:32:43 ago Exp $
4
5 EAPI="2"
6
7 inherit depend.apache eutils
8
9 DESCRIPTION="A performance data analyzer for nagios"
10 HOMEPAGE="http://www.pnp4nagios.org"
11
12 SRC_URI="mirror://sourceforge/${PN}/PNP-0.6/${P}.tar.gz"
13
14 LICENSE="GPL-2"
15 SLOT="0"
16 IUSE=""
17 KEYWORDS="amd64 ppc ppc64 ~sparc x86"
18
19 DEPEND="dev-lang/php[json,simplexml,zlib,xml,filter]
20 || ( <dev-lang/php-5.3[pcre,reflection,spl] >=dev-lang/php-5.3 )
21 || ( >=dev-lang/php-4.3[gd-external] >=dev-lang/php-4.3[gd] )
22 >=net-analyzer/rrdtool-1.2
23 net-analyzer/nagios-core"
24 RDEPEND="${DEPEND}
25 virtual/perl-Getopt-Long
26 virtual/perl-Time-HiRes
27 media-fonts/dejavu
28 apache2? ( www-servers/apache[apache2_modules_rewrite] )"
29
30 want_apache2
31
32 pkg_setup() {
33 depend.apache_pkg_setup
34 }
35
36 src_prepare() {
37 epatch "${FILESDIR}"/${P}-makefile.patch
38 }
39
40 src_configure() {
41 econf \
42 --sysconfdir=/etc/pnp \
43 --datarootdir=/usr/share/pnp \
44 --mandir=/usr/share/man \
45 --with-perfdata-dir=/var/nagios/perfdata \
46 --with-perfdata-spool-dir=/var/spool/pnp
47 }
48
49 src_compile() {
50 emake all || die "emake failed"
51 }
52
53 src_install() {
54 emake DESTDIR="${D}" install install-config || die "emake install failed"
55 doinitd "${FILESDIR}/npcd"
56 rm "${D}/usr/share/pnp/install.php"
57
58 if use apache2 ; then
59 insinto "${APACHE_MODULES_CONFDIR}"
60 doins "${FILESDIR}"/98_pnp4nagios.conf
61 fi
62 }
63
64 pkg_postinst() {
65 elog "Please make sure to enable URL rewriting in Apache or any other"
66 elog "webserver you're using, to get pnp4nagios running!"
67 }

  ViewVC Help
Powered by ViewVC 1.1.20