|
|
# Distributed under the terms of the GNU General Public License v2 | # Distributed under the terms of the GNU General Public License v2 |
# $Header: /var/cvsroot/gentoo-x86/sys-cluster/ganglia/ganglia-3.0.6.ebuild,v 1.2 2008/01/05 11:34:10 maekke Exp $ | # $Header: /var/cvsroot/gentoo-x86/sys-cluster/ganglia/ganglia-3.0.6.ebuild,v 1.2 2008/01/05 11:34:10 maekke 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" | DESCRIPTION="Ganglia is a scalable distributed monitoring system for high-performance computing systems such as clusters and grids" |
HOMEPAGE="http://ganglia.sourceforge.net/" | HOMEPAGE="http://ganglia.sourceforge.net/" |
SRC_URI="mirror://sourceforge/ganglia/${P}.tar.gz" | SRC_URI="mirror://sourceforge/ganglia/${P}.tar.gz" |
LICENSE="BSD" | LICENSE="BSD" |
| |
|
WEBAPP_MANUAL_SLOT="yes" |
SLOT="0" | SLOT="0" |
KEYWORDS="~amd64 ~ppc x86" | KEYWORDS="~amd64 ~ppc x86" |
IUSE="test minimal" |
IUSE="test minimal vhosts" |
| |
DEPEND="!minimal? ( net-analyzer/rrdtool ) |
RDEPEND="!minimal? ( net-analyzer/rrdtool |
|
${WEBAPP_DEPEND} |
|
virtual/httpd-cgi |
|
virtual/php-httpd )" |
|
DEPEND="${RDEPEND} |
test? ( >=dev-libs/check-0.8.2 )" | test? ( >=dev-libs/check-0.8.2 )" |
RDEPEND="!minimal? ( net-analyzer/rrdtool )" |
|
|
pkg_setup() { |
|
if ! use minimal ; then |
|
require_gd |
|
webapp_pkg_setup |
|
fi |
|
} |
| |
src_compile() { | src_compile() { |
econf \ | econf \ |
|
|
keepdir /var/lib/ganglia/rrds | keepdir /var/lib/ganglia/rrds |
fowners nobody:nobody /var/lib/ganglia/rrds | fowners nobody:nobody /var/lib/ganglia/rrds |
newinitd "${FILESDIR}"/gmetad.rc gmetad | newinitd "${FILESDIR}"/gmetad.rc gmetad |
insinto /usr/share/${PN}/ |
|
doins -r web |
webapp_src_preinst |
|
insinto "${MY_HTDOCSDIR}" |
|
doins -r web/* |
|
|
|
webapp_configfile "${MY_HTDOCSDIR}"/conf.php |
|
webapp_src_install |
fi | fi |
} | } |
| |
|
|
elog " /usr/sbin/gmond -t > /etc/gmond.conf" | elog " /usr/sbin/gmond -t > /etc/gmond.conf" |
elog "and customize it from there or provide your own." | elog "and customize it from there or provide your own." |
| |
if ! use minimal; then |
use minimal || webapp_pkg_postinst |
elog |
} |
elog "All the files necessary for the PHP frontend have been installed" |
|
elog "into ${ROOT}usr/share/${PN}/web/." |
pkg_prerm() { |
fi |
use minimal || webapp_pkg_prerm |
} | } |