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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Fri Dec 26 12:44:25 2014 UTC (5 years ago) by mgorny
Branch: MAIN
CVS Tags: HEAD
Convert to python-single-r1.

(Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key EFB4464E!)

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

  ViewVC Help
Powered by ViewVC 1.1.20