Gentoo Archives: gentoo-commits

From: Alexys Jacob <ultrabug@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-cluster/pacemaker/
Date: Fri, 15 Nov 2019 21:53:01
Message-Id: 1573854765.43d97f36b607be3536627591c225a23e11a81215.ultrabug@gentoo
1 commit: 43d97f36b607be3536627591c225a23e11a81215
2 Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
3 AuthorDate: Thu Oct 31 00:40:21 2019 +0000
4 Commit: Alexys Jacob <ultrabug <AT> gentoo <DOT> org>
5 CommitDate: Fri Nov 15 21:52:45 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=43d97f36
7
8 sys-cluster/pacemaker: python compats, disable static lib
9
10 Since no other packages require the static libraries built
11 by pacemaker, I'll disable them as suggested by the links
12 below
13 https://flameeyes.blog/2011/08/29/useless-flag-static-libs/
14 https://archives.gentoo.org/gentoo-dev/message/2dada80c2b9c85b0e83e6328428bf8ab
15
16 Package-Manager: Portage-2.3.77, Repoman-2.3.17
17 Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
18 Closes: https://github.com/gentoo/gentoo/pull/13442
19 Signed-off-by: Alexys Jacob <ultrabug <AT> gentoo.org>
20
21 sys-cluster/pacemaker/pacemaker-1.1.19-r1.ebuild | 80 ++++++++++++++++++++++++
22 1 file changed, 80 insertions(+)
23
24 diff --git a/sys-cluster/pacemaker/pacemaker-1.1.19-r1.ebuild b/sys-cluster/pacemaker/pacemaker-1.1.19-r1.ebuild
25 new file mode 100644
26 index 00000000000..ed65ac8337a
27 --- /dev/null
28 +++ b/sys-cluster/pacemaker/pacemaker-1.1.19-r1.ebuild
29 @@ -0,0 +1,80 @@
30 +# Copyright 1999-2019 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=7
34 +PYTHON_COMPAT=( python2_7 python3_{5,6,7} )
35 +
36 +inherit autotools python-single-r1
37 +
38 +MY_PN="${PN^}"
39 +MY_P="${MY_PN}-${PV/_/-}"
40 +
41 +DESCRIPTION="Pacemaker CRM"
42 +HOMEPAGE="http://www.linux-ha.org/wiki/Pacemaker"
43 +SRC_URI="https://github.com/ClusterLabs/${PN}/archive/${MY_P}.tar.gz"
44 +
45 +LICENSE="GPL-2"
46 +SLOT="0"
47 +KEYWORDS="~amd64 ~hppa ~x86"
48 +IUSE="acl heartbeat smtp snmp"
49 +
50 +DEPEND="${PYTHON_DEPS}
51 + app-text/docbook-xsl-stylesheets
52 + dev-libs/libxslt
53 + sys-cluster/cluster-glue
54 + >=sys-cluster/libqb-0.14.0
55 + sys-cluster/resource-agents
56 +
57 + heartbeat? ( >=sys-cluster/heartbeat-3.0.0 )
58 + !heartbeat? ( 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 + python_fix_shebang .
73 +}
74 +
75 +src_configure() {
76 + # appends lib to localstatedir automatically
77 + local myconf=(
78 + --libdir="/usr/$(get_libdir)"
79 + --localstatedir=/var
80 + --disable-dependency-tracking
81 + --disable-fatal-warnings
82 + --disable-static
83 + --without-cs-quorum
84 + --without-cman
85 + $(use_with acl)
86 + $(use_with heartbeat)
87 + $(use_with smtp esmtp)
88 + $(use_with snmp)
89 + )
90 +
91 + if use heartbeat ; then
92 + myconf+=( --without-corosync )
93 + else
94 + myconf+=( --with-ais )
95 + fi
96 +
97 + econf "${myconf[@]}"
98 +}
99 +
100 +src_install() {
101 + default
102 + rm -rf "${D}/var/run" "${D}/etc/init.d"
103 + newinitd "${FILESDIR}/${PN}.initd" "${PN}" || die
104 + if has_version "<sys-cluster/corosync-2.0"; then
105 + insinto /etc/corosync/service.d
106 + newins "${FILESDIR}/${PN}.service" "${PN}" || die
107 + fi
108 + find "${D}" -name '*.la' -delete || die
109 +}