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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Dec 30 17:34:23 2014 UTC (5 years ago) by jsbronder
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +4 -1 lines
Unconditionally disable systemd unit building until the make rule is fixed (#533598).  See #510286 for enabling the unit.

(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 4D7043C9)

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.6.0-r1.ebuild,v 1.1 2014/12/26 12:44:25 mgorny 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 # systemd unit building fails, this can probably be re-enabled in the next
39 # release (#533598)
40 econf \
41 --without-systemdsystemunitdir \
42 --enable-gexec \
43 --sysconfdir="${EPREFIX}"/etc/${PN} \
44 --enable-static=no \
45 $(use_enable python) \
46 $(use_with pcre libpcre) \
47 $(use_with !minimal gmetad)
48 }
49
50 src_install() {
51 local exdir=/usr/share/doc/${P}
52
53 emake DESTDIR="${D}" install || die
54
55 newinitd "${FILESDIR}"/gmond.rc-2 gmond
56 doman {mans/*.1,gmond/*.5} || die "Failed to install manpages"
57 dodoc AUTHORS INSTALL NEWS README || die
58
59 dodir /etc/ganglia/conf.d
60 use python && dodir /usr/$(get_libdir)/ganglia/python_modules
61 gmond/gmond -t > "${ED}"/etc/ganglia/gmond.conf
62
63 if use examples; then
64 insinto ${exdir}/cmod-examples
65 doins gmond/modules/example/*.c
66 if use python; then
67 # Installing as an examples per upstream.
68 insinto ${exdir}/pymod-examples
69 doins gmond/python_modules/*/*.py
70 insinto ${exdir}/pymod-examples/conf.d
71 doins gmond/python_modules/conf.d/*.pyconf
72 fi
73 fi
74
75 if ! use minimal; then
76 insinto /etc/ganglia
77 doins gmetad/gmetad.conf
78 doman mans/gmetad.1
79
80 newinitd "${FILESDIR}"/gmetad.rc-2 gmetad
81 keepdir /var/lib/ganglia/rrds
82 fowners nobody:nobody /var/lib/ganglia/rrds
83 fi
84 }
85
86 pkg_postinst() {
87 elog "A default configuration file for gmond has been generated"
88 elog "for you as a template by running:"
89 elog " /usr/sbin/gmond -t > /etc/ganglia/gmond.conf"
90
91 elog "The web frontend for Ganglia has been split off. Emerge"
92 elog "sys-cluster/ganglia-web if you need it."
93 }

  ViewVC Help
Powered by ViewVC 1.1.20