summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Bronder <jsbronder@gentoo.org>2008-03-07 01:59:55 +0000
committerJustin Bronder <jsbronder@gentoo.org>2008-03-07 01:59:55 +0000
commitaa11149258b5a160390dc24ece142164a2a91006 (patch)
tree7536aa818619e606a227bcbf24cf70bac2519b60 /sys-cluster/ganglia/ganglia-3.0.6-r1.ebuild
parentQA cleanup: Fix quoting. (diff)
downloadgentoo-2-aa11149258b5a160390dc24ece142164a2a91006.tar.gz
gentoo-2-aa11149258b5a160390dc24ece142164a2a91006.tar.bz2
gentoo-2-aa11149258b5a160390dc24ece142164a2a91006.zip
Fix bug #212304
(Portage version: 2.1.4.4)
Diffstat (limited to 'sys-cluster/ganglia/ganglia-3.0.6-r1.ebuild')
-rw-r--r--sys-cluster/ganglia/ganglia-3.0.6-r1.ebuild78
1 files changed, 78 insertions, 0 deletions
diff --git a/sys-cluster/ganglia/ganglia-3.0.6-r1.ebuild b/sys-cluster/ganglia/ganglia-3.0.6-r1.ebuild
new file mode 100644
index 000000000000..244a5a85f45f
--- /dev/null
+++ b/sys-cluster/ganglia/ganglia-3.0.6-r1.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/ganglia/ganglia-3.0.6-r1.ebuild,v 1.1 2008/03/07 01:59:55 jsbronder Exp $
+
+WEBAPP_OPTIONAL="yes"
+inherit webapp depend.php
+
+DESCRIPTION="Ganglia is a scalable distributed monitoring system for high-performance computing systems such as clusters and grids"
+HOMEPAGE="http://ganglia.sourceforge.net/"
+SRC_URI="mirror://sourceforge/ganglia/${P}.tar.gz"
+LICENSE="BSD"
+
+WEBAPP_MANUAL_SLOT="yes"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="test minimal vhosts"
+
+RDEPEND="!minimal? ( net-analyzer/rrdtool
+ ${WEBAPP_DEPEND} )"
+DEPEND="${RDEPEND}
+ test? ( >=dev-libs/check-0.8.2 )"
+
+! use minimal && need_php5_httpd
+
+pkg_setup() {
+ if ! use minimal ; then
+ require_gd
+ require_php_with_use xml ctype
+ webapp_pkg_setup
+ fi
+}
+
+src_compile() {
+ econf \
+ --enable-gexec \
+ $(use_with !minimal gmetad) || die "econf failed"
+
+ emake || die "emake failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+
+ insinto /etc
+ doman mans/{gmetric.1,gmond.1,gstat.1}
+ doman gmond/gmond.conf.5
+ dodoc AUTHORS ChangeLog INSTALL NEWS README
+ newinitd "${FILESDIR}"/gmond.rc gmond
+
+ if ! use minimal; then
+ doins gmetad/gmetad.conf
+ doman mans/gmetad.1
+ keepdir /var/lib/ganglia/rrds
+ fowners nobody:nobody /var/lib/ganglia/rrds
+ newinitd "${FILESDIR}"/gmetad.rc gmetad
+
+ webapp_src_preinst
+ insinto "${MY_HTDOCSDIR}"
+ doins -r web/*
+
+ webapp_configfile "${MY_HTDOCSDIR}"/conf.php
+ webapp_src_install
+ fi
+}
+
+pkg_postinst() {
+ elog
+ elog "This package doesn't include a configuration file for gmond."
+ elog "You could generate a default template by running:"
+ elog " /usr/sbin/gmond -t > /etc/gmond.conf"
+ elog "and customize it from there or provide your own."
+
+ use minimal || webapp_pkg_postinst
+}
+
+pkg_prerm() {
+ use minimal || webapp_pkg_prerm
+}