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 51173139345 for ; Sun, 18 Jul 2021 16:18:06 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 342D7E0CD4; Sun, 18 Jul 2021 16:18:05 +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 1D38FE0CCF for ; Sun, 18 Jul 2021 16:18:05 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 22C17342B85 for ; Sun, 18 Jul 2021 16:18:04 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1B5177DD for ; Sun, 18 Jul 2021 16:18:01 +0000 (UTC) From: "Conrad Kostecki" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Conrad Kostecki" Message-ID: <1626625054.e87eeb1c53ae3e1343842543820e45f8abcce957.conikost@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-cluster/cluster-glue/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-cluster/cluster-glue/cluster-glue-1.0.12-r2.ebuild X-VCS-Directories: sys-cluster/cluster-glue/ X-VCS-Committer: conikost X-VCS-Committer-Name: Conrad Kostecki X-VCS-Revision: e87eeb1c53ae3e1343842543820e45f8abcce957 X-VCS-Branch: master Date: Sun, 18 Jul 2021 16:18:01 +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: b35d5504-6f08-4073-9fed-7bb376830d8e X-Archives-Hash: b309eb7c473ea98e8ae1767846e3a24b commit: e87eeb1c53ae3e1343842543820e45f8abcce957 Author: Conrad Kostecki gentoo org> AuthorDate: Sun Jul 18 11:30:34 2021 +0000 Commit: Conrad Kostecki gentoo org> CommitDate: Sun Jul 18 16:17:34 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e87eeb1c sys-cluster/cluster-glue: migrate to glep 81 Bug: https://bugs.gentoo.org/781497 Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Conrad Kostecki gentoo.org> .../cluster-glue/cluster-glue-1.0.12-r2.ebuild | 91 ++++++++++++++++++++++ 1 file changed, 91 insertions(+) diff --git a/sys-cluster/cluster-glue/cluster-glue-1.0.12-r2.ebuild b/sys-cluster/cluster-glue/cluster-glue-1.0.12-r2.ebuild new file mode 100644 index 00000000000..c3100b232fb --- /dev/null +++ b/sys-cluster/cluster-glue/cluster-glue-1.0.12-r2.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +MY_P="${P/cluster-}" + +inherit autotools flag-o-matic multilib + +DESCRIPTION="Library pack for Heartbeat / Pacemaker" +HOMEPAGE="http://www.linux-ha.org/wiki/Cluster_Glue" +SRC_URI="http://hg.linux-ha.org/glue/archive/${MY_P}.tar.bz2" +S="${WORKDIR}/Reusable-Cluster-Components-glue--${MY_P}" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~hppa x86" +IUSE="doc ipmilan libnet static-libs" + +RDEPEND=" + acct-group/haclient + acct-user/hacluster + app-arch/bzip2 + app-text/asciidoc + app-text/docbook-xml-dtd:4.4 + dev-libs/glib:2 + dev-libs/libaio + dev-libs/libltdl:= + dev-libs/libxml2 + ipmilan? ( sys-libs/openipmi ) + libnet? ( net-libs/libnet:1.1 ) + net-misc/curl + net-misc/iputils + || ( net-misc/netkit-telnetd net-misc/telnet-bsd ) +" +DEPEND=" + ${RDEPEND} + doc? ( + dev-libs/libxslt + app-text/docbook-xsl-stylesheets + ) +" + +src_prepare() { + default + sed -e 's/\\$(/$(/g' -e '/ -ggdb/d;/-fstack-protector-all/d' -i configure.ac || die + sed -e "s@http://docbook.sourceforge.net/release/xsl/current@/usr/share/sgml/docbook/xsl-stylesheets/@g" \ + -i doc/Makefile.am || die + eautoreconf +} + +src_configure() { + append-cppflags -DOPENIPMI_DEFINE_SELECTOR_T + + local myeconfargs=( + $(use_enable ipmilan) + $(use_enable libnet) + $(use_enable static-libs static) + $(usex doc '--enable-doc' '') + --disable-fatal-warnings + --localstatedir=/var + --with-ocf-root=/usr/$(get_libdir)/ocf + --with-group-id=$(id -g hacluster) + --with-ccmuser-id=$(id -u hacluster) + --with-daemon-user=hacluster --with-daemon-group=haclient + ) + + econf "${myeconfargs[@]}" +} + +src_install() { + default + + keepdir /var/lib/heartbeat/cores/{hacluster,nobody,root} + keepdir /var/lib/heartbeat/lrm + + # init.d file + cp "${FILESDIR}"/heartbeat-logd.init "${T}/" || die + sed -i \ + -e "s:%libdir%:$(get_libdir):" \ + "${T}/heartbeat-logd.init" || die + # newinitd "${T}/heartbeat-logd.init" heartbeat-logd + rm "${D}"/etc/init.d/logd + + use static-libs || find "${D}" -type f -name "*.la" -delete +} + +pkg_postinst() { + chown -R hacluster:haclient /var/lib/heartbeat/cores + chown -R hacluster:haclient /var/lib/heartbeat/lrm +}