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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Wed Aug 5 13:04:54 2015 UTC (4 years, 5 months ago) by jsbronder
Branch: MAIN
CVS Tags: HEAD
bump, resolves #510286 (add systemd unit) and #435784 (calling gcc/ar/ranlib directly)

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

1 # Copyright 1999-2015 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.2 2014/12/30 17:34:23 jsbronder Exp $
4
5 EAPI=5
6
7 PYTHON_COMPAT=( python2_7 )
8
9 inherit eutils multilib python-single-r1 systemd
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 --with-systemdsystemunitdir=$(systemd_get_unitdir) \
40 --enable-gexec \
41 --sysconfdir="${EPREFIX}"/etc/${PN} \
42 --enable-static=no \
43 $(use_enable python) \
44 $(use_with pcre libpcre) \
45 $(use_with !minimal gmetad)
46 }
47
48 src_install() {
49 local exdir=/usr/share/doc/${P}
50
51 emake DESTDIR="${D}" install || die
52
53 newinitd "${FILESDIR}"/gmond.rc-2 gmond
54 doman {mans/*.1,gmond/*.5} || die "Failed to install manpages"
55 dodoc AUTHORS INSTALL NEWS README || die
56
57 dodir /etc/ganglia/conf.d
58 use python && dodir /usr/$(get_libdir)/ganglia/python_modules
59 gmond/gmond -t > "${ED}"/etc/ganglia/gmond.conf
60
61 if use examples; then
62 insinto ${exdir}/cmod-examples
63 doins gmond/modules/example/*.c
64 if use python; then
65 # Installing as an examples per upstream.
66 insinto ${exdir}/pymod-examples
67 doins gmond/python_modules/*/*.py
68 insinto ${exdir}/pymod-examples/conf.d
69 doins gmond/python_modules/conf.d/*.pyconf
70 fi
71 fi
72
73 if ! use minimal; then
74 insinto /etc/ganglia
75 doins gmetad/gmetad.conf
76 doman mans/gmetad.1
77
78 newinitd "${FILESDIR}"/gmetad.rc-2 gmetad
79 keepdir /var/lib/ganglia/rrds
80 fowners nobody:nobody /var/lib/ganglia/rrds
81 fi
82 }
83
84 pkg_postinst() {
85 elog "A default configuration file for gmond has been generated"
86 elog "for you as a template by running:"
87 elog " /usr/sbin/gmond -t > /etc/ganglia/gmond.conf"
88
89 elog "The web frontend for Ganglia has been split off. Emerge"
90 elog "sys-cluster/ganglia-web if you need it."
91 }

  ViewVC Help
Powered by ViewVC 1.1.20