1 |
commit: e87eeb1c53ae3e1343842543820e45f8abcce957 |
2 |
Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jul 18 11:30:34 2021 +0000 |
4 |
Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jul 18 16:17:34 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e87eeb1c |
7 |
|
8 |
sys-cluster/cluster-glue: migrate to glep 81 |
9 |
|
10 |
Bug: https://bugs.gentoo.org/781497 |
11 |
Package-Manager: Portage-3.0.20, Repoman-3.0.3 |
12 |
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org> |
13 |
|
14 |
.../cluster-glue/cluster-glue-1.0.12-r2.ebuild | 91 ++++++++++++++++++++++ |
15 |
1 file changed, 91 insertions(+) |
16 |
|
17 |
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 |
18 |
new file mode 100644 |
19 |
index 00000000000..c3100b232fb |
20 |
--- /dev/null |
21 |
+++ b/sys-cluster/cluster-glue/cluster-glue-1.0.12-r2.ebuild |
22 |
@@ -0,0 +1,91 @@ |
23 |
+# Copyright 1999-2021 Gentoo Authors |
24 |
+# Distributed under the terms of the GNU General Public License v2 |
25 |
+ |
26 |
+EAPI=7 |
27 |
+ |
28 |
+MY_P="${P/cluster-}" |
29 |
+ |
30 |
+inherit autotools flag-o-matic multilib |
31 |
+ |
32 |
+DESCRIPTION="Library pack for Heartbeat / Pacemaker" |
33 |
+HOMEPAGE="http://www.linux-ha.org/wiki/Cluster_Glue" |
34 |
+SRC_URI="http://hg.linux-ha.org/glue/archive/${MY_P}.tar.bz2" |
35 |
+S="${WORKDIR}/Reusable-Cluster-Components-glue--${MY_P}" |
36 |
+ |
37 |
+LICENSE="GPL-2" |
38 |
+SLOT="0" |
39 |
+KEYWORDS="amd64 ~hppa x86" |
40 |
+IUSE="doc ipmilan libnet static-libs" |
41 |
+ |
42 |
+RDEPEND=" |
43 |
+ acct-group/haclient |
44 |
+ acct-user/hacluster |
45 |
+ app-arch/bzip2 |
46 |
+ app-text/asciidoc |
47 |
+ app-text/docbook-xml-dtd:4.4 |
48 |
+ dev-libs/glib:2 |
49 |
+ dev-libs/libaio |
50 |
+ dev-libs/libltdl:= |
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=" |
59 |
+ ${RDEPEND} |
60 |
+ doc? ( |
61 |
+ dev-libs/libxslt |
62 |
+ app-text/docbook-xsl-stylesheets |
63 |
+ ) |
64 |
+" |
65 |
+ |
66 |
+src_prepare() { |
67 |
+ default |
68 |
+ sed -e 's/\\$(/$(/g' -e '/ -ggdb/d;/-fstack-protector-all/d' -i configure.ac || die |
69 |
+ sed -e "s@http://docbook.sourceforge.net/release/xsl/current@/usr/share/sgml/docbook/xsl-stylesheets/@g" \ |
70 |
+ -i doc/Makefile.am || die |
71 |
+ eautoreconf |
72 |
+} |
73 |
+ |
74 |
+src_configure() { |
75 |
+ append-cppflags -DOPENIPMI_DEFINE_SELECTOR_T |
76 |
+ |
77 |
+ local myeconfargs=( |
78 |
+ $(use_enable ipmilan) |
79 |
+ $(use_enable libnet) |
80 |
+ $(use_enable static-libs static) |
81 |
+ $(usex doc '--enable-doc' '') |
82 |
+ --disable-fatal-warnings |
83 |
+ --localstatedir=/var |
84 |
+ --with-ocf-root=/usr/$(get_libdir)/ocf |
85 |
+ --with-group-id=$(id -g hacluster) |
86 |
+ --with-ccmuser-id=$(id -u hacluster) |
87 |
+ --with-daemon-user=hacluster --with-daemon-group=haclient |
88 |
+ ) |
89 |
+ |
90 |
+ econf "${myeconfargs[@]}" |
91 |
+} |
92 |
+ |
93 |
+src_install() { |
94 |
+ default |
95 |
+ |
96 |
+ keepdir /var/lib/heartbeat/cores/{hacluster,nobody,root} |
97 |
+ keepdir /var/lib/heartbeat/lrm |
98 |
+ |
99 |
+ # init.d file |
100 |
+ cp "${FILESDIR}"/heartbeat-logd.init "${T}/" || die |
101 |
+ sed -i \ |
102 |
+ -e "s:%libdir%:$(get_libdir):" \ |
103 |
+ "${T}/heartbeat-logd.init" || die |
104 |
+ # newinitd "${T}/heartbeat-logd.init" heartbeat-logd |
105 |
+ rm "${D}"/etc/init.d/logd |
106 |
+ |
107 |
+ use static-libs || find "${D}" -type f -name "*.la" -delete |
108 |
+} |
109 |
+ |
110 |
+pkg_postinst() { |
111 |
+ chown -R hacluster:haclient /var/lib/heartbeat/cores |
112 |
+ chown -R hacluster:haclient /var/lib/heartbeat/lrm |
113 |
+} |