Gentoo Archives: gentoo-commits

From: Alexys Jacob <ultrabug@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sys-cluster/heartbeat/files/, sys-cluster/heartbeat/
Date: Fri, 11 Feb 2011 11:05:10
Message-Id: 90e56fd6d7179e606238f99315ff54cbf078a8e6.ultrabug@gentoo
1 commit: 90e56fd6d7179e606238f99315ff54cbf078a8e6
2 Author: Ultrabug <ultrabug <AT> gentoo <DOT> org>
3 AuthorDate: Fri Feb 11 11:04:52 2011 +0000
4 Commit: Alexys Jacob <ultrabug <AT> gentoo <DOT> org>
5 CommitDate: Fri Feb 11 11:04:52 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=90e56fd6
7
8 sys-cluster/heartbeat moved to main tree
9
10 ---
11 sys-cluster/heartbeat/files/3.0.4-docs.patch | 57 -----------
12 .../heartbeat/files/3.0.4-fix_configure.patch | 99 --------------------
13 .../heartbeat/files/3.0.4-python_tests.patch | 29 ------
14 sys-cluster/heartbeat/files/heartbeat-init | 91 ------------------
15 sys-cluster/heartbeat/heartbeat-3.0.4.ebuild | 82 ----------------
16 5 files changed, 0 insertions(+), 358 deletions(-)
17
18 diff --git a/sys-cluster/heartbeat/files/3.0.4-docs.patch b/sys-cluster/heartbeat/files/3.0.4-docs.patch
19 deleted file mode 100644
20 index 3fdcfbd..0000000
21 --- a/sys-cluster/heartbeat/files/3.0.4-docs.patch
22 +++ /dev/null
23 @@ -1,57 +0,0 @@
24 ---- configure.in
25 -+++ configure.in
26 -@@ -505,8 +505,15 @@
27 - AC_PATH_PROGS(TEST, test)
28 - AC_PATH_PROGS(PKGCONFIG, pkg-config)
29 -
30 --dnl xsltproc is required for building the man pages
31 --AC_PATH_PROGS(XSLTPROC, xsltproc)
32 -+AC_ARG_ENABLE([doc],
33 -+ AS_HELP_STRING([--enable-doc],[Build documentation]
34 -+))
35 -+AS_IF([test "x$enable_doc" = "xyes"], [
36 -+ AC_PATH_PROGS(XSLTPROC, xsltproc)
37 -+])
38 -+AM_CONDITIONAL([BUILD_DOC], [test "x$enable_doc" = "xyes"] )
39 -+AC_SUBST(XSLTPROC)
40 -+
41 -
42 - dnl ************************************************************************
43 - dnl Check whether non-root user can chown.
44 ---- doc/Makefile.am
45 -+++ doc/Makefile.am
46 -@@ -33,11 +33,12 @@
47 -
48 - doc_DATA = $(OTHER_DOCS)
49 -
50 -+if BUILD_DOC
51 - man_MANS = heartbeat.8 apphbd.8 cl_status.1 \
52 - hb_standby.1 hb_takeover.1 hb_addnode.1 hb_delnode.1 \
53 - ha.cf.5 authkeys.5
54 -
55 --STYLESHEET_PREFIX ?= http://docbook.sourceforge.net/release/xsl/current
56 -+STYLESHEET_PREFIX ?= /usr/share/sgml/docbook/xsl-stylesheets
57 - MANPAGES_STYLESHEET ?= $(STYLESHEET_PREFIX)/manpages/docbook.xsl
58 - HTML_STYLESHEET ?= $(STYLESHEET_PREFIX)/xhtml/docbook.xsl
59 - FO_STYLESHEET ?= $(STYLESHEET_PREFIX)/fo/docbook.xsl
60 -@@ -47,6 +48,12 @@
61 - XSLTPROC_HTML_OPTIONS ?= $(XSLTPROC_OPTIONS)
62 - XSLTPROC_FO_OPTIONS ?= $(XSLTPROC_OPTIONS)
63 -
64 -+%.5 %.8 %.1: %.xml
65 -+ $(XSLTPROC) \
66 -+ $(XSLTPROC_MANPAGES_OPTIONS) \
67 -+ $(MANPAGES_STYLESHEET) $<
68 -+endif
69 -+
70 - EXTRA_DIST = $(txtfiles) $(htmlfiles) $(man_MANS) $(OTHER_DOCS)
71 -
72 - ChangeLog: $(SPECSRC)
73 -@@ -56,7 +63,3 @@
74 - .html.txt:
75 - if [ "X$(HTML2TXT)" = "X" ]; then echo "Lynx or w3m or user-defined HTML2TXT required to convert $< to $@" >$@ ; else $(HTML2TXT) -dump $< >$@ ; fi
76 -
77 --%.5 %.8 %.1: %.xml
78 -- $(XSLTPROC) \
79 -- $(XSLTPROC_MANPAGES_OPTIONS) \
80 -- $(MANPAGES_STYLESHEET) $<
81
82 diff --git a/sys-cluster/heartbeat/files/3.0.4-fix_configure.patch b/sys-cluster/heartbeat/files/3.0.4-fix_configure.patch
83 deleted file mode 100644
84 index 03db0cc..0000000
85 --- a/sys-cluster/heartbeat/files/3.0.4-fix_configure.patch
86 +++ /dev/null
87 @@ -1,99 +0,0 @@
88 ---- work/Heartbeat-3-0-STABLE-3.0.4/configure.in 2010-12-09 21:09:47.000000000 +0100
89 -+++ work2/Heartbeat-3-0-STABLE-3.0.4/configure.in 2010-12-28 17:37:45.080773140 +0100
90 -@@ -243,9 +243,9 @@
91 - mandir=`var "$mandir" "$exec_prefix/man"`
92 - dnl docdir is available in autoconf 2.60+, for older versions preseed
93 - dnl with the same value that 2.60+ uses
94 --docdir=`var "$docdir" "${datadir}/doc/${PACKAGE_NAME}"`
95 --libdir=`var "$libdir" "$exec_prefix/lib"`
96 --libexecdir=`var "$libexecdir" "$exec_prefix/libexec"`
97 -+dnl docdir=`var "$docdir" "${datadir}/doc/${PACKAGE_NAME}"`
98 -+dnl libdir=`var "$libdir" "$exec_prefix/lib"`
99 -+dnl libexecdir=`var "$libexecdir" "$exec_prefix/libexec"`
100 - noarchlibdir=`var "$noarchlibdir" "$prefix/lib"`
101 -
102 -
103 -@@ -284,59 +284,11 @@
104 - LIBC=`${LDD} ${tmpOutfile} | grep libc | sed -e 's%.*=> *%%' -e 's% .*$%%'`
105 - LibCdir=`dirname $LIBC`
106 - dirlist=`echo $LibCdir | tr '/' ' '`
107 -- LibDirSuffix=unknown
108 -- for dir in $dirlist
109 -- do
110 -- case $dir in
111 -- *lib*) LibDirSuffix=$dir; break;;
112 -- *);;
113 -- esac
114 -- done
115 -- case $LibDirSuffix in
116 -- unknown) LibDirSuffix=`basename $LibCdir`;;
117 -- esac
118 - OutFileType=`file $tmpOutfile`
119 - rm -f $tmpCfile $tmpOutfile
120 - else
121 - AC_MSG_ERROR([Cannot Compile trivial C program])
122 - fi
123 --#
124 --# The code above doesn't work right everywhere
125 --# (like Fedora and OpenBSD)
126 --#
127 --case ${LibDirSuffix} in
128 -- *lib*) : Cool;;
129 -- *) : Sigh...
130 -- case $OutFileType in
131 -- *64-bit*)
132 -- case $host_os in
133 -- openbsd*) LibDirSuffix=lib;;
134 -- *) LibDirSuffix=lib64;;
135 -- esac;;
136 -- *32-bit*) LibDirSuffix=lib;;
137 -- *) LibDirSuffix=lib;;
138 -- esac;;
139 --esac
140 --#
141 --# This may not yet be quite right for PPC where the default
142 --# is to produce 32-bit binaries, even though the OS is 64-bit
143 --# or for that matter for system Z, But, it's a lot better than
144 --# it used to be.
145 --#
146 --AC_MSG_RESULT($LibDirSuffix)
147 --
148 --case $libdir in
149 -- */*${LibDirSuffix}) : Cool ;;
150 -- *) : Uh Oh...
151 -- libdir=`dirname $libdir`/$LibDirSuffix
152 -- AC_MSG_WARN([Overriding libdir to: $libdir]);;
153 --esac
154 --case $libexecdir in
155 -- */$LibDirSuffix) : Cool ;;
156 -- *) : Uh Oh...
157 -- libexecdir=`dirname $libexecdir`/$LibDirSuffix
158 -- AC_MSG_WARN([Overriding libexecdir to: $libexecdir]);;
159 --esac
160 -
161 - for j in exec_prefix bindir sbindir datadir sysconfdir localstatedir \
162 - includedir oldincludedir mandir docdir stdocdir libdir noarchlibdir
163 -@@ -386,7 +338,6 @@
164 - fi
165 -
166 - AC_CHECK_HEADERS(heartbeat/glue_config.h)
167 --GLUE_HEADER=none
168 - if test "$ac_cv_header_heartbeat_glue_config_h" = "yes"; then
169 - GLUE_HEADER=heartbeat/glue_config.h
170 - else
171 -@@ -453,15 +404,6 @@
172 -
173 - dnl We use this in the RPM specfile...
174 - AC_SUBST(ac_configure_args)
175 --cleaned_configure_args=""
176 --for j in ${ac_configure_args}
177 --do
178 -- case $j in
179 -- *--libdir=*|*--libexecdir=*) ;;
180 -- *) cleaned_configure_args="$cleaned_configure_args $j";;
181 -- esac
182 --done
183 --AC_SUBST(cleaned_configure_args)
184 -
185 - dnl *************************************************************************
186 - PATH="$PATH:/sbin:/usr/sbin:/usr/local/sbin:/usr/local/bin"
187
188 diff --git a/sys-cluster/heartbeat/files/3.0.4-python_tests.patch b/sys-cluster/heartbeat/files/3.0.4-python_tests.patch
189 deleted file mode 100644
190 index a91c7ec..0000000
191 --- a/sys-cluster/heartbeat/files/3.0.4-python_tests.patch
192 +++ /dev/null
193 @@ -1,29 +0,0 @@
194 ---- cts/Makefile.am
195 -+++ cts/Makefile.am
196 -@@ -21,7 +21,7 @@
197 -
198 - ctsdir = @HA_NOARCHDATAHBDIR@/cts
199 -
200 --cts_PYTHON = \
201 -+cts_SCRIPTS = \
202 - CM_fs.py \
203 - CM_hb.py \
204 - CM_LinuxHAv2.py \
205 -@@ -32,14 +32,12 @@
206 - extracttests.py \
207 - getpeinputs.sh \
208 - OCFIPraTest.py \
209 -- CIB.py
210 -+ CIB.py \
211 -+ CTSproxy.py \
212 -+ LSBDummy
213 -
214 - cts_DATA = README
215 -
216 --cts_SCRIPTS = \
217 -- CTSproxy.py \
218 -- getpeinputs.sh \
219 -- LSBDummy
220 -
221 - all-local: $(cts_PYTHON)
222 -
223
224 diff --git a/sys-cluster/heartbeat/files/heartbeat-init b/sys-cluster/heartbeat/files/heartbeat-init
225 deleted file mode 100644
226 index 5a81a21..0000000
227 --- a/sys-cluster/heartbeat/files/heartbeat-init
228 +++ /dev/null
229 @@ -1,91 +0,0 @@
230 -#!/sbin/runscript
231 -# Copyright 1999-2006 Gentoo Foundation
232 -# Distributed under the terms of the GNU General Public License v2
233 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/heartbeat/files/heartbeat-init,v 1.7 2007/03/01 00:48:11 xmerlin Exp $
234 -
235 -HA_DIR=/etc/ha.d
236 -. $HA_DIR/shellfuncs
237 -
238 -depend() {
239 - use logger
240 - need net
241 -}
242 -
243 -opts="start stop status reload restart"
244 -
245 -CheckBool() {
246 - case `echo "$1" | tr A-Z a-z` in
247 - y|yes|enable|on|true|1) true;;
248 - *) false;;
249 - esac
250 -}
251 -
252 -# Run pre-startup script if it exists
253 -RunStartStop() {
254 - [ -f $HA_DIR/resource.d/startstop ] && $HA_DIR/resource.d/startstop "$@"
255 -}
256 -
257 -start() {
258 - ebegin "Starting heartbeat"
259 -
260 - . $HA_DIR/shellfuncs
261 -
262 - # start the log subsystem
263 - CheckBool "`ha_parameter use_logd`" && \
264 - ( /usr/lib/heartbeat/ha_logd -s &>/dev/null || \
265 - /usr/lib/heartbeat/ha_logd -d -c /etc/ha.d/ha_logd.cf)
266 -
267 - RunStartStop pre-start
268 -
269 - CheckBool "`ha_parameter crm`" || \
270 - /usr/lib/heartbeat/ResourceManager verifyallidle
271 -
272 - /usr/lib/heartbeat/heartbeat &>/dev/null
273 - ret=$?
274 -
275 - RunStartStop post-start
276 -
277 - eend ${ret}
278 -}
279 -
280 -stop() {
281 - ebegin "Stopping heartbeat"
282 -
283 - RunStartStop pre-stop
284 -
285 - /usr/lib/heartbeat/heartbeat -k &>/dev/null
286 - ret=$?
287 -
288 - RunStartStop post-stop ${ret}
289 -
290 - # stop log subsystem
291 - CheckBool "`ha_parameter use_logd`" && \
292 - ( /usr/lib/heartbeat/ha_logd -s &>/dev/null && \
293 - /usr/lib/heartbeat/ha_logd -k &>/dev/null )
294 -
295 - eend ${ret}
296 -}
297 -
298 -status() {
299 - /usr/lib/heartbeat/heartbeat -s
300 -}
301 -
302 -reload() {
303 - ebegin "Reloading heartbeat"
304 - /usr/lib/heartbeat/heartbeat -r &>/dev/null
305 - eend $?
306 -}
307 -
308 -restart() {
309 - . $HA_DIR/shellfuncs
310 -
311 - sleeptime=$(( `ha_parameter deadtime` + 10 ))
312 -
313 - svc_stop
314 -
315 - ebegin " waiting ${sleeptime}s to allow resource takeover to complete"
316 - sleep ${sleeptime}
317 - eend 0
318 -
319 - svc_start
320 -}
321
322 diff --git a/sys-cluster/heartbeat/heartbeat-3.0.4.ebuild b/sys-cluster/heartbeat/heartbeat-3.0.4.ebuild
323 deleted file mode 100644
324 index e2e8b2b..0000000
325 --- a/sys-cluster/heartbeat/heartbeat-3.0.4.ebuild
326 +++ /dev/null
327 @@ -1,82 +0,0 @@
328 -# Copyright 1999-2010 Gentoo Foundation
329 -# Distributed under the terms of the GNU General Public License v2
330 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/heartbeat/heartbeat-3.0.3-r2.ebuild,v 1.1 2010/10/06 09:25:37 xarthisius Exp $
331 -
332 -EAPI="2"
333 -
334 -PYTHON_DEPEND="2"
335 -inherit python autotools multilib eutils base
336 -
337 -DESCRIPTION="Heartbeat high availability cluster manager"
338 -HOMEPAGE="http://www.linux-ha.org/wiki/Heartbeat"
339 -SRC_URI="http://hg.linux-ha.org/${PN}-STABLE_3_0/archive/STABLE-${PV}.tar.bz2"
340 -
341 -LICENSE="GPL-2"
342 -SLOT="0"
343 -KEYWORDS="~amd64 ~x86"
344 -IUSE="doc ipmi snmp static-libs"
345 -
346 -RDEPEND="sys-cluster/cluster-glue
347 - dev-libs/glib:2
348 - virtual/ssh
349 - net-libs/gnutls
350 - ipmi? ( sys-libs/openipmi )
351 - snmp? ( net-analyzer/net-snmp )
352 - "
353 -DEPEND="${RDEPEND}
354 - dev-util/pkgconfig
355 - dev-lang/swig"
356 -
357 -PDEPEND="sys-cluster/resource-agents"
358 -
359 -S=${WORKDIR}/Heartbeat-3-0-STABLE-${PV}
360 -
361 -PATCHES=(
362 - "${FILESDIR}/${PV}-fix_configure.patch"
363 - "${FILESDIR}/${PV}-docs.patch"
364 - "${FILESDIR}/${PV}-python_tests.patch"
365 -)
366 -
367 -pkg_setup() {
368 - python_set_active_version 2
369 - python_pkg_setup
370 -}
371 -
372 -src_prepare() {
373 - base_src_prepare
374 - eautoreconf
375 -
376 - cp "${FILESDIR}"/heartbeat-init "${T}" || die
377 - sed -i \
378 - -e "/ResourceManager/ s/lib/share/" \
379 - -e "s:lib:$(get_libdir):g" \
380 - "${T}"/heartbeat-init || die
381 -}
382 -
383 -src_configure() {
384 - econf \
385 - --disable-dependency-tracking \
386 - --disable-fatal-warnings \
387 - $(use_enable static-libs static) \
388 - $(use_enable doc) \
389 - --disable-tipc \
390 - $(use_enable ipmi ipmilan) \
391 - --enable-dopd \
392 - --libdir=/usr/$(get_libdir) \
393 - --localstatedir=/var \
394 - --docdir=/usr/share/doc/${PF} \
395 - $(use_enable snmp)
396 -}
397 -
398 -src_install() {
399 - base_src_install
400 -
401 - newinitd "${T}/heartbeat-init" heartbeat || die
402 -
403 - # fix collisions
404 - rm -rf "${D}"/usr/include/heartbeat/{compress,ha_msg}.h
405 -
406 - if use doc ; then
407 - dodoc README doc/*.txt doc/AUTHORS || die
408 - fi
409 -}