/[gentoo-x86]/sys-cluster/ganglia/ganglia-3.5.0.ebuild
Gentoo

Contents of /sys-cluster/ganglia/ganglia-3.5.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Tue Jul 2 08:59:28 2013 UTC (6 years, 6 months ago) by ago
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +2 -2 lines
Stable for x86, wrt bug #474094

(Portage version: 2.1.12.9/cvs/Linux x86_64, RepoMan options: --include-arches="x86", signed Manifest commit with key 7194459F)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-cluster/ganglia/ganglia-3.5.0.ebuild,v 1.3 2013/07/02 08:18:23 ago Exp $
4
5 EAPI="3"
6 PYTHON_DEPEND="python? 2"
7
8 inherit eutils multilib python
9
10 DESCRIPTION="A scalable distributed monitoring system for clusters and grids"
11 HOMEPAGE="http://ganglia.sourceforge.net/"
12 SRC_URI="mirror://sourceforge/ganglia/${P}.tar.gz"
13 LICENSE="BSD"
14
15 SLOT="0"
16 KEYWORDS="amd64 ppc x86"
17 IUSE="minimal pcre python examples"
18
19 DEPEND="dev-libs/confuse
20 dev-libs/expat
21 >=dev-libs/apr-1.0
22 !dev-db/firebird
23 pcre? ( dev-libs/libpcre )"
24
25 RDEPEND="
26 ${DEPEND}
27 !minimal? ( net-analyzer/rrdtool )"
28
29 pkg_setup() {
30 if use python; then
31 python_set_active_version 2
32 python_pkg_setup
33 fi
34 }
35
36 src_configure() {
37 econf \
38 --enable-gexec \
39 --sysconfdir="${EPREFIX}"/etc/${PN} \
40 --enable-static=no \
41 $(use_enable python) \
42 $(use_with pcre libpcre) \
43 $(use_with !minimal gmetad)
44 }
45
46 src_install() {
47 local exdir=/usr/share/doc/${P}
48
49 emake DESTDIR="${D}" install || die
50
51 newinitd "${FILESDIR}"/gmond.rc-2 gmond
52 doman {mans/*.1,gmond/*.5} || die "Failed to install manpages"
53 dodoc AUTHORS INSTALL NEWS README || die
54
55 dodir /etc/ganglia/conf.d
56 use python && dodir /usr/$(get_libdir)/ganglia/python_modules
57 gmond/gmond -t > "${ED}"/etc/ganglia/gmond.conf
58
59 if use examples; then
60 insinto ${exdir}/cmod-examples
61 doins gmond/modules/example/*.c
62 if use python; then
63 # Installing as an examples per upstream.
64 insinto ${exdir}/pymod-examples
65 doins gmond/python_modules/*/*.py
66 insinto ${exdir}/pymod-examples/conf.d
67 doins gmond/python_modules/conf.d/*.pyconf
68 fi
69 fi
70
71 if ! use minimal; then
72 insinto /etc/ganglia
73 doins gmetad/gmetad.conf
74 doman mans/gmetad.1
75
76 newinitd "${FILESDIR}"/gmetad.rc-2 gmetad
77 keepdir /var/lib/ganglia/rrds
78 fowners nobody:nobody /var/lib/ganglia/rrds
79 fi
80 }
81
82 pkg_postinst() {
83 elog "A default configuration file for gmond has been generated"
84 elog "for you as a template by running:"
85 elog " /usr/sbin/gmond -t > /etc/ganglia/gmond.conf"
86
87 elog "The web frontend for Ganglia has been split off. Emerge"
88 elog "sys-cluster/ganglia-web if you need it."
89 }

  ViewVC Help
Powered by ViewVC 1.1.20