Gentoo Archives: gentoo-commits

From: Jeroen Roovers <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-cluster/cluster-glue/
Date: Sun, 30 Sep 2018 13:34:11
Message-Id: 1538314435.4450ee57aec67aed3f9c4ee37ed3457488b7a559.jer@gentoo
1 commit: 4450ee57aec67aed3f9c4ee37ed3457488b7a559
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Sun Sep 30 13:31:27 2018 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Sun Sep 30 13:33:55 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4450ee57
7
8 sys-cluster/cluster-glue: Fix implicit openipmi dependency
9
10 * Depend on sys-libs/openipmi if USE=ipmilan
11 * Fix selector_t compile error with >openipmi-2.0.22
12 * Drop -fstack-protector-all while we're there
13
14 Fixes: https://bugs.gentoo.org/653248
15 Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>
16
17 .../cluster-glue/cluster-glue-1.0.12-r1.ebuild | 96 ++++++++++++++++++++++
18 sys-cluster/cluster-glue/metadata.xml | 1 +
19 2 files changed, 97 insertions(+)
20
21 diff --git a/sys-cluster/cluster-glue/cluster-glue-1.0.12-r1.ebuild b/sys-cluster/cluster-glue/cluster-glue-1.0.12-r1.ebuild
22 new file mode 100644
23 index 00000000000..74f9306385a
24 --- /dev/null
25 +++ b/sys-cluster/cluster-glue/cluster-glue-1.0.12-r1.ebuild
26 @@ -0,0 +1,96 @@
27 +# Copyright 1999-2018 Gentoo Authors
28 +# Distributed under the terms of the GNU General Public License v2
29 +
30 +EAPI=6
31 +
32 +MY_P="${P/cluster-}"
33 +inherit autotools eutils flag-o-matic multilib user
34 +
35 +DESCRIPTION="Library pack for Heartbeat / Pacemaker"
36 +HOMEPAGE="http://www.linux-ha.org/wiki/Cluster_Glue"
37 +SRC_URI="http://hg.linux-ha.org/glue/archive/${MY_P}.tar.bz2"
38 +
39 +LICENSE="GPL-2"
40 +SLOT="0"
41 +KEYWORDS="~amd64 ~hppa ~x86"
42 +IUSE="doc ipmilan libnet static-libs"
43 +
44 +RDEPEND="
45 + !<sys-cluster/heartbeat-3.0
46 + app-arch/bzip2
47 + app-text/asciidoc
48 + app-text/docbook-xml-dtd:4.4
49 + dev-libs/glib:2
50 + dev-libs/libaio
51 + dev-libs/libxml2
52 + ipmilan? ( sys-libs/openipmi )
53 + libnet? ( net-libs/libnet:1.1 )
54 + net-misc/curl
55 + net-misc/iputils
56 + || ( net-misc/netkit-telnetd net-misc/telnet-bsd )
57 +"
58 +DEPEND="${RDEPEND}
59 + doc? (
60 + dev-libs/libxslt
61 + app-text/docbook-xsl-stylesheets
62 + )"
63 +
64 +S="${WORKDIR}/Reusable-Cluster-Components-glue--${MY_P}"
65 +
66 +pkg_setup() {
67 + enewgroup haclient
68 + enewuser hacluster -1 /dev/null /var/lib/heartbeat haclient
69 +}
70 +
71 +src_prepare() {
72 + default
73 + sed -e '/ -ggdb/d;/-fstack-protector-all/d' -i configure.ac || die
74 + sed -e "s@http://docbook.sourceforge.net/release/xsl/current@/usr/share/sgml/docbook/xsl-stylesheets/@g" \
75 + -i doc/Makefile.am || die
76 + eautoreconf
77 +}
78 +
79 +src_configure() {
80 + append-cppflags -DOPENIPMI_DEFINE_SELECTOR_T
81 + local myopts
82 +
83 + use doc && myopts=" --enable-doc"
84 + econf \
85 + $(use_enable ipmilan) \
86 + $(use_enable libnet) \
87 + $(use_enable static-libs static) \
88 + --disable-fatal-warnings \
89 + --disable-dependency-tracking \
90 + --docdir=/usr/share/doc/${PF} \
91 + --localstatedir=/var \
92 + --with-ocf-root=/usr/$(get_libdir)/ocf \
93 + ${myopts} \
94 + --with-group-id=$(id -g hacluster) \
95 + --with-ccmuser-id=$(id -u hacluster) \
96 + --with-daemon-user=hacluster --with-daemon-group=haclient
97 +}
98 +
99 +src_install() {
100 + default
101 +
102 + dodir /var/lib/heartbeat/cores
103 + dodir /var/lib/heartbeat/lrm
104 +
105 + keepdir /var/lib/heartbeat/cores
106 + keepdir /var/lib/heartbeat/lrm
107 +
108 + # init.d file
109 + cp "${FILESDIR}"/heartbeat-logd.init "${T}/" || die
110 + sed -i \
111 + -e "s:%libdir%:$(get_libdir):" \
112 + "${T}/heartbeat-logd.init" || die
113 +# newinitd "${T}/heartbeat-logd.init" heartbeat-logd || die
114 + rm "${D}"/etc/init.d/logd
115 +
116 + use static-libs || find "${D}" -type f -name "*.la" -delete
117 +}
118 +
119 +pkg_postinst() {
120 + chown -R hacluster:haclient /var/lib/heartbeat/cores
121 + chown -R hacluster:haclient /var/lib/heartbeat/lrm
122 +}
123
124 diff --git a/sys-cluster/cluster-glue/metadata.xml b/sys-cluster/cluster-glue/metadata.xml
125 index c8788d4ba45..a3716ef230b 100644
126 --- a/sys-cluster/cluster-glue/metadata.xml
127 +++ b/sys-cluster/cluster-glue/metadata.xml
128 @@ -7,6 +7,7 @@
129 </maintainer>
130 <longdescription>Cluster Glue is a set of libraries, tools and utilities suitable for the Heartbeat/Pacemaker cluster stack.</longdescription>
131 <use>
132 + <flag name="ipmilan">Install the ipmilan plugin (requires <pkg>sys-libs/openipmi</pkg>)</flag>
133 <flag name="libnet">Force use of <pkg>net-libs/libnet</pkg></flag>
134 </use>
135 </pkgmetadata>