# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ 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="http://unc.dl.sourceforge.net/sourceforge/ganglia/${P}.tar.gz" LICENSE="BSD" SLOT="0" KEYWORDS="~X86" IUSE="" DEPEND="net-analyzer/rrdtool" RDEPEND="${DEPEND}" S="${WORKDIR}/${P}" 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} dodoc AUTHORS COPYING ChangeLog INSTALL NEWS README dodir /var/lib/ganglia/rrds fowners nobody.nobody /var/lib/ganglia/rrds exeinto /etc/init.d newexe ${FILESDIR}/gmond.rc gmond newexe ${FILESDIR}/gmetad.rc gmetad einfo einfo "Warning- it is more than likely ganglia-monitor-core-2.5.3" einfo "overwrote /usr/include/error.h, which belongs to glibc." einfo einfo "Please verify the error.h which belongs to glibc is still" einfo "in place if you are upgrading from ganglia-monitor-core-2.5.3," einfo "using something like 'epm -V glibc'." einfo einfo "If /usr/include/error.h is missing, you will need to take" einfo "the appropriate action to put the original file back in place," einfo "such as re-installing glibc." einfo einfo "Sorry about that." einfo }