summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKacper Kowalik <xarthisius@gentoo.org>2012-09-02 14:48:51 +0000
committerKacper Kowalik <xarthisius@gentoo.org>2012-09-02 14:48:51 +0000
commit05ebd852edcc8d70c5275a9210e16ecb801a4357 (patch)
tree6461ef46ce4a414e192e72b2109462f84a5a5b5e /sys-cluster
parentremove old (diff)
downloadgentoo-2-05ebd852edcc8d70c5275a9210e16ecb801a4357.tar.gz
gentoo-2-05ebd852edcc8d70c5275a9210e16ecb801a4357.tar.bz2
gentoo-2-05ebd852edcc8d70c5275a9210e16ecb801a4357.zip
Drop old
(Portage version: 2.2.0_alpha123/cvs/Linux x86_64)
Diffstat (limited to 'sys-cluster')
-rw-r--r--sys-cluster/ganglia/ChangeLog6
-rw-r--r--sys-cluster/ganglia/ganglia-3.1.2.ebuild201
-rw-r--r--sys-cluster/ganglia/ganglia-3.1.7-r2.ebuild117
-rw-r--r--sys-cluster/ganglia/ganglia-3.1.7-r3.ebuild118
4 files changed, 5 insertions, 437 deletions
diff --git a/sys-cluster/ganglia/ChangeLog b/sys-cluster/ganglia/ChangeLog
index c5f755a5663e..e1230f836bd9 100644
--- a/sys-cluster/ganglia/ChangeLog
+++ b/sys-cluster/ganglia/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for sys-cluster/ganglia
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-cluster/ganglia/ChangeLog,v 1.48 2012/02/01 17:03:47 ranger Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/ganglia/ChangeLog,v 1.49 2012/09/02 14:48:51 xarthisius Exp $
+
+ 02 Sep 2012; Kacper Kowalik <xarthisius@gentoo.org> -ganglia-3.1.2.ebuild,
+ -ganglia-3.1.7-r2.ebuild, -ganglia-3.1.7-r3.ebuild:
+ Drop old
01 Feb 2012; Brent Baude <ranger@gentoo.org> ganglia-3.2.0.ebuild:
Marking ganglia-3.2.0 ppc for bug 386277
diff --git a/sys-cluster/ganglia/ganglia-3.1.2.ebuild b/sys-cluster/ganglia/ganglia-3.1.2.ebuild
deleted file mode 100644
index 7b4311bda30e..000000000000
--- a/sys-cluster/ganglia/ganglia-3.1.2.ebuild
+++ /dev/null
@@ -1,201 +0,0 @@
-# Copyright 1999-2009 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-cluster/ganglia/ganglia-3.1.2.ebuild,v 1.6 2009/06/20 18:27:54 jsbronder Exp $
-
-WEBAPP_OPTIONAL="yes"
-inherit multilib webapp depend.php 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"
-
-WEBAPP_MANUAL_SLOT="yes"
-SLOT="0"
-KEYWORDS="amd64 ppc x86"
-IUSE="minimal vhosts python"
-
-DEPEND="
- dev-libs/confuse
- dev-libs/expat
- >=dev-libs/apr-1.0
- python? ( >=dev-lang/python-2.3 )
- !dev-db/firebird"
-
-RDEPEND="
- ${DEPEND}
- !minimal? ( net-analyzer/rrdtool
- ${WEBAPP_DEPEND}
- =virtual/httpd-php-5* )"
-
-pkg_setup() {
- if ! use minimal ; then
- require_gd
- require_php_with_use xml ctype pcre
- webapp_pkg_setup
- fi
-}
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
- # TODO: Submitted upstream, may not be necessary in the future.
- epatch "${FILESDIR}"/${PN}-3.1.1-ctype-c99.patch
- # 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_compile() {
- econf \
- --enable-gexec \
- $(use_enable python) \
- $(use_with !minimal gmetad) || die "econf failed"
-
- emake || die "emake failed"
-}
-
-src_install() {
- emake DESTDIR="${D}" install || die "emake install failed"
-
- newinitd "${FILESDIR}"/gmond.rc gmond
- doman mans/{gmetric.1,gmond.1,gstat.1}
- doman gmond/gmond.conf.5
- dodoc AUTHORS ChangeLog INSTALL NEWS README
- dodir /etc/ganglia/conf.d
- gmond/gmond -t > "${D}"/etc/ganglia/gmond.conf
-
- # Sadly, there is no install target for any of this.
- if use python; then
- # We install the multidisk module, but not the configuration
- # as this needs to be generated later. See pkg_config
- local gmond_py="disk/multidisk network/tcpconn"
- local gmond_py_conf="tcpconn"
- newdoc gmond/modules/python/README README.python_modules
- insinto /etc/ganglia/conf.d
- doins gmond/modules/conf.d/modpython.conf
- for i in ${gmond_py_conf}; do
- doins gmond/python_modules/conf.d/${i}.pyconf
- done
- dodir /usr/$(get_libdir)/ganglia/python_modules
- insinto /usr/$(get_libdir)/ganglia/python_modules
- for i in ${gmond_py}; do
- doins gmond/python_modules/${i}.py
- done
- 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_preinst() {
- if has_version '<sys-cluster/ganglia-3.1.0'; then
- elog "Previous ganglia installation detected."
- elog "Copying gmetad configuration to /etc/ganglia"
- elog "You may have to remove /etc/gmond.conf yourself."
- mkdir -p "${D}"/etc/ganglia
- [ -f "${ROOT}"etc/gmetad.conf ] \
- && cp "${ROOT}"etc/gmetad.conf "${D}"/etc/ganglia
- 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"
- elog "customize it from there or provide your own but be aware"
- elog "the format has changed since 3.0 and so you won't be able"
- elog "to use your current configuration (if you generated any)"
- elog "in /etc/gmond.conf directly"
- elog
- elog "If you require disk {usage,total} statistics, please run"
- elog " emerge --config ${PN}"
- elog "then check ${ROOT}etc/ganglia/conf.d/diskusage.pyconf"
- elog "for correctness."
-
- use minimal || webapp_pkg_postinst
-
- use python && \
- python_mod_optimize /usr/$(get_libdir)/ganglia/python_modules/
-}
-
-pkg_prerm() {
- use minimal || webapp_pkg_prerm
-}
-
-pkg_postrm() {
- use python && \
- python_mod_cleanup /usr/$(get_libdir)/ganglia/python_modules/
- [ -d "${ROOT}"/usr/$(get_libdir)/ganglia ] && \
- rmdir "${ROOT}"/usr/$(get_libdir)/ganglia 2>/dev/null
-}
-
-pkg_config() {
- local disk_used_metrics disk_total_metrics i
- local disk_pyconf="${ROOT}"etc/ganglia/conf.d/diskusage.pyconf
-
- if ! use python; then
- einfo "No configuration necessary :)"
- exit 0
- fi
-
- if [ ! -w ${disk_pyconf} ]; then
- eerror "Cannot write to ${disk_pyconf}"
- exit 1
- fi
-
- ebegin "Generating disk used/total metric configuration to ${disk_pyconf}"
- disk_used_metrics=$(${ROOT}/usr/sbin/gmond -m | awk '/-disk_used/{print $1}')
- disk_total_metrics=$(${ROOT}/usr/sbin/gmond -m | awk '/-disk_total/{print $1}')
- cat > ${disk_pyconf} <<-EOF
- #/* Disk usage collection groups for
- # multidisk python module */
- #
- # Autogenerated by pkg_config in the Gentoo ganglia ebuild.
-
- modules {
- module {
- name = "multidisk"
- language = "python"
- }
- }
-
- collection_group {
- collect_every = 10
- time_threshold = 50
- EOF
- for i in ${disk_used_metrics}; do
- printf \
- "\n metric {\n name = \"%s\"\n value_threshold = 1.0\n }" \
- ${i} >> ${disk_pyconf}
- done
- printf "\n}\n\n" >> ${disk_pyconf}
-
- # Get the disk total metrics.
- cat >> ${disk_pyconf} <<-EOF
- collection_group {
- collect_once = yes
- time_threshold = 20
- EOF
- for i in ${disk_total_metrics}; do
- printf \
- "\n metric {\n name = \"%s\"\n }" \
- ${i} >> ${disk_pyconf}
- done
- printf "\n}\n" >> ${disk_pyconf}
-}
diff --git a/sys-cluster/ganglia/ganglia-3.1.7-r2.ebuild b/sys-cluster/ganglia/ganglia-3.1.7-r2.ebuild
deleted file mode 100644
index cb51a29e5551..000000000000
--- a/sys-cluster/ganglia/ganglia-3.1.7-r2.ebuild
+++ /dev/null
@@ -1,117 +0,0 @@
-# Copyright 1999-2011 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-r2.ebuild,v 1.5 2011/06/23 20:16:22 ranger 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,cgi]
- || ( <dev-lang/php-5.3[pcre] >=dev-lang/php-5.3 )
- 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
-
- # Disable modpython by default (#358359)
- sed -i '/ *params/N;s,\( *\)\(params = "[^"]*"\),\1\2\n\1enabled = no,' \
- gmond/modules/conf.d/modpython.conf.in || die
-}
-
-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-2 gmond
- doman {mans/*.1,gmond/*.5} || die "Failed to install manpages"
- dodoc AUTHORS ChangeLog INSTALL NEWS README || die
-
- dodir /etc/ganglia/conf.d
- use python && dodir /usr/$(get_libdir)/ganglia/python_modules
- 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-2 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
-}
diff --git a/sys-cluster/ganglia/ganglia-3.1.7-r3.ebuild b/sys-cluster/ganglia/ganglia-3.1.7-r3.ebuild
deleted file mode 100644
index 6e408d47c716..000000000000
--- a/sys-cluster/ganglia/ganglia-3.1.7-r3.ebuild
+++ /dev/null
@@ -1,118 +0,0 @@
-# Copyright 1999-2011 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-r3.ebuild,v 1.1 2011/05/23 09:11:52 xarthisius 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 pcre python examples"
-
-DEPEND="dev-libs/confuse
- dev-libs/expat
- >=dev-libs/apr-1.0
- !dev-db/firebird
- pcre? ( dev-libs/libpcre )"
-
-RDEPEND="
- ${DEPEND}
- !minimal? ( net-analyzer/rrdtool
- ${WEBAPP_DEPEND}
- dev-lang/php[gd,xml,ctype,cgi]
- || ( <dev-lang/php-5.3[pcre] >=dev-lang/php-5.3 )
- 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
-
- # Disable modpython by default (#358359)
- sed -i '/ *params/N;s,\( *\)\(params = "[^"]*"\),\1\2\n\1enabled = no,' \
- gmond/modules/conf.d/modpython.conf.in || die
-}
-
-src_configure() {
- econf \
- --enable-gexec \
- --sysconfdir="${EPREFIX}"/etc/${PN} \
- $(use_enable python) \
- $(use_with pcre libpcre) \
- $(use_with !minimal gmetad)
-}
-
-src_install() {
- local exdir=/usr/share/doc/${P}
-
- emake DESTDIR="${D}" install || die
-
- newinitd "${FILESDIR}"/gmond.rc-2 gmond
- doman {mans/*.1,gmond/*.5} || die "Failed to install manpages"
- dodoc AUTHORS ChangeLog INSTALL NEWS README || die
-
- dodir /etc/ganglia/conf.d
- use python && dodir /usr/$(get_libdir)/ganglia/python_modules
- 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-2 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
-}