Gentoo Archives: gentoo-commits

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-cluster/pacemaker/
Date: Sat, 01 Jan 2022 10:48:27
Message-Id: 1641034082.bb74aef6ad00a1e26ccc5d8d10328dd5bf1ae3f7.ulm@gentoo
1 commit: bb74aef6ad00a1e26ccc5d8d10328dd5bf1ae3f7
2 Author: Marco Scardovi <marco <AT> scardovi <DOT> com>
3 AuthorDate: Sun Dec 12 06:45:14 2021 +0000
4 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
5 CommitDate: Sat Jan 1 10:48:02 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bb74aef6
7
8 sys-cluster/pacemaker: bump to 2.1.2 and EAPI 8
9
10 Package-Manager: Portage-3.0.29, Repoman-3.0.3
11 Signed-off-by: Marco Scardovi <marco <AT> scardovi.com>
12 Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>
13
14 sys-cluster/pacemaker/Manifest | 1 +
15 sys-cluster/pacemaker/pacemaker-2.1.2.ebuild | 75 ++++++++++++++++++++++++++++
16 2 files changed, 76 insertions(+)
17
18 diff --git a/sys-cluster/pacemaker/Manifest b/sys-cluster/pacemaker/Manifest
19 index f786c4c0da80..f102e5a0dd85 100644
20 --- a/sys-cluster/pacemaker/Manifest
21 +++ b/sys-cluster/pacemaker/Manifest
22 @@ -1 +1,2 @@
23 DIST Pacemaker-2.0.5.tar.gz 5434850 BLAKE2B 4e3d24746978fe0785dd9c415cc3779a2bd06f78d8bcd3353cdab8c93b192db8a017d404f6d5e27852369e8db2dc1ee4a2c4c7806ebb1aad5381d1c5b5a681dc SHA512 5fd3614f0284297babb66ea2dc567583315052fcf77f49107c52161e8e8c164ae3169d98528fdc1316d8eabaacc98ed24e9c6e6c90b3286f2f012a4ee874bbba
24 +DIST Pacemaker-2.1.2.tar.gz 5092063 BLAKE2B 04689762cd3767fec35fc577b79007e7004411d4bb8676a0410c75619c35d1f158811555ea7d156accbb3e75a427128ab735ca21ad177934634b27fe2837175f SHA512 5c30ac5c371bb1f37215a9cf3e2eec701f7e4133252401dd2793b0908f2192de1d0b625cc37d84dfc9fd0885039c4d88e617110135c5e1a16c40cd3218603c26
25
26 diff --git a/sys-cluster/pacemaker/pacemaker-2.1.2.ebuild b/sys-cluster/pacemaker/pacemaker-2.1.2.ebuild
27 new file mode 100644
28 index 000000000000..cce5b69b1d0a
29 --- /dev/null
30 +++ b/sys-cluster/pacemaker/pacemaker-2.1.2.ebuild
31 @@ -0,0 +1,75 @@
32 +# Copyright 1999-2021 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=8
36 +PYTHON_COMPAT=( python3_{8..10} )
37 +
38 +inherit autotools python-single-r1
39 +
40 +MY_P="${PN^}-${PV/_/-}"
41 +
42 +DESCRIPTION="Pacemaker CRM"
43 +HOMEPAGE="http://www.linux-ha.org/wiki/Pacemaker"
44 +SRC_URI="https://github.com/ClusterLabs/${PN}/archive/${MY_P}.tar.gz"
45 +
46 +LICENSE="GPL-2"
47 +SLOT="0"
48 +KEYWORDS="~amd64 ~hppa ~x86"
49 +IUSE="acl smtp snmp"
50 +
51 +DEPEND="
52 + ${PYTHON_DEPS}
53 + app-text/docbook-xsl-stylesheets
54 + dev-libs/libxslt
55 + >=sys-cluster/cluster-glue-1.0.12-r1
56 + >=sys-cluster/libqb-2.0.0:=
57 + sys-cluster/resource-agents
58 + sys-cluster/corosync
59 + smtp? ( net-libs/libesmtp )
60 + snmp? ( net-analyzer/net-snmp )
61 +"
62 +RDEPEND="${DEPEND}"
63 +
64 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
65 +
66 +S="${WORKDIR}/${PN}-${MY_P}"
67 +
68 +src_prepare() {
69 + default
70 + sed -i -e "s/ -ggdb//g" configure.ac || die
71 + eautoreconf
72 +}
73 +
74 +src_configure() {
75 + # appends lib to localstatedir automatically
76 + local myconf=(
77 + --with-ocfdir=/usr/$(get_libdir)/ocf
78 + --localstatedir=/var
79 + --disable-fatal-warnings
80 + --disable-static
81 + --without-cs-quorum
82 + --without-cman
83 + --without-heartbeat
84 + --with-corosync
85 + --with-ais
86 + $(use_with acl)
87 + $(use_with smtp esmtp)
88 + $(use_with snmp)
89 + )
90 +
91 + econf "${myconf[@]}"
92 +}
93 +
94 +src_install() {
95 + default
96 + python_optimize
97 +
98 + # remove provided initd file as we need support for OpenRC
99 + rm -r "${ED}/var/run" "${ED}/etc/init.d" || die "Failed to remove old initd"
100 + newinitd "${FILESDIR}/${PN}.initd" "${PN}"
101 +
102 + keepdir /var/lib/pacemaker/{blackbox,cib,cores,pengine}
103 + keepdir /var/log/pacemaker/bundles
104 +
105 + find "${ED}" -name '*.la' -delete || die
106 +}