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/
22 Requires(pre): /usr/bin/getgid
23 Requires(pre): /usr/sbin/groupadd
24 Requires(post,preun): /sbin/chkconfig
25 Requires(postun): /usr/sbin/groupdel
26 Requires: syslogdaemon
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 heartbeat is a basic heartbeat subsystem for Linux-HA. It will run
31 scripts at initialization, and when machines go up or down. This
32 version will also perform IP address takeover using gratuitous ARPs.
33 It works correctly for a 2-node configuration, and is extensible to
34 larger configurations.
36 It implements the following kinds of heartbeats:
37 - Bidirectional Serial Rings ("raw" serial ports)
40 heartbeat es un sistema básico para Linux-HA. La función de este
41 software es ejecutar scripts en la inicialización y al apagar las
42 máquinas que lo utilizan.
45 heartbeat jest podstawowym podsystemem dla systemów o podwy¿szonej
46 dostêpno¶ci budowanych w oparciu o Linuksa. Zajmuje siê uruchamianiem
47 skryptów podczas startu i zamykania systemu. Ta wersja pakietu pozwala
48 na przejmowanie adresów IP. Oprogramowanie dzia³a poprawnie dla
49 konfiguracji sk³adaj±cej siê z 2 hostów, mo¿na je równie¿ stosowaæ do
50 bardziej skomplikowanych konfiguracji.
53 #Summary: Provides an interface to Shoot The Other Node In The Head
67 sed -e 's/MAKE=gmake/MAKE=make/g' < Makefile > aqq
70 sed -e 's/lynx/links/' > aqq < Makefile
76 rm -rf $RPM_BUILD_ROOT
77 RPM_BUILD=yes BUILD_ROOT=$RPM_BUILD_ROOT %{__make} install
79 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/ha.d/resource.d/ldirectord
80 ln -sf %{_sbindir}/ldirectord $RPM_BUILD_ROOT%{_sysconfdir}/ha.d/resource.d/ldirectord
82 TEMPL=$RPM_BUILD_ROOT/var/adm/fillup-templates
83 if [ ! -d $TEMPL ]; then
86 install rc.config.heartbeat $TEMPL
88 rm -f doc/{*.html,*.8,COPYING,Makefile*}
92 rm -rf $RPM_BUILD_ROOT
95 if [ -n "`/usr/bin/getgid haclient`" ]; then
96 if [ "`/usr/bin/getgid haclient`" != "60" ]; then
97 echo "Error: group haclient doesn't have gid=60. Correct this before installing heartbeat." 1>&2
101 /usr/sbin/groupadd -g 60 -r haclient
105 /sbin/chkconfig --add heartbeat
108 Uninstall_PPP_hack() {
109 file2hack=etc/ppp/ip-up.local
110 echo "NOTE: Restoring /$file2hack"
112 ed -s $file2hack <<-!EOF 2>/dev/null
119 if [ "$1" = "0" ]; then
120 /sbin/chkconfig --del heartbeat
121 if [ ! -x etc/ppp/ip-up.heart ]; then
127 if [ "$1" = "0" ]; then
128 /usr/sbin/groupdel haclient 2>/dev/null
132 %defattr(644,root,root,755)
134 %attr (755,root,root) %{_sysconfdir}/ha.d/harc
135 %attr (755,root,root) %{_sbindir}/*
136 %{_sysconfdir}/ha.d/shellfuncs
137 %{_sysconfdir}/ha.d/rc.d
138 %{_sysconfdir}/ha.d/README.config
139 %{_sysconfdir}/ha.d/conf
140 %{_sysconfdir}/ha.d/resource.d/
141 %dir %{_sysconfdir}/ha.d
145 # this is probably not the best location for binaries...
147 #%%{_libdir}/libhbclient.so
148 #%%{_libdir}/libhbclient.a
151 %dir %{_libdir}/stonith
152 %{_libdir}/stonith/*.so
153 /var/adm/fillup-templates/rc.config.heartbeat
154 %dir /var/lib/heartbeat
155 %attr (600,root,root) /var/lib/heartbeat/fifo
156 %attr (750,root,haclient) /var/lib/heartbeat/api
157 %attr (620,root,haclient) /var/lib/heartbeat/register
158 %attr (1770,root,haclient) /var/lib/heartbeat/casual