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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Mon Nov 19 13:13:15 2012 UTC (20 months, 1 week ago) by ultrabug
Branch: MAIN
Changes since 1.3: +2 -2 lines
fix wrong RDEPEND

(Portage version: 2.1.11.31/cvs/Linux x86_64, signed Manifest commit with key B658FA13)

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.11.ebuild,v 1.3 2012/11/13 17:18:20 ultrabug 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 app-text/docbook-xml-dtd:4.4
21 dev-libs/glib:2
22 dev-libs/libaio
23 libnet? ( net-libs/libnet:1.1 )
24 net-misc/curl
25 net-misc/iputils
26 || ( net-misc/netkit-telnetd net-misc/telnet-bsd )
27 dev-libs/libxml2
28 !<sys-cluster/heartbeat-3.0"
29 DEPEND="${RDEPEND}
30 doc? (
31 dev-libs/libxslt
32 app-text/docbook-xsl-stylesheets
33 )"
34
35 S="${WORKDIR}/Reusable-Cluster-Components-glue--${MY_P}"
36
37 PATCHES=(
38 "${FILESDIR}/1.0.5-respect_cflags.patch"
39 )
40
41 pkg_setup() {
42 enewgroup haclient
43 enewuser hacluster -1 /dev/null /var/lib/heartbeat haclient
44 }
45
46 src_prepare() {
47 base_src_prepare
48 sed -e "s@http://docbook.sourceforge.net/release/xsl/current@/usr/share/sgml/docbook/xsl-stylesheets/@g" \
49 -i doc/Makefile.am || die
50 eautoreconf
51 }
52
53 src_configure() {
54 local myopts
55
56 use doc && myopts=" --enable-doc"
57 econf \
58 $(use_enable libnet) \
59 $(use_enable static-libs static) \
60 --disable-fatal-warnings \
61 --disable-dependency-tracking \
62 --docdir=/usr/share/doc/${PF} \
63 --localstatedir=/var \
64 --with-ocf-root=/usr/$(get_libdir)/ocf \
65 ${myopts} \
66 --with-group-id=$(id -g hacluster) \
67 --with-ccmuser-id=$(id -u hacluster) \
68 --with-daemon-user=hacluster --with-daemon-group=haclient
69 }
70
71 src_install() {
72 base_src_install
73
74 dodir /var/lib/heartbeat/cores
75 dodir /var/lib/heartbeat/lrm
76
77 keepdir /var/lib/heartbeat/cores
78 keepdir /var/lib/heartbeat/lrm
79
80 # init.d file
81 cp "${FILESDIR}"/heartbeat-logd.init "${T}/" || die
82 sed -i \
83 -e "s:%libdir%:$(get_libdir):" \
84 "${T}/heartbeat-logd.init" || die
85 # newinitd "${T}/heartbeat-logd.init" heartbeat-logd || die
86 rm "${D}"/etc/init.d/logd
87
88 use static-libs || find "${D}" -type f -name "*.la" -delete
89 }
90
91 pkg_postinst() {
92 chown -R hacluster:haclient /var/lib/heartbeat/cores
93 chown -R hacluster:haclient /var/lib/heartbeat/lrm
94 }

  ViewVC Help
Powered by ViewVC 1.1.20