summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Bronder <jsbronder@gentoo.org>2015-08-05 14:27:18 +0000
committerJustin Bronder <jsbronder@gentoo.org>2015-08-05 14:27:18 +0000
commitcc8559ccb078b5775de3675b03875d738bd27aac (patch)
treefbd6e0bc55ff947600fb097e7200205bfaf99768 /sys-cluster
parentia64 stable wrt bug #555478 (diff)
downloadhistorical-cc8559ccb078b5775de3675b03875d738bd27aac.tar.gz
historical-cc8559ccb078b5775de3675b03875d738bd27aac.tar.bz2
historical-cc8559ccb078b5775de3675b03875d738bd27aac.zip
add gmetad-python (#406855)
Package-Manager: portage-2.2.20/cvs/Linux x86_64 Manifest-Sign-Key: 0x4D7043C9
Diffstat (limited to 'sys-cluster')
-rw-r--r--sys-cluster/ganglia/ChangeLog8
-rw-r--r--sys-cluster/ganglia/Manifest10
-rw-r--r--sys-cluster/ganglia/files/gmetad-python.rc31
-rw-r--r--sys-cluster/ganglia/ganglia-3.7.1-r1.ebuild123
4 files changed, 167 insertions, 5 deletions
diff --git a/sys-cluster/ganglia/ChangeLog b/sys-cluster/ganglia/ChangeLog
index adbb6612632a..e445be33a668 100644
--- a/sys-cluster/ganglia/ChangeLog
+++ b/sys-cluster/ganglia/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sys-cluster/ganglia
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-cluster/ganglia/ChangeLog,v 1.65 2015/08/05 13:04:54 jsbronder Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/ganglia/ChangeLog,v 1.66 2015/08/05 14:27:13 jsbronder Exp $
+
+*ganglia-3.7.1-r1 (05 Aug 2015)
+
+ 05 Aug 2015; Justin Bronder <jsbronder@gentoo.org> +ganglia-3.7.1-r1.ebuild,
+ +files/gmetad-python.rc:
+ add gmetad-python (#406855)
*ganglia-3.7.1 (05 Aug 2015)
diff --git a/sys-cluster/ganglia/Manifest b/sys-cluster/ganglia/Manifest
index 022ea50af1da..1b00d4555bda 100644
--- a/sys-cluster/ganglia/Manifest
+++ b/sys-cluster/ganglia/Manifest
@@ -4,6 +4,7 @@ Hash: SHA256
AUX ganglia-3.1.1-ctype-c99.patch 437 SHA256 385397d0e6b3810f19fe420fbb7db70ab9978089fe8388eed2ea6a8d8deafcf8 SHA512 ef1469f669b59ff3ef7841f288de9245fd50b1d7c24e9487a89d1efc4de7b2d1fa6e125b32861a28cabd805279c4ad4a7a949f97b10cd2945ff93d7ae25250a7 WHIRLPOOL 7d2225e0cbcd6adefd6b7546bbefa2ffce93a96c100692986ed5f26cf5979051fc6008938f773868661efa2c7311d92b66cc3babc1c78f2428e5707652fdddee
AUX ganglia-3.1.1-multidisk-group.patch 482 SHA256 fd4f3a3798cc99cd0bd93eb238d6c7f381b65c8329852b5a9fa07005c85a6639 SHA512 2e633a80a4f3c611c47abac98fee52ce6923f931ccaec3615cda115eeb16df3721063afd06b324a7b112ddee950da0ae53b411b96f325d8d9014d6e49c62162c WHIRLPOOL 997238e1ced03a3678a8dec90b92b75e65046142c1ad7b4ae1834430a2c1d2db5a9b80b9c584ff54e4e48609fa6b053ad306aeffab8b87adac12defb1fc8d06f
AUX ganglia-3.1.1-process_path-overflow-r1.patch 1364 SHA256 aedce482577f8a5941e54d8392e223b546c3c69790699b0ee0c9c2e4b5500c46 SHA512 74b522617a94c24ae301752897ac48a64a60c4e3c480db5278b33719dc4c2f6028d29fc8006b4036e8e933dd32d0b9d63cac59a5349a9984e86851a3a17baf62 WHIRLPOOL a6110789f0daedf40922a77880328462c32718466a869829df9ebd57b1c8328ec8fdf5ccad1748f09098bfbfc909de667afa779df1de171480058d5a4bfc58c5
+AUX gmetad-python.rc 737 SHA256 fe50a2d03cfd62e2ea0b67fb413b3bb195dcf344ac205ddecae9e1c24a6e7565 SHA512 221830948d3ed9e52da5d77958d4cad9fc14d7811f5a0340ec0ddfddd61bdd210d2ada78243c3a78a7181ef1b93bc4794cb65eb32c20463cbc18f1598b0e1454 WHIRLPOOL 891d372c0490c18c13aebdf6d3e2e5306a34c251381fa0967e2a6f6c37af25dc281cc932acab0a81a1108911508bfd0f0d57042fe542d7d17fdb00d14ee70f96
AUX gmetad.rc 351 SHA256 86a57f6e009cb516928d048180672b82326ba01b8a3deda72e4d03532c493b8e SHA512 660615de284f86b7968bcbbc920e6a25f2c59e6b2c8ddde07fe31446947af020678399ffc97b4f090588fe1a635abbc36d459539bcaf8a0056acabe3caed04e5 WHIRLPOOL a286f0e8687e1f7141f2ac660e8ff1a0efc0f6df83f3658a2c0599c5f361357e60816bc1c11480507d8209f1ffd11779aee80f5772d662bb64f0b859efffa92b
AUX gmetad.rc-2 479 SHA256 5d474faa14f0afa84608575bf5796dc9cc1c63b22d6fa8713f823d606e4d9a09 SHA512 a8212da038a6abe5010cb3806cb9c55c977e938cc27a435bb723134467c15606c95590fbbe4da54654dd07b33ccaa416c2f164ec520d823be3e085df9e3a90b6 WHIRLPOOL 310e8cd0716ec5e648c14bed81f29123ff72117f56e2dea612ef66cb298a446c6c31f168aea0c8baac9462c1356d66c44cd2af759f60032e6d57bc4dd2b396b2
AUX gmond.rc 345 SHA256 c58568992ddad460a79278aae59d0246b74ae167b70d05885775c51118a8c965 SHA512 9944d3ae811abdd4e2632433b2616e0feb4ec1043ffa388e4ae7a388df5418f1a5b91feaf9926749e669ed0a4c7ac884839c66e5af76710ac12d85dff7edbf66 WHIRLPOOL 1f3a9a1e34bab9be54b8bda9fdab9af1ae7cc78672c13692b2a4fda733f37bb047f2e4f01f42340e099a4d7df949e14e1bf39ef294dd4b379020ffc6c6b0caa5
@@ -14,13 +15,14 @@ DIST ganglia-3.7.1.tar.gz 1311019 SHA256 e735a6218986a0ff77c737e5888426b103196c1
EBUILD ganglia-3.5.0-r1.ebuild 2295 SHA256 7414e617f6c08bb406f2bd079dcee99a8ceb5a34c8afcec8656b0e7451ae3308 SHA512 95bcba3b8109fea3126b70a7bcef5f4b76d45fedbdab9701957d0532d391689100acfb283a98cbf72e04a0ab59dcc2b31211d3d2ed1c64e7b289f4bf36f65e85 WHIRLPOOL b735917e8c913f60b3b6cecf78bd597ac6c65d36ed14657dcf2919b12ba93869dbc34d69dd605ab00fffe4c1c4104f47b92fc1291f2a5395afa44b19fe7abefa
EBUILD ganglia-3.5.0.ebuild 2228 SHA256 db358829e6486f8e30f5ab30569a462741f832cd6663e7050a66d6e7465c3e63 SHA512 a04ee0c71c7178863150ccaa81d63d225338fdddcac086c78d5c1dce73dd32d733bec28384327835c132a678fb705aa6712d553c38d91a3c868f988969b9fd3c WHIRLPOOL 6cffc2386360ffec5541791665168fb2efd92a67086bee828a1396ef492fb803d5227365b63cc92cc6273df8207a7d18e3bddc2aa8e4837b1dc630e99dabced9
EBUILD ganglia-3.6.0-r1.ebuild 2430 SHA256 fcadef7551909c52a5f8e1c92334adf15c76f14e4e25159c000273a6e77fefac SHA512 9a0bed743ceb20ef102d27f9cafe077d4780b6802d59303643efaa0fa574e217a6aa1ff3117882baac37afc0ab7e88374847cf2767f9219b2a73ef74fe6baf23 WHIRLPOOL eb8fa8e5f0c49baabeffc8a645c0efa195f4f63a117efc9c22fb55c6c9242ea6d89ff4eedfccae0730b5a0bc24877c7834c9d2c2dfbc2061d52c0d3586f50f62
+EBUILD ganglia-3.7.1-r1.ebuild 2993 SHA256 1e2fbc3fb6e58f2f843b05edf0ee04964f3478a6c9a3fee5c123cfdddc384576 SHA512 6edae5f03b433cfd7bd47e74d2296652bfe6811048a1abd20b29b517fbb40cada317aeb75b437546a0e71a5c0394c220d6a8ed896433046583ec21b4657c8279 WHIRLPOOL 84e2c71649df28759c05f6e36796633c641babc7ff9dda07e296a27b6542071097451493726a463ea49d121088b636aae716123b8df3bc203400a1cba620e4ef
EBUILD ganglia-3.7.1.ebuild 2358 SHA256 1d2bcf00ccae0a7170f908c9854025d795460e5842a2589e3ac33f869b3096aa SHA512 6060ca99e1cf5bf11766183a571b9978af0a9fa3932fac44937ef150bdd64ca776391fb4c8a72c70b51f2fe0223a52273aed80fecfd18194e4a2991b2a2471ce WHIRLPOOL e0ae1f09b6830da3ad743a4927f6d59f8edbc05bcbf06f3b50679d9652eafa94724fdb17e9630584c9ecef176f4c977ffb0863a80081be4cb0b8929618e8cc73
-MISC ChangeLog 11924 SHA256 bda0891068488fa08ebeeaef3b38d04f1f99e3eed60bdafc5f6e08c2ba5ff0c0 SHA512 f9f9a186c785edda9a86c78328027d834ffbbeabc4915bf05dd2ad89e84eca651591889471d3afd8bcd0917235f4c37be0155d8b7191a4d9c5b62b56e4ff3015 WHIRLPOOL 06949245da55df1ae96b6fd89f06b98b40bc0c9e48636d97d00e7c0083b743034e0d38a969abbca7adb47595e9e2f29bc8098cec5f1240c3fc4f359b76147d18
+MISC ChangeLog 12094 SHA256 789b39d689077050d7933227381964448c4b50e0f2ff0189c407b79451355972 SHA512 0a4ab71aa1d0e4bed4b0dc3d2bfdd81e2a16cba2ba4b6fa859a38a5c76f271db4bd02218b07be0bc08250fed178fb82c94fd66cfc85c97fd9010c5625cb19d70 WHIRLPOOL 9ebf34bb41cb6b3206e4c80b716b485d14803a5782267b92aa48bb931cceda9d674a3132b052027ab1923a3cc7ea8f745106d589a7260bed9db513b144ee9a2a
MISC metadata.xml 305 SHA256 6496ec21d4fb0ad15237084e8c152d2cb47048bec79844492a86e7e82cfdf76f SHA512 fe8474ebcc51074fbd674b9a51879c2025c014e9d25df2be3b92c354c5d3d69e1f3244a5e49eb1b739047dee71f11c4e07992293796b0d41fa8cba9347c71d59 WHIRLPOOL 64832c9eb951ed09dc2cc1b64ab9f4799a9ba07695064894c7a7f4b51d72815cc2c1d1295a502dbc57356fe96f0a7341d20a6fd3db185788c41057fb6b5e8697
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
-iEYEAREIAAYFAlXCCfwACgkQ4MrvBE1wQ8lb4wCfTezJ67KPDvTHhrwQODMoiumY
-SHEAn3Y/WAT3ZtT/rPqaiWjLpZ/R0p1A
-=v/tU
+iEYEAREIAAYFAlXCHUIACgkQ4MrvBE1wQ8ketQCfQ+qlBjEbyV4jkEWewSTqb9oh
+OZcAn2MQQunkbPbn4YcO8S1OPkfoaMFO
+=OGTO
-----END PGP SIGNATURE-----
diff --git a/sys-cluster/ganglia/files/gmetad-python.rc b/sys-cluster/ganglia/files/gmetad-python.rc
new file mode 100644
index 000000000000..aaa804600f7f
--- /dev/null
+++ b/sys-cluster/ganglia/files/gmetad-python.rc
@@ -0,0 +1,31 @@
+#!/sbin/runscript
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/ganglia/files/gmetad-python.rc,v 1.1 2015/08/05 14:27:13 jsbronder Exp $
+
+PIDFILE=/var/run/gmetad-python.pid
+
+depend() {
+ need net
+ after ntp-client ntpd
+}
+
+start() {
+ ebegin "Starting GANGLIA gmetad-python: "
+ start-stop-daemon \
+ --start --quiet \
+ --exec /usr/bin/gmetad.py \
+ --pidfile ${PIDFILE} \
+ -- \
+ -p ${PIDFILE}
+ eend $? "Failed to start gmetad-python"
+}
+
+stop() {
+ ebegin "Shutting down GANGLIA gmetad-python: "
+ start-stop-daemon \
+ --stop --quiet \
+ --pidfile ${PIDFILE} \
+ --exec /usr/bin/gmetad.py
+ eend $? "Failed to stop gmetad-python"
+}
diff --git a/sys-cluster/ganglia/ganglia-3.7.1-r1.ebuild b/sys-cluster/ganglia/ganglia-3.7.1-r1.ebuild
new file mode 100644
index 000000000000..8f9999f94db8
--- /dev/null
+++ b/sys-cluster/ganglia/ganglia-3.7.1-r1.ebuild
@@ -0,0 +1,123 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/ganglia/ganglia-3.7.1-r1.ebuild,v 1.1 2015/08/05 14:27:13 jsbronder Exp $
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+DISTUTILS_OPTIONAL=1
+
+inherit distutils-r1 eutils multilib systemd
+
+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 pcre python examples"
+
+DEPEND="dev-libs/confuse
+ dev-libs/expat
+ >=dev-libs/apr-1.0
+ !dev-db/firebird
+ pcre? ( dev-libs/libpcre )
+ python? ( ${PYTHON_DEPS} )"
+
+RDEPEND="
+ ${DEPEND}
+ !minimal? ( net-analyzer/rrdtool )"
+
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+src_prepare() {
+ if use python && ! use minimal; then
+ pushd gmetad-python >/dev/null || die
+ distutils-r1_src_prepare
+ popd >/dev/null || die
+ fi
+}
+
+src_configure() {
+ econf \
+ --with-systemdsystemunitdir=$(systemd_get_unitdir) \
+ --enable-gexec \
+ --sysconfdir="${EPREFIX}"/etc/${PN} \
+ --enable-static=no \
+ $(use_enable python) \
+ $(use_with pcre libpcre) \
+ $(use_with !minimal gmetad)
+}
+
+src_compile() {
+ default_src_compile
+
+ if use python && ! use minimal; then
+ pushd gmetad-python >/dev/null || die
+ distutils-r1_src_compile
+ popd >/dev/null || die
+ fi
+}
+
+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 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
+ 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
+
+ if use python; then
+ pushd gmetad-python >/dev/null || die
+ distutils-r1_src_install
+ popd >/dev/null || die
+ newinitd "${FILESDIR}"/gmetad-python.rc gmetad-python
+ fi
+ fi
+}
+
+src_test() {
+ default_src_test
+
+ if use python && ! use minimal; then
+ pushd gmetad-python >/dev/null || die
+ distutils-r1_src_test
+ popd >/dev/null || die
+ 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 "The web frontend for Ganglia has been split off. Emerge"
+ elog "sys-cluster/ganglia-web if you need it."
+}