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: b31e3f91c76fe006d2af94a868445293
12 Patch0: %{name}-ac.patch
13 URL: http://linux-ha.org/
14 BuildRequires: autoconf
15 BuildRequires: automake
16 BuildRequires: libnet-devel >= 1.1.0
17 BuildRequires: libltdl-devel
18 BuildRequires: libtool
19 BuildRequires: libxml2-devel
21 Requires(pre): /usr/bin/getgid
22 Requires(pre): /usr/sbin/groupadd
23 Requires(post,preun): /sbin/chkconfig
24 Requires(postun): /usr/sbin/groupdel
25 Requires: syslogdaemon
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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
62 %{__libtoolize} --ltdl
68 --with-initdir=/etc/rc.d/init.d
73 rm -rf $RPM_BUILD_ROOT
76 DESTDIR=$RPM_BUILD_ROOT
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
88 rm -rf $RPM_BUILD_ROOT
91 if [ -n "`/usr/bin/getgid haclient`" ]; then
92 if [ "`/usr/bin/getgid haclient`" != "60" ]; then
93 echo "Error: group haclient doesn't have gid=60. Correct this before installing heartbeat." 1>&2
97 /usr/sbin/groupadd -g 60 -r haclient
101 /sbin/chkconfig --add heartbeat
104 Uninstall_PPP_hack() {
105 file2hack=etc/ppp/ip-up.local
106 echo "NOTE: Restoring /$file2hack"
108 ed -s $file2hack <<-!EOF 2>/dev/null
115 if [ "$1" = "0" ]; then
116 /sbin/chkconfig --del heartbeat
117 if [ ! -x etc/ppp/ip-up.heart ]; then
123 if [ "$1" = "0" ]; then
124 /usr/sbin/groupdel haclient 2>/dev/null
128 %defattr(644,root,root,755)
129 %doc doc/{*.html,AUTHORS,apphbd.cf,authkeys,ha.cf,haresources,startstop}
130 %attr (755,root,root) %{_sysconfdir}/ha.d/harc
131 %attr (755,root,root) %{_sbindir}/*
132 %{_sysconfdir}/ha.d/shellfuncs
133 %{_sysconfdir}/ha.d/rc.d
134 %{_sysconfdir}/ha.d/README.config
135 %{_sysconfdir}/ha.d/conf
136 %{_sysconfdir}/ha.d/resource.d
137 %dir %{_sysconfdir}/ha.d
141 # this is probably not the best location for binaries...
143 #%%{_libdir}/libhbclient.so
144 #%%{_libdir}/libhbclient.a
147 %dir %{_libdir}/stonith
148 %{_libdir}/stonith/*.so
149 /var/adm/fillup-templates/rc.config.heartbeat
150 %dir /var/lib/heartbeat
151 %attr (600,root,root) /var/lib/heartbeat/fifo
152 %attr (750,root,haclient) /var/lib/heartbeat/api
153 %attr (620,root,haclient) /var/lib/heartbeat/register
154 %attr (1770,root,haclient) /var/lib/heartbeat/casual