1 |
jsbronder 08/08/04 23:17:12 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: ganglia-3.1.0.ebuild |
5 |
Log: |
6 |
Version bump, thanks to Carlo Marcelo Arenas Belon for help with the ebuild. #233440 |
7 |
(Portage version: 2.1.4.4) |
8 |
|
9 |
Revision Changes Path |
10 |
1.16 sys-cluster/ganglia/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-cluster/ganglia/ChangeLog?rev=1.16&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-cluster/ganglia/ChangeLog?rev=1.16&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-cluster/ganglia/ChangeLog?r1=1.15&r2=1.16 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/sys-cluster/ganglia/ChangeLog,v |
19 |
retrieving revision 1.15 |
20 |
retrieving revision 1.16 |
21 |
diff -u -r1.15 -r1.16 |
22 |
--- ChangeLog 28 Mar 2008 19:36:17 -0000 1.15 |
23 |
+++ ChangeLog 4 Aug 2008 23:17:11 -0000 1.16 |
24 |
@@ -1,6 +1,14 @@ |
25 |
# ChangeLog for sys-cluster/ganglia |
26 |
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/sys-cluster/ganglia/ChangeLog,v 1.15 2008/03/28 19:36:17 jsbronder Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/ganglia/ChangeLog,v 1.16 2008/08/04 23:17:11 jsbronder Exp $ |
29 |
+ |
30 |
+*ganglia-3.1.0 (04 Aug 2008) |
31 |
+ |
32 |
+ 04 Aug 2008; Justin Bronder <jsbronder@g.o> |
33 |
+ +files/ganglia-3.1-gmond-python-tcpconn-concurrency.patch, |
34 |
+ +ganglia-3.1.0.ebuild: |
35 |
+ Version bump, thanks to Carlo Marcelo Arenas Belon for help with the ebuild. |
36 |
+ #233440 |
37 |
|
38 |
28 Mar 2008; Justin Bronder <jsbronder@g.o> ganglia-3.0.7.ebuild: |
39 |
Correctly depend on httpd-php-5 without breaking the cache. |
40 |
|
41 |
|
42 |
|
43 |
1.1 sys-cluster/ganglia/ganglia-3.1.0.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-cluster/ganglia/ganglia-3.1.0.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-cluster/ganglia/ganglia-3.1.0.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: ganglia-3.1.0.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2008 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.0.ebuild,v 1.1 2008/08/04 23:17:11 jsbronder Exp $ |
53 |
|
54 |
WEBAPP_OPTIONAL="yes" |
55 |
inherit multilib webapp depend.php python |
56 |
|
57 |
DESCRIPTION="A scalable distributed monitoring system for clusters and grids" |
58 |
HOMEPAGE="http://ganglia.sourceforge.net/" |
59 |
SRC_URI="mirror://sourceforge/ganglia/${P}.tar.gz" |
60 |
LICENSE="BSD" |
61 |
|
62 |
WEBAPP_MANUAL_SLOT="yes" |
63 |
SLOT="0" |
64 |
KEYWORDS="~amd64 ~ppc ~x86" |
65 |
IUSE="minimal vhosts python" |
66 |
|
67 |
DEPEND=" |
68 |
dev-libs/confuse |
69 |
dev-libs/expat |
70 |
>=dev-libs/apr-1.0 |
71 |
python? ( >=dev-lang/python-2.3 )" |
72 |
|
73 |
RDEPEND=" |
74 |
${DEPEND} |
75 |
!minimal? ( net-analyzer/rrdtool |
76 |
${WEBAPP_DEPEND} |
77 |
=virtual/httpd-php-5* )" |
78 |
|
79 |
pkg_setup() { |
80 |
if ! use minimal ; then |
81 |
require_gd |
82 |
require_php_with_use xml ctype |
83 |
webapp_pkg_setup |
84 |
fi |
85 |
} |
86 |
|
87 |
src_unpack() { |
88 |
unpack ${A} |
89 |
cd "${S}" |
90 |
epatch "${FILESDIR}"/ganglia-3.1-gmond-python-tcpconn-concurrency.patch |
91 |
} |
92 |
|
93 |
src_compile() { |
94 |
econf \ |
95 |
--enable-gexec \ |
96 |
$(use_enable python) \ |
97 |
$(use_with !minimal gmetad) || die "econf failed" |
98 |
|
99 |
emake || die "emake failed" |
100 |
} |
101 |
|
102 |
src_install() { |
103 |
emake DESTDIR="${D}" install || die "emake install failed" |
104 |
|
105 |
newinitd "${FILESDIR}"/gmond.rc gmond |
106 |
doman mans/{gmetric.1,gmond.1,gstat.1} |
107 |
doman gmond/gmond.conf.5 |
108 |
dodoc AUTHORS ChangeLog INSTALL NEWS README |
109 |
dodir /etc/ganglia/conf.d |
110 |
gmond/gmond -t > "${D}"/etc/ganglia/gmond.conf |
111 |
|
112 |
if use python; then |
113 |
# Sadly, there is no install target for any of this. |
114 |
mv gmond/modules/python/README "${T}"/README.python_modules |
115 |
dodoc "${T}"/README.python_modules |
116 |
insinto /etc/ganglia/conf.d |
117 |
# multidisk/diskusage python metric skipped until fixed for gentoo |
118 |
doins gmond/modules/conf.d/modpython.conf |
119 |
doins gmond/python_modules/conf.d/tcpconn.pyconf |
120 |
dodir /usr/$(get_libdir)/ganglia/python_modules |
121 |
insinto /usr/$(get_libdir)/ganglia/python_modules |
122 |
doins gmond/python_modules/network/tcpconn.py |
123 |
fi |
124 |
|
125 |
insinto /etc/ganglia |
126 |
if ! use minimal; then |
127 |
doins gmetad/gmetad.conf |
128 |
doman mans/gmetad.1 |
129 |
keepdir /var/lib/ganglia/rrds |
130 |
fowners nobody:nobody /var/lib/ganglia/rrds |
131 |
newinitd "${FILESDIR}"/gmetad.rc gmetad |
132 |
|
133 |
webapp_src_preinst |
134 |
insinto "${MY_HTDOCSDIR}" |
135 |
doins -r web/* |
136 |
|
137 |
webapp_configfile "${MY_HTDOCSDIR}"/conf.php |
138 |
webapp_src_install |
139 |
fi |
140 |
} |
141 |
|
142 |
pkg_preinst() { |
143 |
if has_version '<sys-cluster/ganglia-3.1.0'; then |
144 |
elog "Previous ganglia installation detected." |
145 |
elog "Copying gmetad configuration to /etc/ganglia" |
146 |
elog "You may have to remove /etc/gmond.conf yourself." |
147 |
mkdir -p "${D}"/etc/ganglia |
148 |
[ -f "${ROOT}"etc/gmetad.conf ] \ |
149 |
&& cp "${ROOT}"etc/gmetad.conf "${D}"/etc/ganglia |
150 |
fi |
151 |
} |
152 |
|
153 |
pkg_postinst() { |
154 |
elog "A default configuration file for gmond has been generated" |
155 |
elog "for you as a template by running:" |
156 |
elog " /usr/sbin/gmond -t > /etc/ganglia/gmond.conf" |
157 |
elog "customize it from there or provide your own but be aware" |
158 |
elog "the format has changed since 3.0 and so you won't be able" |
159 |
elog "to use your current configuration (if you generated any)" |
160 |
elog "in /etc/gmond.conf directly" |
161 |
|
162 |
use minimal || webapp_pkg_postinst |
163 |
|
164 |
use python && \ |
165 |
python_mod_optimize /usr/$(get_libdir)/ganglia/python_modules/ |
166 |
} |
167 |
|
168 |
pkg_prerm() { |
169 |
use minimal || webapp_pkg_prerm |
170 |
} |
171 |
|
172 |
pkg_postrm() { |
173 |
use python && \ |
174 |
python_mod_cleanup /usr/$(get_libdir)/ganglia/python_modules/ |
175 |
[ -d /usr/$(get_libdir)/ganglia ] && rmdir /usr/$(get_libdir)/ganglia |
176 |
} |