]> Frank Brehm's Git Trees - portage.git/commitdiff
Neue Nagvis-Version
authorFrank Brehm <frank@brehm-online.com>
Wed, 18 Feb 2009 14:12:03 +0000 (14:12 +0000)
committerFrank Brehm <frank@brehm-online.com>
Wed, 18 Feb 2009 14:12:03 +0000 (14:12 +0000)
git-svn-id: http://svn.brehm-online.com/svn/portage@74 18afd0d2-9f2f-0410-a0ac-b8d70fd81a6b

net-analyzer/nagvis/nagvis-1.3.2.ebuild [new file with mode: 0644]

diff --git a/net-analyzer/nagvis/nagvis-1.3.2.ebuild b/net-analyzer/nagvis/nagvis-1.3.2.ebuild
new file mode 100644 (file)
index 0000000..11015f1
--- /dev/null
@@ -0,0 +1,48 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagvis/nagvis-1.3.2.ebuild,v 1.2 2009/02/16 18:45:56 dertobi123 Exp $
+
+inherit eutils confutils depend.php
+
+DESCRIPTION="NagVis is a visualization addon for the well known network managment system Nagios."
+HOMEPAGE="http://www.nagvis.org/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="automap"
+
+DEPEND=""
+RDEPEND=">=net-analyzer/ndoutils-1.4_beta4
+               automap? ( >=media-gfx/graphviz-2.14 )"
+
+need_php_httpd
+
+pkg_setup() {
+       confutils_require_built_with_all dev-lang/php mysql unicode
+       confutils_require_built_with_any dev-lang/php gd gd-external
+}
+
+src_install() {
+       for docfile in README INSTALL
+       do
+               dodoc ${docfile}
+               rm ${docfile}
+       done
+
+       dodir /usr/share
+       grep -Rl "/usr/local" "${S}"/* | xargs sed -i s:/usr/local:/usr:g
+       mv "${S}" "${D}"/usr/share/nagvis
+       chmod 664 "${D}"/usr/share/nagvis/etc/nagvis.ini.php-sample
+       chmod 775 "${D}"/usr/share/nagvis/nagvis/images/maps
+       chmod 664 "${D}"/usr/share/nagvis/nagvis/images/maps/*
+       chmod 775 "${D}"/usr/share/nagvis/etc/maps
+       chmod 664 "${D}"/usr/share/nagvis/etc/maps/*
+}
+pkg_postinst() {
+       elog "Before running NagVis for the first time, you will need to set up"
+       elog "/usr/share/nagvis/nagvis/etc/nagvis.ini.php"
+       elog "A sample is in"
+       elog "/usr/share/nagvis/nagvis/etc/nagvis.ini.php-sample"
+}