/[gentoo-x86]/net-analyzer/nagvis/nagvis-1.4.4-r1.ebuild
Gentoo

Contents of /net-analyzer/nagvis/nagvis-1.4.4-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Fri Jun 22 20:56:51 2012 UTC (2 years, 2 months ago) by mabi
Branch: MAIN
cut dependency on depend.php.eclass, move to EAPI4

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

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/nagvis/nagvis-1.4.4.ebuild,v 1.1 2009/10/16 17:22:30 dertobi123 Exp $
4
5 EAPI=4
6
7 inherit eutils
8
9 DESCRIPTION="NagVis is a visualization addon for the well known network managment system Nagios."
10 HOMEPAGE="http://www.nagvis.org/"
11 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="~amd64 ~ppc ~x86"
16 IUSE="automap"
17
18 DEPEND=""
19 RDEPEND=">=net-analyzer/ndoutils-1.4_beta4
20 automap? ( >=media-gfx/graphviz-2.14 )
21 virtual/httpd-php
22 dev-lang/php[gd,mysql,unicode]"
23
24 src_install() {
25 for docfile in README INSTALL
26 do
27 dodoc ${docfile}
28 rm ${docfile}
29 done
30
31 grep -Rl "/usr/local" "${S}"/* | xargs sed -i s:/usr/local:/usr:g
32
33 dodir /usr/share/nagvis
34 mv "${S}"/{config.php,index.php,nagvis,wui} "${D}"/usr/share/nagvis/
35
36 dodir /var/nagvis
37 dosym /var/nagvis /usr/share/nagvis/var
38 fowners apache:root /var/nagvis
39
40 dodir /etc/nagvis
41 mv "${S}"/etc/* "${D}"/etc/nagvis/
42 dosym /etc/nagvis /usr/share/nagvis/etc
43
44 fperms 664 /etc/nagvis/nagvis.ini.php-sample
45 fperms 775 /etc/nagvis/maps
46 fperms -R 664 /etc/nagvis/maps/
47 fowners -R apache:root /etc/nagvis/maps/
48 }
49
50 pkg_postinst() {
51 elog "Before running NagVis for the first time, you will need to set up"
52 elog "/etc/nagvis/nagvis.ini.php"
53 elog "A sample is in"
54 elog "/etc/nagvis/nagvis.ini.php-sample"
55 }

  ViewVC Help
Powered by ViewVC 1.1.20