Gentoo Archives: gentoo-commits

From: "Justin Bronder (jsbronder)" <jsbronder@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-cluster/ganglia: ChangeLog ganglia-3.1.7-r2.ebuild ganglia-3.1.7-r1.ebuild
Date: Wed, 25 Aug 2010 01:53:56
Message-Id: 20100825015352.B4EB32004E@flycatcher.gentoo.org
1 jsbronder 10/08/25 01:53:52
2
3 Modified: ChangeLog
4 Added: ganglia-3.1.7-r2.ebuild
5 Removed: ganglia-3.1.7-r1.ebuild
6 Log:
7 Use pidfile for starting and stopping the ganglia daemons. Thanks to Joshua Rich, #333275
8 (Portage version: 2.2_rc67/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.39 sys-cluster/ganglia/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/ganglia/ChangeLog?rev=1.39&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/ganglia/ChangeLog?rev=1.39&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/ganglia/ChangeLog?r1=1.38&r2=1.39
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-cluster/ganglia/ChangeLog,v
20 retrieving revision 1.38
21 retrieving revision 1.39
22 diff -u -r1.38 -r1.39
23 --- ChangeLog 3 Jul 2010 15:34:23 -0000 1.38
24 +++ ChangeLog 25 Aug 2010 01:53:52 -0000 1.39
25 @@ -1,6 +1,13 @@
26 # ChangeLog for sys-cluster/ganglia
27 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/ganglia/ChangeLog,v 1.38 2010/07/03 15:34:23 mabi Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/ganglia/ChangeLog,v 1.39 2010/08/25 01:53:52 jsbronder Exp $
30 +
31 +*ganglia-3.1.7-r2 (25 Aug 2010)
32 +
33 + 25 Aug 2010; Justin Bronder <jsbronder@g.o> +files/gmetad.rc-2,
34 + +files/gmond.rc-2, -ganglia-3.1.7-r1.ebuild, +ganglia-3.1.7-r2.ebuild:
35 + Use pidfile for starting and stopping the ganglia daemons. Thanks to
36 + Joshua Rich, #333275
37
38 03 Jul 2010; Matti Bickel <mabi@g.o> ganglia-3.1.7-r1.ebuild:
39 update RDEPEND for php-5.3 (bug #298205)
40
41
42
43 1.1 sys-cluster/ganglia/ganglia-3.1.7-r2.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/ganglia/ganglia-3.1.7-r2.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/ganglia/ganglia-3.1.7-r2.ebuild?rev=1.1&content-type=text/plain
47
48 Index: ganglia-3.1.7-r2.ebuild
49 ===================================================================
50 # Copyright 1999-2010 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/sys-cluster/ganglia/ganglia-3.1.7-r2.ebuild,v 1.1 2010/08/25 01:53:52 jsbronder Exp $
53
54 EAPI="3"
55 WEBAPP_OPTIONAL="yes"
56
57 PYTHON_DEPEND="python? 2"
58 WEBAPP_MANUAL_SLOT="yes"
59
60 inherit eutils multilib webapp python
61
62 DESCRIPTION="A scalable distributed monitoring system for clusters and grids"
63 HOMEPAGE="http://ganglia.sourceforge.net/"
64 SRC_URI="mirror://sourceforge/ganglia/${P}.tar.gz"
65 LICENSE="BSD"
66
67 SLOT="0"
68 KEYWORDS="~amd64 ~ppc ~x86"
69 IUSE="minimal vhosts python examples"
70
71 DEPEND="
72 dev-libs/confuse
73 dev-libs/expat
74 >=dev-libs/apr-1.0
75 !dev-db/firebird"
76
77 RDEPEND="
78 ${DEPEND}
79 !minimal? ( net-analyzer/rrdtool
80 ${WEBAPP_DEPEND}
81 dev-lang/php[gd,xml,ctype,cgi]
82 || ( <dev-lang/php-5.3[pcre] >=dev-lang/php-5.3 )
83 media-fonts/dejavu
84 )"
85
86 pkg_setup() {
87 if use python; then
88 python_set_active_version 2
89 python_pkg_setup
90 fi
91 use minimal || webapp_pkg_setup
92 }
93
94 src_prepare() {
95 # This patch just gives a group to the disk statistics.
96 # I.E. it's just cosmetics
97 epatch "${FILESDIR}"/${PN}-3.1.1-multidisk-group.patch
98 }
99
100 src_configure() {
101 econf \
102 --enable-gexec \
103 --sysconfdir="${EPREFIX}"/etc/${PN} \
104 $(use_enable python) \
105 $(use_with !minimal gmetad) || die "econf failed"
106 }
107
108 src_install() {
109 local exdir=/usr/share/doc/${P}
110
111 emake DESTDIR="${D}" install || die "emake install failed"
112
113 newinitd "${FILESDIR}"/gmond.rc-2 gmond
114 doman {mans/*.1,gmond/*.5} || die "Failed to install manpages"
115 dodoc AUTHORS ChangeLog INSTALL NEWS README || die
116
117 dodir /etc/ganglia/conf.d
118 gmond/gmond -t > "${ED}"/etc/ganglia/gmond.conf
119
120 if use examples; then
121 insinto ${exdir}/cmod-examples
122 doins gmond/modules/example/*.c
123 if use python; then
124 # Installing as an examples per upstream.
125 insinto ${exdir}/pymod-examples
126 doins gmond/python_modules/*/*.py
127 insinto ${exdir}/pymod-examples/conf.d
128 doins gmond/python_modules/conf.d/*.pyconf
129 fi
130 fi
131
132 if ! use minimal; then
133 webapp_src_preinst
134 insinto "${MY_HTDOCSDIR}"
135 doins -r web/*
136 webapp_configfile "${MY_HTDOCSDIR}"/conf.php
137 webapp_src_install
138
139 # webapp_src_install stomps on permissions, so do that
140 # stuff first.
141 insinto /etc/ganglia
142 doins gmetad/gmetad.conf
143 doman mans/gmetad.1
144
145 newinitd "${FILESDIR}"/gmetad.rc-2 gmetad
146 keepdir /var/lib/ganglia/rrds
147 fowners nobody:nobody /var/lib/ganglia/rrds
148 fi
149 }
150
151 pkg_postinst() {
152 elog "A default configuration file for gmond has been generated"
153 elog "for you as a template by running:"
154 elog " /usr/sbin/gmond -t > /etc/ganglia/gmond.conf"
155
156 use minimal || webapp_pkg_postinst
157 }
158
159 pkg_prerm() {
160 use minimal || webapp_pkg_prerm
161 }
162
163 pkg_postrm() {
164 [ -d "${ROOT}"/usr/$(get_libdir)/ganglia ] && \
165 rmdir "${ROOT}"/usr/$(get_libdir)/ganglia 2>/dev/null
166 }