1 |
jsbronder 10/07/03 02:44:24 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: ganglia-3.1.7-r1.ebuild |
5 |
Log: |
6 |
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. |
7 |
(Portage version: 2.2_rc67/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.36 sys-cluster/ganglia/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/ganglia/ChangeLog?rev=1.36&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/ganglia/ChangeLog?rev=1.36&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/ganglia/ChangeLog?r1=1.35&r2=1.36 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/sys-cluster/ganglia/ChangeLog,v |
19 |
retrieving revision 1.35 |
20 |
retrieving revision 1.36 |
21 |
diff -u -r1.35 -r1.36 |
22 |
--- ChangeLog 23 Apr 2010 03:50:43 -0000 1.35 |
23 |
+++ ChangeLog 3 Jul 2010 02:44:24 -0000 1.36 |
24 |
@@ -1,6 +1,14 @@ |
25 |
# ChangeLog for sys-cluster/ganglia |
26 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/sys-cluster/ganglia/ChangeLog,v 1.35 2010/04/23 03:50:43 jsbronder Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/ganglia/ChangeLog,v 1.36 2010/07/03 02:44:24 jsbronder Exp $ |
29 |
+ |
30 |
+*ganglia-3.1.7-r1 (03 Jul 2010) |
31 |
+ |
32 |
+ 03 Jul 2010; Justin Bronder <jsbronder@g.o> |
33 |
+ +ganglia-3.1.7-r1.ebuild: |
34 |
+ Update python handling (#316933). Install pymods as examples per upstream. |
35 |
+ Remove warnings about versions that are not in the tree. Drop now useless |
36 |
+ pkg_config. |
37 |
|
38 |
*ganglia-3.1.7 (23 Apr 2010) |
39 |
|
40 |
|
41 |
|
42 |
|
43 |
1.1 sys-cluster/ganglia/ganglia-3.1.7-r1.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/ganglia/ganglia-3.1.7-r1.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/ganglia/ganglia-3.1.7-r1.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: ganglia-3.1.7-r1.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-r1.ebuild,v 1.1 2010/07/03 02:44:24 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,pcre,cgi] |
82 |
media-fonts/dejavu |
83 |
)" |
84 |
|
85 |
pkg_setup() { |
86 |
if use python; then |
87 |
python_set_active_version 2 |
88 |
python_pkg_setup |
89 |
fi |
90 |
use minimal || webapp_pkg_setup |
91 |
} |
92 |
|
93 |
src_prepare() { |
94 |
# This patch just gives a group to the disk statistics. |
95 |
# I.E. it's just cosmetics |
96 |
epatch "${FILESDIR}"/${PN}-3.1.1-multidisk-group.patch |
97 |
} |
98 |
|
99 |
src_configure() { |
100 |
econf \ |
101 |
--enable-gexec \ |
102 |
--sysconfdir="${EPREFIX}"/etc/${PN} \ |
103 |
$(use_enable python) \ |
104 |
$(use_with !minimal gmetad) || die "econf failed" |
105 |
} |
106 |
|
107 |
src_install() { |
108 |
local exdir=/usr/share/doc/${P} |
109 |
|
110 |
emake DESTDIR="${D}" install || die "emake install failed" |
111 |
|
112 |
newinitd "${FILESDIR}"/gmond.rc gmond |
113 |
doman {mans/*.1,gmond/*.5} || die "Failed to install manpages" |
114 |
dodoc AUTHORS ChangeLog INSTALL NEWS README || die |
115 |
|
116 |
dodir /etc/ganglia/conf.d |
117 |
gmond/gmond -t > "${ED}"/etc/ganglia/gmond.conf |
118 |
|
119 |
if use examples; then |
120 |
insinto ${exdir}/cmod-examples |
121 |
doins gmond/modules/example/*.c |
122 |
if use python; then |
123 |
# Installing as an examples per upstream. |
124 |
insinto ${exdir}/pymod-examples |
125 |
doins gmond/python_modules/*/*.py |
126 |
insinto ${exdir}/pymod-examples/conf.d |
127 |
doins gmond/python_modules/conf.d/*.pyconf |
128 |
fi |
129 |
fi |
130 |
|
131 |
if ! use minimal; then |
132 |
webapp_src_preinst |
133 |
insinto "${MY_HTDOCSDIR}" |
134 |
doins -r web/* |
135 |
webapp_configfile "${MY_HTDOCSDIR}"/conf.php |
136 |
webapp_src_install |
137 |
|
138 |
# webapp_src_install stomps on permissions, so do that |
139 |
# stuff first. |
140 |
insinto /etc/ganglia |
141 |
doins gmetad/gmetad.conf |
142 |
doman mans/gmetad.1 |
143 |
|
144 |
newinitd "${FILESDIR}"/gmetad.rc gmetad |
145 |
keepdir /var/lib/ganglia/rrds |
146 |
fowners nobody:nobody /var/lib/ganglia/rrds |
147 |
fi |
148 |
} |
149 |
|
150 |
pkg_postinst() { |
151 |
elog "A default configuration file for gmond has been generated" |
152 |
elog "for you as a template by running:" |
153 |
elog " /usr/sbin/gmond -t > /etc/ganglia/gmond.conf" |
154 |
|
155 |
use minimal || webapp_pkg_postinst |
156 |
} |
157 |
|
158 |
pkg_prerm() { |
159 |
use minimal || webapp_pkg_prerm |
160 |
} |
161 |
|
162 |
pkg_postrm() { |
163 |
[ -d "${ROOT}"/usr/$(get_libdir)/ganglia ] && \ |
164 |
rmdir "${ROOT}"/usr/$(get_libdir)/ganglia 2>/dev/null |
165 |
} |