Gentoo Archives: gentoo-commits

From: "Alexys Jacob (ultrabug)" <ultrabug@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-cluster/heartbeat: ChangeLog heartbeat-3.0.5-r1.ebuild
Date: Mon, 29 Oct 2012 16:44:35
Message-Id: 20121029164423.A933D21600@flycatcher.gentoo.org
1 ultrabug 12/10/29 16:44:23
2
3 Modified: ChangeLog
4 Added: heartbeat-3.0.5-r1.ebuild
5 Log:
6 Fix heartbeat init script fix #438672
7
8 (Portage version: 2.1.11.30/cvs/Linux x86_64, signed Manifest commit with key B658FA13)
9
10 Revision Changes Path
11 1.104 sys-cluster/heartbeat/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/heartbeat/ChangeLog?rev=1.104&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/heartbeat/ChangeLog?rev=1.104&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/heartbeat/ChangeLog?r1=1.103&r2=1.104
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-cluster/heartbeat/ChangeLog,v
20 retrieving revision 1.103
21 retrieving revision 1.104
22 diff -u -r1.103 -r1.104
23 --- ChangeLog 4 May 2012 07:20:30 -0000 1.103
24 +++ ChangeLog 29 Oct 2012 16:44:23 -0000 1.104
25 @@ -1,6 +1,12 @@
26 # ChangeLog for sys-cluster/heartbeat
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/heartbeat/ChangeLog,v 1.103 2012/05/04 07:20:30 jdhore Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/heartbeat/ChangeLog,v 1.104 2012/10/29 16:44:23 ultrabug Exp $
30 +
31 +*heartbeat-3.0.5-r1 (29 Oct 2012)
32 +
33 + 29 Oct 2012; Ultrabug <ultrabug@g.o> +heartbeat-3.0.5-r1.ebuild,
34 + files/heartbeat-init:
35 + Fix init script vital directory creation wrt #438672 thx to Petric Frank.
36
37 04 May 2012; Jeff Horelick <jdhore@g.o> heartbeat-3.0.5.ebuild:
38 dev-util/pkgconfig -> virtual/pkgconfig
39
40
41
42 1.1 sys-cluster/heartbeat/heartbeat-3.0.5-r1.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/heartbeat/heartbeat-3.0.5-r1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/heartbeat/heartbeat-3.0.5-r1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: heartbeat-3.0.5-r1.ebuild
48 ===================================================================
49 # Copyright 1999-2012 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/sys-cluster/heartbeat/heartbeat-3.0.5-r1.ebuild,v 1.1 2012/10/29 16:44:23 ultrabug Exp $
52
53 EAPI="2"
54
55 PYTHON_DEPEND="2"
56 inherit python autotools multilib eutils base
57
58 DESCRIPTION="Heartbeat high availability cluster manager"
59 HOMEPAGE="http://www.linux-ha.org/wiki/Heartbeat"
60 SRC_URI="http://hg.linux-ha.org/${PN}-STABLE_3_0/archive/STABLE-${PV}.tar.bz2"
61
62 LICENSE="GPL-2"
63 SLOT="0"
64 KEYWORDS="~amd64 ~hppa ~x86"
65 IUSE="doc snmp static-libs"
66
67 RDEPEND="sys-cluster/cluster-glue
68 dev-libs/glib:2
69 virtual/ssh
70 net-libs/gnutls
71 snmp? ( net-analyzer/net-snmp )
72 "
73 DEPEND="${RDEPEND}
74 virtual/pkgconfig
75 dev-lang/swig
76 doc? ( dev-libs/libxslt app-text/docbook-xsl-stylesheets )"
77
78 PDEPEND="sys-cluster/resource-agents"
79
80 S=${WORKDIR}/Heartbeat-3-0-STABLE-${PV}
81
82 PATCHES=(
83 "${FILESDIR}/3.0.4-fix_configure.patch"
84 "${FILESDIR}/3.0.4-docs.patch"
85 "${FILESDIR}/3.0.4-python_tests.patch"
86 )
87
88 pkg_setup() {
89 python_set_active_version 2
90 python_pkg_setup
91
92 ewarn "If you're upgrading from heartbeat-2.x please follow:"
93 ewarn "http://www.gentoo.org/proj/en/cluster/ha-cluster/heartbeat-upgrade.xml"
94 }
95
96 src_prepare() {
97 base_src_prepare
98 eautoreconf
99
100 cp "${FILESDIR}"/heartbeat-init "${T}" || die
101 sed -i \
102 -e "/ResourceManager/ s/lib/share/" \
103 -e "s:lib:$(get_libdir):g" \
104 "${T}"/heartbeat-init || die
105 }
106
107 src_configure() {
108 econf \
109 --disable-dependency-tracking \
110 --disable-fatal-warnings \
111 $(use_enable static-libs static) \
112 $(use_enable doc) \
113 --disable-tipc \
114 --enable-dopd \
115 --libdir=/usr/$(get_libdir) \
116 --localstatedir=/var \
117 --docdir=/usr/share/doc/${PF} \
118 $(use_enable snmp)
119 }
120
121 src_install() {
122 base_src_install
123
124 newinitd "${T}/heartbeat-init" heartbeat || die
125
126 # fix collisions
127 rm -rf "${D}"/usr/include/heartbeat/{compress,ha_msg}.h
128
129 use static-libs || find "${D}"/usr/$(get_libdir) -name "*.la" -delete
130
131 if use doc ; then
132 dodoc README doc/*.txt doc/AUTHORS || die
133 fi
134 }