From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 4C96613835A for ; Fri, 25 Sep 2020 11:14:39 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 80F78E0827; Fri, 25 Sep 2020 11:14:38 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5C3DBE0827 for ; Fri, 25 Sep 2020 11:14:38 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5D239340C9A for ; Fri, 25 Sep 2020 11:14:36 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D8E51373 for ; Fri, 25 Sep 2020 11:14:34 +0000 (UTC) From: "Ulrich Müller" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ulrich Müller" Message-ID: <1601032466.347d199477828add364aa1a6849b9efe60d78d42.ulm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-cluster/ganglia/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-cluster/ganglia/ganglia-3.7.1-r2.ebuild X-VCS-Directories: sys-cluster/ganglia/ X-VCS-Committer: ulm X-VCS-Committer-Name: Ulrich Müller X-VCS-Revision: 347d199477828add364aa1a6849b9efe60d78d42 X-VCS-Branch: master Date: Fri, 25 Sep 2020 11:14:34 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 05b96c3b-59aa-48a9-a571-154879678ba4 X-Archives-Hash: a9d270a543bbaa3ba31fe65f991c7d1f commit: 347d199477828add364aa1a6849b9efe60d78d42 Author: Ulrich Müller gentoo org> AuthorDate: Fri Sep 25 11:06:05 2020 +0000 Commit: Ulrich Müller gentoo org> CommitDate: Fri Sep 25 11:14:26 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=347d1994 sys-cluster/ganglia: Fix build failure with recent glibc. Depend on net-libs/libtirpc and append necessary flags and libs. Ebuild ported to EAPI 7. Closes: https://bugs.gentoo.org/631270 Package-Manager: Portage-3.0.8, Repoman-3.0.1 Signed-off-by: Ulrich Müller gentoo.org> sys-cluster/ganglia/ganglia-3.7.1-r2.ebuild | 134 ++++++++++++++++++++++++++++ 1 file changed, 134 insertions(+) diff --git a/sys-cluster/ganglia/ganglia-3.7.1-r2.ebuild b/sys-cluster/ganglia/ganglia-3.7.1-r2.ebuild new file mode 100644 index 00000000000..584a2527ea1 --- /dev/null +++ b/sys-cluster/ganglia/ganglia-3.7.1-r2.ebuild @@ -0,0 +1,134 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python2_7 ) +DISTUTILS_OPTIONAL=1 + +inherit distutils-r1 flag-o-matic systemd toolchain-funcs + +DESCRIPTION="A scalable distributed monitoring system for clusters and grids" +HOMEPAGE="http://ganglia.sourceforge.net/" +SRC_URI="mirror://sourceforge/ganglia/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="minimal pcre python examples" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +DEPEND="dev-libs/confuse + dev-libs/expat + >=dev-libs/apr-1.0 + net-libs/libnsl:0= + net-libs/libtirpc:0= + !dev-db/firebird + pcre? ( dev-libs/libpcre ) + python? ( ${PYTHON_DEPS} )" + +RDEPEND=" + ${DEPEND} + !minimal? ( net-analyzer/rrdtool )" + +BDEPEND="virtual/pkgconfig" + +src_prepare() { + if use python && ! use minimal; then + pushd gmetad-python >/dev/null || die + distutils-r1_src_prepare + popd >/dev/null || die + else + default_src_prepare + fi +} + +src_configure() { + if use python; then + python_setup + fi + + append-flags $("$(tc-getPKG_CONFIG)" --cflags libtirpc) + append-libs $("$(tc-getPKG_CONFIG)" --libs libtirpc) + + econf \ + --with-systemdsystemunitdir=$(systemd_get_systemunitdir) \ + --enable-gexec \ + --sysconfdir="${EPREFIX}"/etc/${PN} \ + --enable-static=no \ + $(use_enable python) \ + $(use_with pcre libpcre) \ + $(use_with !minimal gmetad) +} + +src_compile() { + default_src_compile + + if use python && ! use minimal; then + pushd gmetad-python >/dev/null || die + distutils-r1_src_compile + popd >/dev/null || die + fi +} + +src_install() { + local exdir=/usr/share/doc/${P} + + emake DESTDIR="${D}" install + + newinitd "${FILESDIR}"/gmond.rc-2 gmond + doman {mans/*.1,gmond/*.5} + dodoc AUTHORS INSTALL NEWS README + + dodir /etc/ganglia/conf.d + use python && dodir /usr/$(get_libdir)/ganglia/python_modules + gmond/gmond -t > "${ED}"/etc/ganglia/gmond.conf + + if use examples; then + insinto ${exdir}/cmod-examples + doins gmond/modules/example/*.c + if use python; then + # Installing as an examples per upstream. + insinto ${exdir}/pymod-examples + doins gmond/python_modules/*/*.py + insinto ${exdir}/pymod-examples/conf.d + doins gmond/python_modules/conf.d/*.pyconf + fi + fi + + if ! use minimal; then + insinto /etc/ganglia + doins gmetad/gmetad.conf + doman mans/gmetad.1 + + newinitd "${FILESDIR}"/gmetad.rc-2 gmetad + keepdir /var/lib/ganglia/rrds + fowners nobody:nobody /var/lib/ganglia/rrds + + if use python; then + pushd gmetad-python >/dev/null || die + distutils-r1_src_install + popd >/dev/null || die + newinitd "${FILESDIR}"/gmetad-python.rc gmetad-python + fi + fi +} + +src_test() { + default_src_test + + if use python && ! use minimal; then + pushd gmetad-python >/dev/null || die + distutils-r1_src_test + popd >/dev/null || die + fi +} + +pkg_postinst() { + elog "A default configuration file for gmond has been generated" + elog "for you as a template by running:" + elog " /usr/sbin/gmond -t > /etc/ganglia/gmond.conf" + + elog "The web frontend for Ganglia has been split off. Emerge" + elog "sys-cluster/ganglia-web if you need it." +}