diff options
author | Justin Bronder <jsbronder@gentoo.org> | 2010-07-03 02:44:24 +0000 |
---|---|---|
committer | Justin Bronder <jsbronder@gentoo.org> | 2010-07-03 02:44:24 +0000 |
commit | adb6e8bec6ab96d26c17c7b9379a115042178fef (patch) | |
tree | 0cb0ae17a62385e6a3841e26be173618b0939101 /sys-cluster/ganglia | |
parent | Minor version bump to fix bug 326143 (diff) | |
download | gentoo-2-adb6e8bec6ab96d26c17c7b9379a115042178fef.tar.gz gentoo-2-adb6e8bec6ab96d26c17c7b9379a115042178fef.tar.bz2 gentoo-2-adb6e8bec6ab96d26c17c7b9379a115042178fef.zip |
Update python handling (#316933). Install pymods as examples per upstream. Remove warnings about versions that are not in the tree. Drop now useless pkg_config.
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'sys-cluster/ganglia')
-rw-r--r-- | sys-cluster/ganglia/ChangeLog | 10 | ||||
-rw-r--r-- | sys-cluster/ganglia/ganglia-3.1.7-r1.ebuild | 116 |
2 files changed, 125 insertions, 1 deletions
diff --git a/sys-cluster/ganglia/ChangeLog b/sys-cluster/ganglia/ChangeLog index 986be80012cc..dbeb0afa8bfa 100644 --- a/sys-cluster/ganglia/ChangeLog +++ b/sys-cluster/ganglia/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for sys-cluster/ganglia # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/ganglia/ChangeLog,v 1.35 2010/04/23 03:50:43 jsbronder Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/ganglia/ChangeLog,v 1.36 2010/07/03 02:44:24 jsbronder Exp $ + +*ganglia-3.1.7-r1 (03 Jul 2010) + + 03 Jul 2010; Justin Bronder <jsbronder@gentoo.org> + +ganglia-3.1.7-r1.ebuild: + Update python handling (#316933). Install pymods as examples per upstream. + Remove warnings about versions that are not in the tree. Drop now useless + pkg_config. *ganglia-3.1.7 (23 Apr 2010) diff --git a/sys-cluster/ganglia/ganglia-3.1.7-r1.ebuild b/sys-cluster/ganglia/ganglia-3.1.7-r1.ebuild new file mode 100644 index 000000000000..a2b940ada97f --- /dev/null +++ b/sys-cluster/ganglia/ganglia-3.1.7-r1.ebuild @@ -0,0 +1,116 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/ganglia/ganglia-3.1.7-r1.ebuild,v 1.1 2010/07/03 02:44:24 jsbronder Exp $ + +EAPI="3" +WEBAPP_OPTIONAL="yes" + +PYTHON_DEPEND="python? 2" +WEBAPP_MANUAL_SLOT="yes" + +inherit eutils multilib webapp python + +DESCRIPTION="A scalable distributed monitoring system for clusters and grids" +HOMEPAGE="http://ganglia.sourceforge.net/" +SRC_URI="mirror://sourceforge/ganglia/${P}.tar.gz" +LICENSE="BSD" + +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="minimal vhosts python examples" + +DEPEND=" + dev-libs/confuse + dev-libs/expat + >=dev-libs/apr-1.0 + !dev-db/firebird" + +RDEPEND=" + ${DEPEND} + !minimal? ( net-analyzer/rrdtool + ${WEBAPP_DEPEND} + dev-lang/php[gd,xml,ctype,pcre,cgi] + media-fonts/dejavu + )" + +pkg_setup() { + if use python; then + python_set_active_version 2 + python_pkg_setup + fi + use minimal || webapp_pkg_setup +} + +src_prepare() { + # This patch just gives a group to the disk statistics. + # I.E. it's just cosmetics + epatch "${FILESDIR}"/${PN}-3.1.1-multidisk-group.patch +} + +src_configure() { + econf \ + --enable-gexec \ + --sysconfdir="${EPREFIX}"/etc/${PN} \ + $(use_enable python) \ + $(use_with !minimal gmetad) || die "econf failed" +} + +src_install() { + local exdir=/usr/share/doc/${P} + + emake DESTDIR="${D}" install || die "emake install failed" + + newinitd "${FILESDIR}"/gmond.rc gmond + doman {mans/*.1,gmond/*.5} || die "Failed to install manpages" + dodoc AUTHORS ChangeLog INSTALL NEWS README || die + + dodir /etc/ganglia/conf.d + gmond/gmond -t > "${ED}"/etc/ganglia/gmond.conf + + if use examples; then + insinto ${exdir}/cmod-examples + doins gmond/modules/example/*.c + if use python; then + # Installing as an examples per upstream. + insinto ${exdir}/pymod-examples + doins gmond/python_modules/*/*.py + insinto ${exdir}/pymod-examples/conf.d + doins gmond/python_modules/conf.d/*.pyconf + fi + fi + + if ! use minimal; then + webapp_src_preinst + insinto "${MY_HTDOCSDIR}" + doins -r web/* + webapp_configfile "${MY_HTDOCSDIR}"/conf.php + webapp_src_install + + # webapp_src_install stomps on permissions, so do that + # stuff first. + insinto /etc/ganglia + doins gmetad/gmetad.conf + doman mans/gmetad.1 + + newinitd "${FILESDIR}"/gmetad.rc gmetad + keepdir /var/lib/ganglia/rrds + fowners nobody:nobody /var/lib/ganglia/rrds + fi +} + +pkg_postinst() { + elog "A default configuration file for gmond has been generated" + elog "for you as a template by running:" + elog " /usr/sbin/gmond -t > /etc/ganglia/gmond.conf" + + use minimal || webapp_pkg_postinst +} + +pkg_prerm() { + use minimal || webapp_pkg_prerm +} + +pkg_postrm() { + [ -d "${ROOT}"/usr/$(get_libdir)/ganglia ] && \ + rmdir "${ROOT}"/usr/$(get_libdir)/ganglia 2>/dev/null +} |