1 Summary: heartbeat - heartbeat subsystem for High-Availability Linux
2 Summary(pl): podsystem heartbeat dla systemów o podwy¿szonej niezawodno¶ci
7 URL: http://linux-ha.org/
10 Source: http://linux-ha.org/download/heartbeat-0.4.9.tar.gz
11 Patch0: heartbeat.dirty.time.h.patch
12 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17 #Summary: Provides an interface to Shoot The Other Node In The Head
21 heartbeat is a basic heartbeat subsystem for Linux-HA.
22 It will run scripts at initialization, and when machines go up or down.
23 This version will also perform IP address takeover using gratuitous ARPs.
24 It works correctly for a 2-node configuration, and is extensible to larger
28 It implements the following kinds of heartbeats:
29 - Bidirectional Serial Rings ("raw" serial ports)
30 - UDP/IP broadcast (ethernet, etc)
31 - Bidirectional Serial PPP/UDP Rings (using PPP)
32 - "ping" heartbeats (for routers, switches, etc.)
33 (to be used for breaking ties in 2-node systems)
35 heartbeat jest podstawowym podsystemem dla systemów o podwy¿szonej dostêpno¶ci budowanych w oparciu o Linuxa. Zajmuje siê uruchamianiem skryptów podczas startu i zamykania systemu. Ta wersja pakietu pozwala na przejmowanie adresów IP. Oprogramowanie dzia³a poprawnie dla konfiguracji sk³adaj±cej siê z 2 hostów, mo¿na je równie¿ stosowaæ do bardziej skomplikowanych konfiguracji.
45 sed -e 's/MAKE=gmake/MAKE=make/g' < Makefile > aqq
48 sed -e 's/lynx/links/' > aqq < Makefile
52 ###########################################################
54 ###########################################################
56 [ -z "${RPM_BUILD_ROOT}" -a "${RPM_BUILD_ROOT}" != "/" ]
58 rm -rf $RPM_BUILD_ROOT
60 RPM_BUILD=yes BUILD_ROOT=$RPM_BUILD_ROOT make install
62 cd $RPM_BUILD_ROOT/etc/ha.d/resource.d
64 ln -s /usr/sbin/ldirectord ldirectord
67 TEMPL=$RPM_BUILD_ROOT/var/adm/fillup-templates
73 install -m 644 rc.config.heartbeat $TEMPL
75 ###########################################################
77 ###########################################################
83 /etc/ha.d/README.config
86 /usr/lib/libhbclient.so
87 /usr/lib/libhbclient.a
90 /etc/logrotate.d/heartbeat
91 /var/adm/fillup-templates/rc.config.heartbeat
92 %dir /var/lib/heartbeat
93 %attr (600, root, root) /var/lib/heartbeat/fifo
94 %attr (750, root, haclient) /var/lib/heartbeat/api
95 %attr (620, root, haclient) /var/lib/heartbeat/register
96 %attr (1770, root, haclient) /var/lib/heartbeat/casual
97 /usr/man/man8/heartbeat.8*
101 ###########################################################
103 ###########################################################
104 rm -rf $RPM_BUILD_ROOT
105 rm -rf $RPM_BUILD_DIR/heartbeat-0.4.9
107 ###########################################################
109 GROUP=haclient; GID=60; %groupadd
111 # Multi-distribution kludge for init scripts...
117 [ -d sbin/init.d -a ! -L sbin/init.d ]
119 ln -s ../sbin/init.d etc/init.d
121 [ -d etc/rc.d/init.d ]
123 ln -s rc.d/init.d etc/init.d
126 echo "Warning: making directory /etc/init.d"
130 ###########################################################
132 # Multi-distribution kludge for init scripts...
138 [ -d sbin/init.d -a ! -L sbin/init.d ]
140 ln -s ../sbin/init.d etc/init.d
142 [ -d etc/rc.d/init.d ]
144 ln -s rc.d/init.d etc/init.d
147 echo "Warning: making directory /etc/init.d"
151 ###########################################################
153 ###########################################################
155 # Run heartbeat on startup
158 ###########################################################
160 ###########################################################
162 Uninstall_PPP_hack() {
163 file2hack=etc/ppp/ip-up.local
164 echo "NOTE: Restoring /$file2hack"
166 ed -s $file2hack <<-!EOF 2>/dev/null
178 [ ! -x etc/ppp/ip-up.heart ]