# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ WANT_AUTOMAKE=1.8 inherit eutils autotools 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" SLOT="0" KEYWORDS="~x86 ~ppc ~amd64" IUSE="test" DEPEND="net-analyzer/rrdtool >=sys-devel/automake-1.7.2 test? ( >=dev-libs/check-0.8.2 )" RDEPEND="net-analyzer/rrdtool" src_unpack() { unpack ${A} cd "${S}" epatch "${FILESDIR}"/"${P}"-check-confuse.patch epatch "${FILESDIR}"/"${P}"-have-check.patch cd "${S}"/srclib/confuse AT_M4DIR="m4" eautoreconf } src_compile() { ./configure \ --host=${CHOST} \ --prefix=/usr \ --infodir=/usr/share/info \ --mandir=/usr/share/man \ --enable-gexec \ --with-gmetad || die "./configure failed" emake || die } src_install() { einstall || die insinto /etc #doins gmond/gmond.conf doins gmetad/gmetad.conf doman mans/{gmetad.1,gmetric.1,gmond.1,gstat.1} doman gmond/gmond.conf.5 dodoc AUTHORS COPYING ChangeLog INSTALL NEWS README keepdir /var/lib/ganglia/rrds fowners nobody:nobody /var/lib/ganglia/rrds newinitd ${FILESDIR}/gmond.rc gmond newinitd ${FILESDIR}/gmetad.rc gmetad }