1 Summary: Heartbeat - subsystem for High-Availability Linux
2 Summary(es): Subsistema heartbeat para Linux "High-Availability"
3 Summary(pl): Podsystem heartbeat dla systemów o podwy¿szonej niezawodno¶ci
4 Summary(pt_BR): Implementa sistema de monitoração (heartbeats) visando Alta Disponibilidade
9 Group: Applications/System
10 Source0: http://linux-ha.org/download/%{name}-%{version}.tar.gz
11 # Source0-md5: 55dad02995b04a7122c51ca1b15738e3
12 Patch0: %{name}.dirty.time.h.patch
13 Patch1: %{name}-remove_groupadd_and_chgrp.patch
14 Patch2: %{name}-manpath.patch
15 Patch3: %{name}-doc_fix.patch
16 Patch4: %{name}-install_stupidity.patch
17 # SuSE-specific; transformation unfinished
18 Patch5: %{name}-init.patch
19 URL: http://linux-ha.org/
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 Requires(pre): /sbin/chkconfig
23 Requires(pre): /usr/bin/getgid
24 Requires(pre): /usr/sbin/groupadd
25 Requires(post): /usr/sbin/groupdel
26 Requires: syslogdaemon
29 heartbeat is a basic heartbeat subsystem for Linux-HA. It will run
30 scripts at initialization, and when machines go up or down. This
31 version will also perform IP address takeover using gratuitous ARPs.
32 It works correctly for a 2-node configuration, and is extensible to
33 larger configurations.
35 It implements the following kinds of heartbeats:
36 - Bidirectional Serial Rings ("raw" serial ports)
39 heartbeat es un sistema básico para Linux-HA. La función de este
40 software es ejecutar scripts en la inicialización y al apagar las
41 máquinas que lo utilizan.
44 heartbeat jest podstawowym podsystemem dla systemów o podwy¿szonej
45 dostêpno¶ci budowanych w oparciu o Linuksa. Zajmuje siê uruchamianiem
46 skryptów podczas startu i zamykania systemu. Ta wersja pakietu pozwala
47 na przejmowanie adresów IP. Oprogramowanie dzia³a poprawnie dla
48 konfiguracji sk³adaj±cej siê z 2 hostów, mo¿na je równie¿ stosowaæ do
49 bardziej skomplikowanych konfiguracji.
52 #Summary: Provides an interface to Shoot The Other Node In The Head
66 sed -e 's/MAKE=gmake/MAKE=make/g' < Makefile > aqq
69 sed -e 's/lynx/links/' > aqq < Makefile
75 rm -rf $RPM_BUILD_ROOT
76 RPM_BUILD=yes BUILD_ROOT=$RPM_BUILD_ROOT %{__make} install
78 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/ha.d/resource.d/ldirectord
79 ln -sf %{_sbindir}/ldirectord $RPM_BUILD_ROOT%{_sysconfdir}/ha.d/resource.d/ldirectord
81 TEMPL=$RPM_BUILD_ROOT/var/adm/fillup-templates
82 if [ ! -d $TEMPL ]; then
85 install rc.config.heartbeat $TEMPL
87 rm -f doc/{*.html,*.8,COPYING,Makefile*}
91 rm -rf $RPM_BUILD_ROOT
94 if [ -n "`/usr/bin/getgid haclient`" ]; then
95 if [ "`/usr/bin/getgid haclient`" != "60" ]; then
96 echo "Error: group haclient doesn't have gid=60. Correct this before installing heartbeat." 1>&2
100 /usr/sbin/groupadd -g 60 -r haclient
104 /sbin/chkconfig --add heartbeat
107 Uninstall_PPP_hack() {
108 file2hack=etc/ppp/ip-up.local
109 echo "NOTE: Restoring /$file2hack"
111 ed -s $file2hack <<-!EOF 2>/dev/null
118 if [ "$1" = "0" ]; then
119 /sbin/chkconfig --del heartbeat
120 if [ ! -x etc/ppp/ip-up.heart ]; then
126 if [ "$1" = "0" ]; then
127 /usr/sbin/groupdel haclient 2>/dev/null
131 %defattr(644,root,root,755)
133 %attr (755,root,root) %{_sysconfdir}/ha.d/harc
134 %attr (755,root,root) %{_sbindir}/*
135 %{_sysconfdir}/ha.d/shellfuncs
136 %{_sysconfdir}/ha.d/rc.d
137 %{_sysconfdir}/ha.d/README.config
138 %{_sysconfdir}/ha.d/conf
139 %{_sysconfdir}/ha.d/resource.d/
140 %dir %{_sysconfdir}/ha.d
144 # this is probably not the best location for binaries...
146 #%%{_libdir}/libhbclient.so
147 #%%{_libdir}/libhbclient.a
150 %dir %{_libdir}/stonith
151 %{_libdir}/stonith/*.so
152 /var/adm/fillup-templates/rc.config.heartbeat
153 %dir /var/lib/heartbeat
154 %attr (600,root,root) /var/lib/heartbeat/fifo
155 %attr (750,root,haclient) /var/lib/heartbeat/api
156 %attr (620,root,haclient) /var/lib/heartbeat/register
157 %attr (1770,root,haclient) /var/lib/heartbeat/casual