newer nagios-version in trunk; nagvis added
This commit is contained in:
2
net-analyzer/nagvis/Manifest
Normal file
2
net-analyzer/nagvis/Manifest
Normal file
@@ -0,0 +1,2 @@
|
||||
DIST nagvis-1.3rc3.tar.gz 320902 RMD160 4b479c66f949af42b06116f32b76872875d671ac SHA1 af414459edc8095063982fee0bd0e238e3d8c36e SHA256 7b79291516081c377ba762fb7fa4691b74042bb45eb9a77f10eda0e3b929147c
|
||||
EBUILD nagvis-1.3_rc3.ebuild 1872 RMD160 00ed5418018a9f57fb1474b46d8436d8c5c1d176 SHA1 b6b48ae77b2eaadea3cf8d4b46565a92858cf9f5 SHA256 13b39ead025352e190a7f93f4dd39bb9fd30eb3bb204c58faa0fa675d4dd4dec
|
69
net-analyzer/nagvis/nagvis-1.3_rc3.ebuild
Normal file
69
net-analyzer/nagvis/nagvis-1.3_rc3.ebuild
Normal file
@@ -0,0 +1,69 @@
|
||||
# Copyright 1999-2007 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
inherit eutils
|
||||
|
||||
MY_PV=${PV/_rc/rc}
|
||||
MY_P=${PN}-${MY_PV}
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
DESCRIPTION="NagVis is a visualization addon for the well known network
|
||||
managment system Nagios."
|
||||
HOMEPAGE="http://www.nagvis.org/"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~x86 ~amd86"
|
||||
IUSE="apache2 gd mysql"
|
||||
|
||||
DEPEND="net-analyzer/nagios-core
|
||||
>=net-analyzer/ndoutils-1.4_beta4
|
||||
>=media-gfx/graphviz-2.14
|
||||
virtual/httpd-php"
|
||||
|
||||
pkg_setup() {
|
||||
ewarn "checking for use flags, may take a while"
|
||||
|
||||
if ( ! built_with_use dev-lang/php apache2 ) ; then
|
||||
die "You MUST build dev-lang/php with the apache2 USE flag"
|
||||
fi
|
||||
|
||||
if ( ! built_with_use dev-lang/php gd ) ; then
|
||||
die "You MUST build dev-lang/php with the gd USE flag"
|
||||
fi
|
||||
|
||||
if ( ! built_with_use dev-lang/php mysql ) ; then
|
||||
die "You MUST build dev-lang/php with the mysql USE flag"
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
return
|
||||
}
|
||||
|
||||
src_install() {
|
||||
for docfile in README INSTALL LICENCE
|
||||
do
|
||||
dodoc ${S}/${docfile}
|
||||
rm ${S}/${docfile}
|
||||
done
|
||||
|
||||
dodir /usr/nagios/share
|
||||
grep -Rl "/usr/local" ${S}/* | xargs sed -i s:/usr/local:/usr:g
|
||||
mv "${S}" "${D}"/usr/nagios/share/nagvis
|
||||
chown -R apache:apache "${D}"/usr/nagios/share/nagvis
|
||||
chmod 664 "${D}"/usr/nagios/share/nagvis/nagvis/etc/config.ini.php.dist
|
||||
chmod 775 "${D}"/usr/nagios/share/nagvis/nagvis/images/maps
|
||||
chmod 664 "${D}"/usr/nagios/share/nagvis/nagvis/images/maps/*
|
||||
chmod 775 "${D}"/usr/nagios/share/nagvis/nagvis/etc/maps
|
||||
chmod 664 "${D}"/usr/nagios/share/nagvis/nagvis/etc/maps/*
|
||||
}
|
||||
pkg_postinst() {
|
||||
elog "Before running NagVis for the first time, you will need to set up"
|
||||
elog "/usr/nagios/share/nagvis/nagvis/etc/config.ini.php"
|
||||
elog "A sample is in"
|
||||
elog "/usr/nagios/share/nagvis/nagvis/etc/config.ini.php.dist"
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user