]>
Commit | Line | Data |
---|---|---|
288e7c20 JK |
1 | # |
2 | # TODO: | |
3 | # - think how to handle /etc/ha.d/haresources file, which is v1 config file | |
4 | # and should not exist if v2 configuration is enabled ("crm yes", default is | |
5 | # "no"). | |
6 | # | |
9b9d4954 | 7 | %include /usr/lib/rpm/macros.perl |
dba30e8d | 8 | Summary: Heartbeat - subsystem for High-Availability Linux |
38bf5a19 ER |
9 | Summary(es.UTF-8): Subsistema heartbeat para Linux "High-Availability" |
10 | Summary(pl.UTF-8): Podsystem heartbeat dla systemów o podwyższonej niezawodności | |
11 | Summary(pt_BR.UTF-8): Implementa sistema de monitoração (heartbeats) visando Alta Disponibilidade | |
49245a93 | 12 | Name: heartbeat |
4a602b4b JK |
13 | Version: 2.1.4 |
14 | Release: 1 | |
0149c089 | 15 | License: GPL v2+ |
dba30e8d | 16 | Group: Applications/System |
4a602b4b JK |
17 | Source0: http://hg.linux-ha.org/lha-2.1/archive/STABLE-%{version}.tar.bz2 |
18 | # Source0-md5: 021dd61c78754ecedef94dae5cf922d0 | |
80a56156 | 19 | Source1: %{name}.init |
20 | Source2: ldirectord.init | |
43707702 | 21 | Patch0: %{name}-ac.patch |
288e7c20 | 22 | Patch1: %{name}-no_ipmilan_test.patch |
253e454e | 23 | URL: http://www.linux-ha.org/Heartbeat |
9b9d4954 | 24 | BuildRequires: OpenIPMI-devel >= 2.0.3 |
be5c114d JB |
25 | BuildRequires: autoconf |
26 | BuildRequires: automake | |
80a56156 | 27 | BuildRequires: gdbm-devel |
28 | BuildRequires: glib2-devel | |
e4375587 | 29 | BuildRequires: gnutls-devel |
be5c114d | 30 | BuildRequires: libltdl-devel |
8c7f88c8 | 31 | BuildRequires: libnet-devel >= 1.1.0 |
0eec7f7b | 32 | BuildRequires: libnl-devel |
be5c114d | 33 | BuildRequires: libtool |
80a56156 | 34 | BuildRequires: libuuid-devel |
35 | BuildRequires: libwrap-devel | |
5cabf613 | 36 | BuildRequires: libxml2-devel |
43707702 | 37 | BuildRequires: lm_sensors-devel |
ecdd12e5 | 38 | BuildRequires: ncurses-devel >= 5.4 |
38cf68bf | 39 | BuildRequires: net-snmp-devel >= 5.1 |
e4375587 | 40 | BuildRequires: pam-devel |
80a56156 | 41 | BuildRequires: pkgconfig |
e4375587 | 42 | BuildRequires: python-devel |
9b9d4954 | 43 | BuildRequires: rpm-perlprov |
43707702 | 44 | BuildRequires: rpm-pythonprov |
89b00739 | 45 | BuildRequires: rpmbuild(macros) >= 1.268 |
1a1643fc | 46 | BuildRequires: swig-perl >= 1.3.25 |
45cd814e | 47 | BuildRequires: swig-python >= 1.3.25 |
8c7f88c8 ER |
48 | Requires(post,postun): /sbin/ldconfig |
49 | Requires(post,preun): /sbin/chkconfig | |
50 | Requires(postun): /usr/sbin/groupdel | |
51 | Requires(postun): /usr/sbin/userdel | |
2dbb1cca | 52 | Requires(pre): /bin/id |
7efcd267 | 53 | Requires(pre): /usr/bin/getgid |
54 | Requires(pre): /usr/sbin/groupadd | |
2dbb1cca | 55 | Requires(pre): /usr/sbin/useradd |
d503e966 | 56 | Requires: psmisc >= 22.5-2 |
89b00739 | 57 | Requires: rc-scripts |
4eef1bae | 58 | Requires: syslogdaemon |
b52d72b7 | 59 | Requires: which |
5a6adc8b | 60 | Provides: group(haclient) |
2dbb1cca | 61 | Provides: user(hacluster) |
cb667f50 JB |
62 | # disappeared |
63 | Obsoletes: perl-heartbeat | |
c8d761f0 | 64 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
8c7f88c8 ER |
65 | |
66 | %define specflags -fgnu89-inline | |
67 | %define filterout_ld -Wl,--as-needed | |
814ecbcd | 68 | |
8060f5e4 | 69 | %description |
49245a93 MP |
70 | heartbeat is a basic heartbeat subsystem for Linux-HA. It will run |
71 | scripts at initialization, and when machines go up or down. This | |
72 | version will also perform IP address takeover using gratuitous ARPs. | |
73 | It works correctly for a 2-node configuration, and is extensible to | |
74 | larger configurations. | |
8060f5e4 | 75 | |
6585451e | 76 | It implements the following kinds of heartbeats: |
49245a93 MP |
77 | - Bidirectional Serial Rings ("raw" serial ports) |
78 | ||
48caa1d6 JR |
79 | %description -l es.UTF-8 |
80 | heartbeat es un sistema básico para Linux-HA. La función de este | |
81 | software es ejecutar scripts en la inicialización y al apagar las | |
82 | máquinas que lo utilizan. | |
83 | ||
84 | %description -l pl.UTF-8 | |
85 | heartbeat jest podstawowym podsystemem dla systemów o podwyższonej | |
86 | dostępności budowanych w oparciu o Linuksa. Zajmuje się uruchamianiem | |
87 | skryptów podczas startu i zamykania systemu. Ta wersja pakietu pozwala | |
88 | na przejmowanie adresów IP. Oprogramowanie działa poprawnie dla | |
89 | konfiguracji składającej się z 2 hostów, można je również stosować do | |
49245a93 | 90 | bardziej skomplikowanych konfiguracji. |
814ecbcd | 91 | |
80a56156 | 92 | %package stonith |
ae97f5d3 | 93 | Summary: Provides an interface to Shoot The Other Node In The Head |
38bf5a19 | 94 | Summary(pl.UTF-8): Interfejs do "odstrzelenia" drugiego węzła w klastrze |
ae97f5d3 | 95 | Group: Applications/System |
ed0906f5 | 96 | Requires: OpenIPMI >= 2.0.3 |
80a56156 | 97 | |
98 | %description stonith | |
ae97f5d3 JB |
99 | Provides an interface to Shoot The Other Node In The Head. |
100 | ||
48caa1d6 JR |
101 | %description stonith -l pl.UTF-8 |
102 | STONITH (Shoot The Other Node In The Head) to interfejs służący do | |
103 | "odstrzelenia" drugiego węzła w klastrze. | |
80a56156 | 104 | |
105 | %package ldirectord | |
2dbb1cca | 106 | Summary: Monitor virtual services provided by LVS |
38bf5a19 | 107 | Summary(pl.UTF-8): Demon monitorujący wirtualne usługi dostarczane poprzez LVS |
ae97f5d3 | 108 | Group: Applications/System |
aa4f0c56 | 109 | Requires(post,preun): /sbin/chkconfig |
80a56156 | 110 | Requires: ipvsadm |
8c7f88c8 | 111 | Requires: rc-scripts |
80a56156 | 112 | |
113 | %description ldirectord | |
8c7f88c8 ER |
114 | ldirectord is a stand-alone daemon to monitor services of real for |
115 | virtual services provided by The Linux Virtual Server | |
2dbb1cca | 116 | (http://www.linuxvirtualserver.org/). |
80a56156 | 117 | |
48caa1d6 JR |
118 | %description ldirectord -l pl.UTF-8 |
119 | ldirectord to samodzielny demon monitorujący rzeczywiste usługi dla | |
120 | wirtualnych usług dostarczanych poprzez Linux Virtual Server | |
931cb2c1 JB |
121 | (http://www.linuxvirtualserver.org/). |
122 | ||
80a56156 | 123 | %package devel |
2dbb1cca | 124 | Summary: Heartbeat developement header files and libraries |
38bf5a19 | 125 | Summary(pl.UTF-8): Pliki nagłówkowe i biblioteki heartbeat |
ae97f5d3 JB |
126 | Group: Development/Libraries |
127 | Requires: %{name} = %{version}-%{release} | |
80a56156 | 128 | |
129 | %description devel | |
2dbb1cca | 130 | Heartbeat developement header files and libraries. |
ae97f5d3 | 131 | |
48caa1d6 JR |
132 | %description devel -l pl.UTF-8 |
133 | Pliki nagłówkowe i biblioteki heartbeat. | |
80a56156 | 134 | |
135 | %package static | |
2dbb1cca | 136 | Summary: Heartbeat static libraries |
38bf5a19 | 137 | Summary(pl.UTF-8): Biblioteki statyczne heartbeat |
ae97f5d3 JB |
138 | Group: Development/Libraries |
139 | Requires: %{name}-devel = %{version}-%{release} | |
140 | ||
80a56156 | 141 | %description static |
2dbb1cca | 142 | Heartbeat static libraries. |
80a56156 | 143 | |
48caa1d6 | 144 | %description static -l pl.UTF-8 |
2dbb1cca | 145 | Biblioteki statyczne heartbeat. |
dba30e8d | 146 | |
9b9d4954 | 147 | %package cts |
148 | Summary: Cluster Test Suite | |
38bf5a19 | 149 | Summary(pl.UTF-8): Zestaw testów klastra |
9b9d4954 | 150 | Group: Applications/System |
151 | Requires: %{name} = %{version}-%{release} | |
152 | ||
153 | %description cts | |
154 | Cluster Test Suite for heartbeat. | |
155 | ||
48caa1d6 JR |
156 | %description cts -l pl.UTF-8 |
157 | Zestaw testów klastra opartego o heartbeat. | |
9b9d4954 | 158 | |
288e7c20 JK |
159 | %package gui |
160 | Summary: Heartbeat GUI | |
161 | Summary(pl.UTF-8): Graficzny interfejs użytkownika dla heartbeat | |
162 | Group: Applications/System | |
163 | Requires: %{name} = %{version}-%{release} | |
164 | ||
165 | %description gui | |
166 | Graphical user interface for heartbeat. | |
167 | ||
168 | %description gui -l pl.UTF-8 | |
169 | Graficzny interfejs użytkownika dla heartbeat. | |
170 | ||
6585451e | 171 | %prep |
4a602b4b | 172 | %setup -qn Heartbeat-STABLE-2-1-STABLE-%{version} |
38cf68bf | 173 | %patch0 -p1 |
69a12e93 | 174 | %patch1 -p1 |
b8ab022e | 175 | |
be5c114d JB |
176 | rm -rf libltdl |
177 | ||
6585451e | 178 | %build |
be5c114d JB |
179 | %{__libtoolize} --ltdl |
180 | %{__aclocal} | |
181 | %{__autoconf} | |
4a602b4b | 182 | %{__autoheader} |
be5c114d JB |
183 | %{__automake} |
184 | %configure \ | |
69a12e93 | 185 | FSCK=/sbin/fsck \ |
f39e1b28 | 186 | FUSER=/bin/fuser \ |
69a12e93 | 187 | IPTABLES=/usr/sbin/iptables \ |
9b9d4954 | 188 | MAILCMD=/bin/mail \ |
80a56156 | 189 | MOUNT=/bin/mount \ |
69a12e93 | 190 | PING=/bin/ping \ |
80a56156 | 191 | --with-initdir=/etc/rc.d/init.d \ |
253e454e | 192 | --enable-fatal-warnings=no \ |
80a56156 | 193 | --enable-crm \ |
e4375587 JB |
194 | --enable-lrm \ |
195 | --enable-mgmt \ | |
43707702 | 196 | --enable-snmp-subagent |
be5c114d | 197 | |
49245a93 | 198 | %{__make} |
dba30e8d | 199 | |
814ecbcd | 200 | %install |
49245a93 | 201 | rm -rf $RPM_BUILD_ROOT |
be5c114d JB |
202 | |
203 | %{__make} install \ | |
204 | DESTDIR=$RPM_BUILD_ROOT | |
9b9d4954 | 205 | install -d $RPM_BUILD_ROOT/var/run/heartbeat |
78882913 PG |
206 | |
207 | rm -f $RPM_BUILD_ROOT%{_sysconfdir}/ha.d/resource.d/ldirectord | |
208 | ln -sf %{_sbindir}/ldirectord $RPM_BUILD_ROOT%{_sysconfdir}/ha.d/resource.d/ldirectord | |
814ecbcd | 209 | |
84d8fd23 JB |
210 | # plugins are lt_dlopened, but using *.so names, so *.la are not used |
211 | rm -f $RPM_BUILD_ROOT%{_libdir}/{heartbeat,pils,stonith}/plugins/*/*.{la,a} | |
814ecbcd | 212 | |
80a56156 | 213 | rm -f $RPM_BUILD_ROOT/etc/rc.d/init.d/heartbeat |
214 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/heartbeat | |
215 | ||
216 | > $RPM_BUILD_ROOT/etc/ha.d/haresources | |
217 | echo -e "auth 2\n2 crc" > $RPM_BUILD_ROOT/etc/ha.d/authkeys | |
218 | install doc/ha.cf $RPM_BUILD_ROOT/etc/ha.d | |
219 | ||
220 | rm -f $RPM_BUILD_ROOT/etc/rc.d/init.d/ldirectord | |
221 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/ldirectord | |
222 | install ldirectord/ldirectord.cf $RPM_BUILD_ROOT%{_sysconfdir}/ha.d | |
223 | ||
288e7c20 JK |
224 | rm -f $RPM_BUILD_ROOT%{_datadir}/heartbeat/cts/README |
225 | ||
226 | for tool in ha_logger hb_addnode hb_delnode hb_standby hb_takeover; do | |
8c7f88c8 | 227 | ln -sf %{_libdir}/heartbeat/$tool $RPM_BUILD_ROOT%{_bindir} |
288e7c20 JK |
228 | done |
229 | ||
230 | sed -i -e's, /%{_lib}/libpam.la, /usr/%{_lib}/libpam.la,g' $RPM_BUILD_ROOT%{_libdir}/*.la | |
231 | ||
45cd814e JB |
232 | %find_lang haclient |
233 | ||
6585451e | 234 | %clean |
6585451e | 235 | rm -rf $RPM_BUILD_ROOT |
6585451e | 236 | |
7f78f119 | 237 | %pre |
e64246bf | 238 | %groupadd -g 60 haclient |
80a56156 | 239 | %useradd -u 17 -d /var/lib/heartbeat/cores/hacluster -c "Heartbeat User" -g haclient hacluster |
7f78f119 | 240 | |
dba30e8d | 241 | %post |
84d8fd23 | 242 | /sbin/ldconfig |
dba30e8d | 243 | /sbin/chkconfig --add heartbeat |
89b00739 | 244 | %service %{name} restart |
6585451e | 245 | |
6585451e | 246 | %preun |
dba30e8d | 247 | if [ "$1" = "0" ]; then |
89b00739 | 248 | %service -q %{name} stop |
dba30e8d | 249 | /sbin/chkconfig --del heartbeat |
6585451e | 250 | fi |
dba30e8d | 251 | |
7f78f119 | 252 | %postun |
84d8fd23 | 253 | /sbin/ldconfig |
7f78f119 | 254 | if [ "$1" = "0" ]; then |
2dbb1cca | 255 | %userremove hacluster |
5a6adc8b | 256 | %groupremove haclient |
7f78f119 | 257 | fi |
258 | ||
ae97f5d3 JB |
259 | %post stonith -p /sbin/ldconfig |
260 | %postun stonith -p /sbin/ldconfig | |
261 | ||
45cd814e | 262 | %files -f haclient.lang |
78882913 | 263 | %defattr(644,root,root,755) |
48ddbfa1 | 264 | %doc doc/{*.html,AUTHORS,apphbd.cf,authkeys,ha.cf,logd.cf,haresources,startstop} |
253e454e ER |
265 | %attr(755,root,root) %{_libdir}/libapphb.so.*.*.* |
266 | %attr(755,root,root) %ghost %{_libdir}/libapphb.so.0 | |
267 | %attr(755,root,root) %{_libdir}/libccmclient.so.*.*.* | |
268 | %attr(755,root,root) %ghost %{_libdir}/libccmclient.so.1 | |
269 | %attr(755,root,root) %{_libdir}/libcib.so.*.*.* | |
270 | %attr(755,root,root) %ghost %{_libdir}/libcib.so.1 | |
271 | %attr(755,root,root) %{_libdir}/libclm.so.*.*.* | |
272 | %attr(755,root,root) %ghost %{_libdir}/libclm.so.1 | |
273 | %attr(755,root,root) %{_libdir}/libcrmcommon.so.*.*.* | |
274 | %attr(755,root,root) %ghost %{_libdir}/libcrmcommon.so.1 | |
275 | %attr(755,root,root) %{_libdir}/libhbclient.so.*.*.* | |
276 | %attr(755,root,root) %ghost %{_libdir}/libhbclient.so.1 | |
277 | %attr(755,root,root) %{_libdir}/libhbmgmt.so.*.*.* | |
278 | %attr(755,root,root) %ghost %{_libdir}/libhbmgmt.so.0 | |
279 | %attr(755,root,root) %{_libdir}/libhbmgmtclient.so.*.*.* | |
280 | %attr(755,root,root) %ghost %{_libdir}/libhbmgmtclient.so.0 | |
281 | %attr(755,root,root) %{_libdir}/libhbmgmtcommon.so.*.*.* | |
282 | %attr(755,root,root) %ghost %{_libdir}/libhbmgmtcommon.so.0 | |
283 | %attr(755,root,root) %{_libdir}/libhbmgmttls.so.*.*.* | |
284 | %attr(755,root,root) %ghost %{_libdir}/libhbmgmttls.so.0 | |
285 | %attr(755,root,root) %{_libdir}/liblrm.so.*.*.* | |
286 | %attr(755,root,root) %ghost %{_libdir}/liblrm.so.0 | |
287 | %attr(755,root,root) %{_libdir}/libpe_rules.so.*.*.* | |
288 | %attr(755,root,root) %ghost %{_libdir}/libpe_rules.so.2 | |
289 | %attr(755,root,root) %{_libdir}/libpe_status.so.*.*.* | |
290 | %attr(755,root,root) %ghost %{_libdir}/libpe_status.so.2 | |
291 | %attr(755,root,root) %{_libdir}/libpengine.so.*.*.* | |
292 | %attr(755,root,root) %ghost %{_libdir}/libpengine.so.3 | |
293 | %attr(755,root,root) %{_libdir}/libpils.so.*.*.* | |
294 | %attr(755,root,root) %ghost %{_libdir}/libpils.so.1 | |
295 | %attr(755,root,root) %{_libdir}/libplumb.so.*.*.* | |
296 | %attr(755,root,root) %ghost %{_libdir}/libplumb.so.1 | |
297 | %attr(755,root,root) %{_libdir}/libplumbgpl.so.*.*.* | |
298 | %attr(755,root,root) %ghost %{_libdir}/libplumbgpl.so.1 | |
299 | %attr(755,root,root) %{_libdir}/librecoverymgr.so.*.*.* | |
300 | %attr(755,root,root) %ghost %{_libdir}/librecoverymgr.so.1 | |
301 | %attr(755,root,root) %{_libdir}/libstonith.so.*.*.* | |
302 | %attr(755,root,root) %ghost %{_libdir}/libstonith.so.1 | |
303 | %attr(755,root,root) %{_libdir}/libstonithd.so.*.*.* | |
304 | %attr(755,root,root) %ghost %{_libdir}/libstonithd.so.0 | |
305 | %attr(755,root,root) %{_libdir}/libtransitioner.so.*.*.* | |
306 | %attr(755,root,root) %ghost %{_libdir}/libtransitioner.so.1 | |
84d8fd23 | 307 | %dir %{_libdir}/heartbeat |
84d8fd23 JB |
308 | %dir %{_libdir}/heartbeat/plugins |
309 | %dir %{_libdir}/heartbeat/plugins/* | |
310 | %attr(755,root,root) %{_libdir}/heartbeat/plugins/*/*.so | |
931cb2c1 JB |
311 | %attr(755,root,root) %{_libdir}/heartbeat/[!cp]* |
312 | %attr(755,root,root) %{_libdir}/heartbeat/c[!t]* | |
38cf68bf | 313 | %attr(755,root,root) %{_libdir}/heartbeat/p[!l]* |
84d8fd23 JB |
314 | %dir %{_libdir}/pils |
315 | %dir %{_libdir}/pils/plugins | |
316 | %dir %{_libdir}/pils/plugins/* | |
288e7c20 JK |
317 | %dir %{_datadir}/heartbeat |
318 | %attr(755,root,root) %{_datadir}/heartbeat/BasicSanityCheck | |
319 | %attr(755,root,root) %{_datadir}/heartbeat/ResourceManager | |
320 | %attr(755,root,root) %{_datadir}/heartbeat/SNMPAgentSanityCheck | |
321 | %attr(755,root,root) %{_datadir}/heartbeat/TestHeartbeatComm | |
322 | %attr(755,root,root) %{_datadir}/heartbeat/ha_* | |
323 | %attr(755,root,root) %{_datadir}/heartbeat/hb_* | |
324 | %attr(755,root,root) %{_datadir}/heartbeat/lrmtest | |
325 | %attr(755,root,root) %{_datadir}/heartbeat/mach_down | |
326 | %attr(755,root,root) %{_datadir}/heartbeat/req_resource | |
48ddbfa1 | 327 | %attr(755,root,root) %{_datadir}/heartbeat/utillib.sh |
288e7c20 | 328 | %{_datadir}/heartbeat/crm.dtd |
4a602b4b | 329 | %{_datadir}/heartbeat/ra-api-1.dtd |
84d8fd23 | 330 | %attr(755,root,root) %{_libdir}/pils/plugins/*/*.so |
84d8fd23 | 331 | %dir %{_sysconfdir}/ha.d |
84d8fd23 JB |
332 | %attr(755,root,root) %{_sysconfdir}/ha.d/rc.d |
333 | %attr(755,root,root) %{_sysconfdir}/ha.d/resource.d | |
288e7c20 | 334 | %exclude %{_sysconfdir}/ha.d/resource.d/ldirectord |
84d8fd23 JB |
335 | %{_sysconfdir}/ha.d/README.config |
336 | %attr(755,root,root) %{_sysconfdir}/ha.d/harc | |
337 | %{_sysconfdir}/ha.d/shellfuncs | |
45cd814e | 338 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/hbmgmtd |
80a56156 | 339 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/heartbeat |
84d8fd23 | 340 | %attr(754,root,root) /etc/rc.d/init.d/heartbeat |
ecdd12e5 | 341 | %attr(755,root,root) %{_prefix}/lib/ocf |
9b9d4954 | 342 | %dir /var/run/heartbeat |
288e7c20 JK |
343 | %attr(750,hacluster,haclient) %dir /var/run/heartbeat/ccm |
344 | %attr(750,hacluster,haclient) %dir /var/run/heartbeat/crm | |
345 | %dir /var/lib/heartbeat | |
346 | %attr(770,root,haclient) %dir /var/lib/heartbeat/lrm | |
347 | %attr(770,root,haclient) %dir /var/lib/heartbeat/mgmt | |
348 | %attr(750,hacluster,haclient) %dir /var/lib/heartbeat/pengine | |
349 | %attr(750,hacluster,haclient) %dir /var/lib/heartbeat/crm | |
350 | %attr(750,root,haclient) %dir /var/lib/heartbeat/fencing | |
351 | %attr(711,root,root) %dir /var/lib/heartbeat/cores | |
352 | %attr(700,root,root) %dir /var/lib/heartbeat/cores/root | |
353 | # we don't want any files owned by nobody | |
354 | %attr(700,root,root) %dir /var/lib/heartbeat/cores/nobody | |
355 | %attr(700,hacluster,root) %dir /var/lib/heartbeat/cores/hacluster | |
80a56156 | 356 | %{_mandir}/man1/*.1* |
2dbb1cca | 357 | %{_mandir}/man8/[a-h]*.8* |
d2309f7c JB |
358 | %attr(755,root,root) %{_bindir}/cl_respawn |
359 | %attr(2755,root,haclient) %{_bindir}/cl_status | |
288e7c20 JK |
360 | %attr(755,root,root) %{_bindir}/ha_logger |
361 | %attr(755,root,root) %{_bindir}/hb_addnode | |
362 | %attr(755,root,root) %{_bindir}/hb_delnode | |
363 | %attr(755,root,root) %{_bindir}/hb_standby | |
364 | %attr(755,root,root) %{_bindir}/hb_takeover | |
89b00739 | 365 | %attr(755,root,root) %{_sbindir}/[a-i]* |
288e7c20 | 366 | %attr(755,root,root) %{_sbindir}/ptest |
ecdd12e5 | 367 | %attr(755,root,root) %{_sbindir}/ocf-tester |
80a56156 | 368 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/ha.d/haresources |
369 | %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/ha.d/authkeys | |
2dbb1cca | 370 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/ha.d/ha.cf |
371 | %{_datadir}/snmp/mibs/*mib | |
80a56156 | 372 | |
373 | %files stonith | |
374 | %defattr(644,root,root,755) | |
375 | %dir %{_libdir}/stonith | |
376 | %dir %{_libdir}/stonith/plugins | |
377 | %dir %{_libdir}/stonith/plugins/external | |
378 | %dir %{_libdir}/stonith/plugins/stonith2 | |
2dbb1cca | 379 | %attr(755,root,root) %{_libdir}/stonith/plugins/*/* |
4a602b4b | 380 | %attr(755,root,root) %{_libdir}/stonith/plugins/xen0-ha-dom0-stonith-helper |
80a56156 | 381 | %attr(755,root,root) %{_sbindir}/meatclient |
382 | %attr(755,root,root) %{_sbindir}/stonith | |
288e7c20 JK |
383 | %dir %{_datadir}/heartbeat/stonithdtest |
384 | %attr(755,root,root) %{_datadir}/heartbeat/stonithdtest/STONITHDBasicSanityCheck | |
931cb2c1 JB |
385 | %{_mandir}/man8/stonith.8* |
386 | %{_mandir}/man8/meatclient.8* | |
80a56156 | 387 | |
388 | %files ldirectord | |
389 | %defattr(644,root,root,755) | |
80a56156 | 390 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/ha.d/ldirectord.cf |
391 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/ldirectord | |
288e7c20 | 392 | %attr(755,root,root) %{_sysconfdir}/ha.d/resource.d/ldirectord |
80a56156 | 393 | %attr(754,root,root) /etc/rc.d/init.d/ldirectord |
394 | %attr(755,root,root) %{_sbindir}/*ldirectord* | |
ae97f5d3 | 395 | %{_mandir}/man8/*ldirectord*.8* |
80a56156 | 396 | |
397 | %files devel | |
398 | %defattr(644,root,root,755) | |
ae97f5d3 | 399 | %{_includedir}/* |
253e454e | 400 | %attr(755,root,root) %{_libdir}/lib*.so |
80a56156 | 401 | %{_libdir}/*.la |
931cb2c1 | 402 | |
38cf68bf JB |
403 | %files static |
404 | %defattr(644,root,root,755) | |
405 | %{_libdir}/*.a | |
406 | ||
9b9d4954 | 407 | %files cts |
408 | %defattr(644,root,root,755) | |
409 | %doc cts/README | |
4a602b4b | 410 | %{_libdir}/heartbeat/cts |
288e7c20 JK |
411 | %dir %{_datadir}/heartbeat/cts |
412 | %attr(755,root,root) %{_datadir}/heartbeat/cts/*.py | |
413 | %{_datadir}/heartbeat/cts/*.py[co] | |
414 | %attr(755,root,root) %{_datadir}/heartbeat/cts/*.sh | |
415 | %attr(755,root,root) %{_datadir}/heartbeat/cts/*Dummy | |
416 | ||
417 | %files gui | |
418 | %defattr(644,root,root,755) | |
419 | %attr(755,root,root) %{_bindir}/hb_gui | |
420 | %dir %{_libdir}/heartbeat-gui | |
421 | %attr(755,root,root) %{_libdir}/heartbeat-gui/*.so.* | |
f8bbe2c5 | 422 | %attr(755,root,root) %{_libdir}/heartbeat-gui/_pymgmt.so |
288e7c20 JK |
423 | %{_libdir}/heartbeat-gui/*.a |
424 | %{_libdir}/heartbeat-gui/*.la | |
425 | %attr(755,root,root) %{_libdir}/heartbeat-gui/*.py | |
426 | %dir %{_datadir}/heartbeat-gui | |
427 | %{_datadir}/heartbeat-gui/*.png | |
428 | %attr(755,root,root) %{_datadir}/heartbeat-gui/*.py | |
429 | %{_datadir}/heartbeat-gui/haclient.glade |