/[gentoo-x86]/sys-cluster/cluster-glue/cluster-glue-1.0.10.ebuild
Gentoo

Contents of /sys-cluster/cluster-glue/cluster-glue-1.0.10.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Wed Nov 21 10:14:33 2012 UTC (20 months ago) by ago
Branch: MAIN
Changes since 1.4: +2 -2 lines
Stable for x86, wrt bug #433359

(Portage version: 2.1.11.31/cvs/Linux x86_64, unsigned Manifest commit)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-cluster/cluster-glue/cluster-glue-1.0.10.ebuild,v 1.4 2012/10/29 18:19:50 ago Exp $
4
5 EAPI=4
6
7 MY_P="${P/cluster-}"
8 inherit autotools multilib eutils base
9
10 DESCRIPTION="Library pack for Heartbeat / Pacemaker"
11 HOMEPAGE="http://www.linux-ha.org/wiki/Cluster_Glue"
12 SRC_URI="http://hg.linux-ha.org/glue/archive/${MY_P}.tar.bz2"
13
14 LICENSE="GPL-2"
15 SLOT="0"
16 KEYWORDS="amd64 hppa x86"
17 IUSE="doc libnet static-libs"
18
19 RDEPEND="app-arch/bzip2
20 dev-libs/glib:2
21 dev-libs/libaio
22 libnet? ( net-libs/libnet:1.1 )
23 net-misc/curl
24 net-misc/iputils
25 || ( net-misc/netkit-telnetd net-misc/telnet-bsd )
26 dev-libs/libxml2
27 !<sys-cluster/heartbeat-3.0"
28 DEPEND="${RDEPEND}
29 doc? (
30 dev-libs/libxslt
31 app-text/docbook-xsl-stylesheets
32 )"
33
34 S="${WORKDIR}/Reusable-Cluster-Components-glue--${MY_P}"
35
36 PATCHES=(
37 "${FILESDIR}/1.0.5-docs.patch"
38 "${FILESDIR}/1.0.5-respect_cflags.patch"
39 "${FILESDIR}/1.0.7-fix_configure.patch"
40 )
41
42 pkg_setup() {
43 enewgroup haclient
44 enewuser hacluster -1 /dev/null /var/lib/heartbeat haclient
45 }
46
47 src_prepare() {
48 base_src_prepare
49 eautoreconf
50 }
51
52 src_configure() {
53 local myopts
54
55 use doc && myopts=" --enable-doc"
56 econf \
57 $(use_enable libnet) \
58 $(use_enable static-libs static) \
59 --disable-fatal-warnings \
60 --disable-dependency-tracking \
61 --docdir=/usr/share/doc/${PF} \
62 --localstatedir=/var \
63 --with-ocf-root=/usr/$(get_libdir)/ocf \
64 ${myopts} \
65 --with-group-id=$(id -g hacluster) \
66 --with-ccmuser-id=$(id -u hacluster) \
67 --with-daemon-user=hacluster --with-daemon-group=haclient
68 }
69
70 src_install() {
71 base_src_install
72
73 dodir /var/lib/heartbeat/cores
74 dodir /var/lib/heartbeat/lrm
75
76 keepdir /var/lib/heartbeat/cores
77 keepdir /var/lib/heartbeat/lrm
78
79 # init.d file
80 cp "${FILESDIR}"/heartbeat-logd.init "${T}/" || die
81 sed -i \
82 -e "s:%libdir%:$(get_libdir):" \
83 "${T}/heartbeat-logd.init" || die
84 # newinitd "${T}/heartbeat-logd.init" heartbeat-logd || die
85 rm "${D}"/etc/init.d/logd
86
87 use static-libs || find "${D}" -type f -name "*.la" -delete
88 }
89
90 pkg_postinst() {
91 chown -R hacluster:haclient /var/lib/heartbeat/cores
92 chown -R hacluster:haclient /var/lib/heartbeat/lrm
93 }

  ViewVC Help
Powered by ViewVC 1.1.20