# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit gnuconfig 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/ganglia-${PV}.tar.gz" LICENSE="BSD" SLOT="0" KEYWORDS="~x86 ~ppc ~amd64" IUSE="minimal" DEPEND="!minimal? (net-analyzer/rrdtool)" RDEPEND="${DEPEND}" src_unpack() { unpack ${A} gnuconfig_update "${S}" } src_compile() { local conf if ! use minimal; then conf="--with-gmetad" fi ./configure \ --host=${CHOST} \ --prefix=/usr \ --infodir=/usr/share/info \ --mandir=/usr/share/man \ --enable-gexec ${conf} || die "./configure failed" emake || die } src_install() { einstall || die insinto /etc #doins gmond/gmond.conf doman mans/{gmetric.1,gmond.1,gstat.1} doman gmond/gmond.conf.5 dodoc AUTHORS COPYING ChangeLog INSTALL NEWS README exeinto /etc/init.d newexe ${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 newexe ${FILESDIR}/gmetad.rc gmetad fi }