Gentoo Archives: gentoo-commits

From: "Kacper Kowalik (xarthisius)" <xarthisius@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-cluster/pacemaker: metadata.xml ChangeLog pacemaker-1.0.8.ebuild
Date: Thu, 01 Jul 2010 10:10:39
Message-Id: 20100701101022.DEB7D2C621@corvid.gentoo.org
1 xarthisius 10/07/01 10:10:22
2
3 Added: metadata.xml ChangeLog pacemaker-1.0.8.ebuild
4 Log:
5 Initial import. Ebuild written by Tomáš Chvátal <scarabeus@g.o>
6 (Portage version: 2.2_rc67/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.1 sys-cluster/pacemaker/metadata.xml
10
11 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/pacemaker/metadata.xml?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/pacemaker/metadata.xml?rev=1.1&content-type=text/plain
13
14 Index: metadata.xml
15 ===================================================================
16 <?xml version="1.0" encoding="UTF-8"?>
17 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
18 <pkgmetadata>
19 <herd>ha-cluster</herd>
20 <longdescription>Pacemaker is a cluster resource manager.
21 It achieves maximum availability for your cluster services (aka. resources) by detecting and
22 recovering from node and resource-level failures by making use of the messaging and membership
23 capabilities provided by your preferred cluster infrastructure (either OpenAIS or Heartbeat).
24 </longdescription>
25 <use>
26 <flag name="ais">Enable <pkg>sys-cluster/openais</pkg> support.</flag>
27 <flag name="heartbeat">Enable <pkg>sys-cluster/heartbeat</pkg> support.</flag>
28 </use>
29 </pkgmetadata>
30
31
32
33 1.1 sys-cluster/pacemaker/ChangeLog
34
35 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/pacemaker/ChangeLog?rev=1.1&view=markup
36 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/pacemaker/ChangeLog?rev=1.1&content-type=text/plain
37
38 Index: ChangeLog
39 ===================================================================
40 # ChangeLog for sys-cluster/pacemaker
41 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
42 # $Header: /var/cvsroot/gentoo-x86/sys-cluster/pacemaker/ChangeLog,v 1.1 2010/07/01 10:10:21 xarthisius Exp $
43
44 *pacemaker-1.0.8 (01 Jul 2010)
45
46 01 Jul 2010; Kacper Kowalik <xarthisius@g.o>
47 +pacemaker-1.0.8.ebuild, +files/pacemaker-1.0.8-asneeded.patch,
48 +files/pacemaker-1.0.8-installpaths.patch, +metadata.xml:
49 Initial import. Ebuild written by Tomáš Chvátal <scarabeus@g.o>
50
51
52
53
54 1.1 sys-cluster/pacemaker/pacemaker-1.0.8.ebuild
55
56 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/pacemaker/pacemaker-1.0.8.ebuild?rev=1.1&view=markup
57 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/pacemaker/pacemaker-1.0.8.ebuild?rev=1.1&content-type=text/plain
58
59 Index: pacemaker-1.0.8.ebuild
60 ===================================================================
61 # Copyright 1999-2010 Gentoo Foundation
62 # Distributed under the terms of the GNU General Public License v2
63 # $Header: /var/cvsroot/gentoo-x86/sys-cluster/pacemaker/pacemaker-1.0.8.ebuild,v 1.1 2010/07/01 10:10:21 xarthisius Exp $
64
65 EAPI="2"
66
67 MY_PN="Pacemaker"
68 MY_P="${MY_PN}-${PV}"
69 PYTHON_DEPEND="2"
70 inherit python autotools multilib eutils base flag-o-matic
71
72 DESCRIPTION="Pacemaker CRM"
73 HOMEPAGE="http://www.linux-ha.org/wiki/Pacemaker"
74 SRC_URI="http://hg.clusterlabs.org/${PN}/stable-1.0/archive/${MY_P}.tar.bz2"
75
76 LICENSE="GPL-2"
77 SLOT="0"
78 KEYWORDS="~amd64 ~x86"
79 IUSE="+ais heartbeat snmp static-libs"
80
81 RDEPEND="
82 dev-libs/libxslt
83 sys-cluster/cluster-glue
84 sys-cluster/resource-agents
85 ais? ( sys-cluster/openais )
86 heartbeat? ( >=sys-cluster/heartbeat-3.0.0 )
87 snmp? ( net-analyzer/net-snmp )
88 !heartbeat? ( !ais? ( sys-cluster/openais ) )
89 "
90 DEPEND="${RDEPEND}"
91
92 PATCHES=(
93 "${FILESDIR}/${P}-asneeded.patch"
94 "${FILESDIR}/${P}-installpaths.patch"
95 )
96
97 S="${WORKDIR}/${MY_PN}-1-0-${MY_P}"
98
99 pkg_setup() {
100 if ! use ais && ! use heartbeat; then
101 ewarn "You disabled both cluster implementations"
102 ewarn "Silently enabling OpenAIS/CoroSync support."
103 fi
104
105 python_set_active_version 2
106 python_pkg_setup
107 }
108
109 src_prepare() {
110 base_src_prepare
111 sed -i -e "/ggdb3/d" configure.ac || die
112 eautoreconf
113 }
114
115 src_configure() {
116 local myopts=""
117
118 use hearbeat || use ais || myopts="--with-ais"
119 # appends lib to localstatedir automatically
120 econf \
121 --localstatedir=/var \
122 --disable-dependency-tracking \
123 --disable-fatal-warnings \
124 --without-esnmp \
125 $(use_with ais) \
126 $(use_with heartbeat) \
127 $(use_with snmp) \
128 $(use_enable static-libs static) \
129 ${myopts}
130 }