# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="Daemon which collects system statistics to RRD files" HOMEPAGE="http://collectd.org" SRC_URI="${HOMEPAGE}/files/${P}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~ppc ~x86 ~amd64 ~x86_64" IUSE="mysql apache2" DEPEND="virtual/libpcap >=net-analyzer/rrdtool-1.2 apache2? ( >=net-misc/curl-7.15 ) mysql? ( >=dev-db/mysql-5.0 )" RDEPEND="${DEPEND}" src_compile () { econf \ $(use_with mysql libmysql) \ $(use_with apache2 libcurl) \ $(use_enable apache2 apache) \ --localstatedir="/var" emake } src_install () { einstall dodoc README AUTHORS insinto /usr/share/doc/${P}/contrib doins contrib/{collection.cgi,add_rra.sh,collectd2html.pl,README} newinitd "${FILESDIR}/${PN}.initd" ${PN} newconfd "${FILESDIR}/${PN}.confd" ${PN} }