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

Contents of /sys-cluster/cluster-glue/cluster-glue-1.0.9-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Wed May 16 10:37:44 2012 UTC (2 years, 7 months ago) by xarthisius
Branch: MAIN
Make a revbump to make sure that people will avoid bug 412653

(Portage version: 2.2.0_alpha105/cvs/Linux x86_64, RepoMan options: --force)

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.9.ebuild,v 1.7 2012/04/20 20:03:48 pacho 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 large-cluster libnet static-libs"
18
19 RDEPEND="app-arch/bzip2
20 dev-libs/glib:2
21 libnet? ( net-libs/libnet:1.1 )
22 net-misc/curl
23 net-misc/iputils
24 || ( net-misc/netkit-telnetd net-misc/telnet-bsd )
25 dev-libs/libxml2
26 !<sys-cluster/heartbeat-3.0"
27 DEPEND="${RDEPEND}
28 doc? (
29 dev-libs/libxslt
30 app-text/docbook-xsl-stylesheets
31 )"
32
33 S="${WORKDIR}/Reusable-Cluster-Components-glue--${MY_P}"
34
35 PATCHES=(
36 "${FILESDIR}/1.0.5-docs.patch"
37 "${FILESDIR}/1.0.5-respect_cflags.patch"
38 "${FILESDIR}/1.0.7-fix_configure.patch"
39 "${FILESDIR}/1.0.9-glib-2.32.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 if use large-cluster
49 then
50 sed -i -e 's@256\*1024@1024\*1024@g' -e 's@2048\*1024@8192\*1024@g' "${S}"/include/clplumbing/ipc.h || die
51 fi
52 base_src_prepare
53 eautoreconf
54 }
55
56 src_configure() {
57 local myopts
58
59 use doc && myopts=" --enable-doc"
60 econf \
61 $(use_enable libnet) \
62 $(use_enable static-libs static) \
63 --disable-fatal-warnings \
64 --disable-dependency-tracking \
65 --docdir=/usr/share/doc/${PF} \
66 --localstatedir=/var \
67 --with-ocf-root=/usr/$(get_libdir)/ocf \
68 ${myopts} \
69 --with-group-id=$(id -g hacluster) \
70 --with-ccmuser-id=$(id -u hacluster) \
71 --with-daemon-user=hacluster --with-daemon-group=haclient
72 }
73
74 src_install() {
75 base_src_install
76
77 dodir /var/lib/heartbeat/cores
78 dodir /var/lib/heartbeat/lrm
79
80 keepdir /var/lib/heartbeat/cores
81 keepdir /var/lib/heartbeat/lrm
82
83 # init.d file
84 cp "${FILESDIR}"/heartbeat-logd.init "${T}/" || die
85 sed -i \
86 -e "s:%libdir%:$(get_libdir):" \
87 "${T}/heartbeat-logd.init" || die
88 newinitd "${T}/heartbeat-logd.init" heartbeat-logd || die
89 rm "${D}"/etc/init.d/logd
90
91 use static-libs || find "${D}" -type f -name "*.la" -delete
92 }
93
94 pkg_postinst() {
95 chown -R hacluster:haclient /var/lib/heartbeat/cores
96 chown -R hacluster:haclient /var/lib/heartbeat/lrm
97 }

  ViewVC Help
Powered by ViewVC 1.1.20