]> git.pld-linux.org Git - packages/heartbeat.git/blob - heartbeat.spec
- updated to 2.0.5
[packages/heartbeat.git] / heartbeat.spec
1 %include        /usr/lib/rpm/macros.perl
2 Summary:        Heartbeat - subsystem for High-Availability Linux
3 Summary(es):    Subsistema heartbeat para Linux "High-Availability"
4 Summary(pl):    Podsystem heartbeat dla systemów o podwy¿szonej niezawodno¶ci
5 Summary(pt_BR): Implementa sistema de monitoração (heartbeats) visando Alta Disponibilidade
6 Name:           heartbeat
7 Version:        2.0.5
8 Release:        0.1
9 License:        GPL v2+
10 Group:          Applications/System
11 Source0:        http://linux-ha.org/download/%{name}-%{version}.tar.gz
12 # Source0-md5:  209228b2948cfa4762a3a66454c6cc35
13 Source1:        %{name}.init
14 Source2:        ldirectord.init
15 Patch0:         %{name}-ac.patch
16 Patch1:         %{name}-chld.patch
17 URL:            http://linux-ha.org/
18 BuildRequires:  OpenIPMI-devel >= 2.0.3
19 BuildRequires:  autoconf
20 BuildRequires:  automake
21 BuildRequires:  gdbm-devel
22 BuildRequires:  glib2-devel
23 BuildRequires:  libnet-devel >= 1.1.0
24 BuildRequires:  libltdl-devel
25 BuildRequires:  libtool
26 BuildRequires:  libuuid-devel
27 BuildRequires:  libwrap-devel
28 BuildRequires:  libxml2-devel
29 BuildRequires:  lm_sensors-devel
30 BuildRequires:  net-snmp-devel >= 5.1
31 #BuildRequires: perl-devel >= 1:5.8.1
32 BuildRequires:  pkgconfig
33 BuildRequires:  rpm-perlprov
34 BuildRequires:  rpm-pythonprov
35 BuildRequires:  rpmbuild(macros) >= 1.202
36 BuildRequires:  swig-perl >= 1.3.25
37 PreReq:         rc-scripts
38 Requires(pre):  /bin/id
39 Requires(pre):  /usr/bin/getgid
40 Requires(pre):  /usr/sbin/groupadd
41 Requires(pre):  /usr/sbin/useradd
42 Requires(post,preun):   /sbin/chkconfig
43 Requires(post,postun):  /sbin/ldconfig
44 Requires(postun):       /usr/sbin/groupdel
45 Requires(postun):       /usr/sbin/userdel
46 Requires:       syslogdaemon
47 Provides:       group(haclient)
48 Provides:       user(hacluster)
49 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
50
51 %description
52 heartbeat is a basic heartbeat subsystem for Linux-HA. It will run
53 scripts at initialization, and when machines go up or down. This
54 version will also perform IP address takeover using gratuitous ARPs.
55 It works correctly for a 2-node configuration, and is extensible to
56 larger configurations.
57
58 It implements the following kinds of heartbeats:
59  - Bidirectional Serial Rings ("raw" serial ports)
60
61 %description -l es
62 heartbeat es un sistema básico para Linux-HA. La función de este
63 software es ejecutar scripts en la inicialización y al apagar las
64 máquinas que lo utilizan.
65
66 %description -l pl
67 heartbeat jest podstawowym podsystemem dla systemów o podwy¿szonej
68 dostêpno¶ci budowanych w oparciu o Linuksa. Zajmuje siê uruchamianiem
69 skryptów podczas startu i zamykania systemu. Ta wersja pakietu pozwala
70 na przejmowanie adresów IP. Oprogramowanie dzia³a poprawnie dla
71 konfiguracji sk³adaj±cej siê z 2 hostów, mo¿na je równie¿ stosowaæ do
72 bardziej skomplikowanych konfiguracji.
73
74 %package stonith
75 Summary:        Provides an interface to Shoot The Other Node In The Head
76 Summary(pl):    Interfejs do "odstrzelenia" drugiego wêz³a w klastrze
77 Group:          Applications/System
78
79 %description stonith
80 Provides an interface to Shoot The Other Node In The Head.
81
82 %description stonith -l pl
83 STONITH (Shoot The Other Node In The Head) to interfejs s³u¿±cy do
84 "odstrzelenia" drugiego wêz³a w klastrze.
85
86 %package ldirectord
87 Summary:        Monitor virtual services provided by LVS
88 Summary(pl):    Demon monitoruj±cy wirtualne us³ugi dostarczane poprzez LVS
89 Group:          Applications/System
90 PreReq:         rc-scripts
91 Requires(post,preun):   /sbin/chkconfig
92 Requires:       ipvsadm
93
94 %description ldirectord
95 ldirectord is a stand-alone daemon to monitor services of real
96 for virtual services provided by The Linux Virtual Server
97 (http://www.linuxvirtualserver.org/).
98
99 %description ldirectord -l pl
100 ldirectord to samodzielny demon monitoruj±cy rzeczywiste us³ugi dla
101 wirtualnych us³ug dostarczanych poprzez Linux Virtual Server
102 (http://www.linuxvirtualserver.org/).
103
104 %package devel
105 Summary:        Heartbeat developement header files and libraries
106 Summary(pl):    Pliki nag³ówkowe i biblioteki heartbeat
107 Group:          Development/Libraries
108 Requires:       %{name} = %{version}-%{release}
109
110 %description devel
111 Heartbeat developement header files and libraries.
112
113 %description devel -l pl
114 Pliki nag³ówkowe i biblioteki heartbeat.
115
116 %package static
117 Summary:        Heartbeat static libraries
118 Summary(pl):    Biblioteki statyczne heartbeat
119 Group:          Development/Libraries
120 Requires:       %{name}-devel = %{version}-%{release}
121
122 %description static
123 Heartbeat static libraries.
124
125 %description static -l pl
126 Biblioteki statyczne heartbeat.
127
128 %package -n perl-heartbeat
129 Summary:        Perl binding for Heartbeat
130 Summary(pl):    Dowi±zania Perla dla Heartbeata
131 Group:          Development/Languages/Perl
132 Requires:       %{name} = %{version}-%{release}
133
134 %description -n perl-heartbeat
135 Perl binding for Heartbeat.
136
137 %description -n perl-heartbeat -l pl
138 Dowi±zania Perla dla Heartbeata.
139
140 %package cts
141 Summary:        Cluster Test Suite
142 Summary(pl):    Zestaw testów klastra
143 Group:          Applications/System
144 Requires:       %{name} = %{version}-%{release}
145
146 %description cts
147 Cluster Test Suite for heartbeat.
148
149 %description cts -l pl
150 Zestaw testów klastra opartego o heartbeat.
151
152 %prep
153 %setup -q
154 %patch0 -p1
155 %patch1 -p1
156
157 rm -rf libltdl
158
159 %build
160 %{__libtoolize} --ltdl
161 %{__aclocal}
162 %{__autoconf}
163 %{__automake}
164 %configure \
165         PING=/bin/ping \
166         MAILCMD=/bin/mail \
167         MOUNT=/bin/mount \
168         FSCK=/sbin/fsck \
169         --with-initdir=/etc/rc.d/init.d \
170         --enable-lrm \
171         --enable-crm \
172         --enable-perl-vendor \
173         --enable-snmp-subagent
174
175 %{__make}
176
177 %install
178 rm -rf $RPM_BUILD_ROOT
179
180 %{__make} install \
181         DESTDIR=$RPM_BUILD_ROOT
182 install -d $RPM_BUILD_ROOT/var/run/heartbeat
183
184 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/ha.d/resource.d/ldirectord
185 ln -sf %{_sbindir}/ldirectord $RPM_BUILD_ROOT%{_sysconfdir}/ha.d/resource.d/ldirectord
186
187 # plugins are lt_dlopened, but using *.so names, so *.la are not used
188 rm -f $RPM_BUILD_ROOT%{_libdir}/{heartbeat,pils,stonith}/plugins/*/*.{la,a}
189
190 rm -f $RPM_BUILD_ROOT/etc/rc.d/init.d/heartbeat
191 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/heartbeat
192
193 > $RPM_BUILD_ROOT/etc/ha.d/haresources
194 echo -e "auth 2\n2 crc" > $RPM_BUILD_ROOT/etc/ha.d/authkeys
195 install doc/ha.cf $RPM_BUILD_ROOT/etc/ha.d
196
197 rm -f $RPM_BUILD_ROOT/etc/rc.d/init.d/ldirectord
198 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/ldirectord
199 install ldirectord/ldirectord.cf $RPM_BUILD_ROOT%{_sysconfdir}/ha.d
200
201 %clean
202 rm -rf $RPM_BUILD_ROOT
203
204 %pre
205 %groupadd -g 60 haclient
206 %useradd -u 17 -d /var/lib/heartbeat/cores/hacluster -c "Heartbeat User" -g haclient hacluster
207
208 %post
209 /sbin/ldconfig
210 /sbin/chkconfig --add heartbeat
211
212 %preun
213 Uninstall_PPP_hack() {
214         file2hack=/etc/ppp/ip-up.local
215         echo "NOTE: Restoring /$file2hack"
216         MARKER="Heartbeat"
217         ed -s $file2hack <<-!EOF 2>/dev/null
218 H
219 g/ $MARKER\$/d
220 w
221 !EOF
222 }
223
224 if [ "$1" = "0" ]; then
225         /sbin/chkconfig --del heartbeat
226         if [ ! -x /etc/ppp/ip-up.heart ]; then
227                 Uninstall_PPP_hack
228         fi
229 fi
230
231 %postun
232 /sbin/ldconfig
233 if [ "$1" = "0" ]; then
234         %userremove hacluster
235         %groupremove haclient
236 fi
237
238 %post   stonith -p /sbin/ldconfig
239 %postun stonith -p /sbin/ldconfig
240
241 %files
242 %defattr(644,root,root,755)
243 %doc doc/{*.html,AUTHORS,apphbd.cf,authkeys,ha.cf,haresources,startstop}
244 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
245 %dir %{_libdir}/heartbeat
246 %dir %{_libdir}/heartbeat/plugins
247 %dir %{_libdir}/heartbeat/plugins/*
248 %attr(755,root,root) %{_libdir}/heartbeat/plugins/*/*.so
249 %attr(755,root,root) %{_libdir}/heartbeat/[!cp]*
250 %attr(755,root,root) %{_libdir}/heartbeat/c[!t]*
251 %attr(755,root,root) %{_libdir}/heartbeat/p[!l]*
252 %dir %{_libdir}/pils
253 %dir %{_libdir}/pils/plugins
254 %dir %{_libdir}/pils/plugins/*
255 %attr(755,root,root) %{_libdir}/pils/plugins/*/*.so
256 %dir %{_sysconfdir}/ha.d
257 %attr(755,root,root) %{_sysconfdir}/ha.d/rc.d
258 %attr(755,root,root) %{_sysconfdir}/ha.d/resource.d
259 %{_sysconfdir}/ha.d/README.config
260 %attr(755,root,root) %{_sysconfdir}/ha.d/harc
261 %{_sysconfdir}/ha.d/shellfuncs
262 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/heartbeat
263 %attr(754,root,root) /etc/rc.d/init.d/heartbeat
264 %attr(755,root,root) %{_libdir}/ocf
265 %dir /var/lib/heartbeat
266 %dir /var/run/heartbeat
267 #%%attr(750,root,haclient) %dir /var/lib/heartbeat/api
268 #%%attr(1770,root,haclient) %dir /var/lib/heartbeat/casual
269 #%%attr(755,hacluster,haclient) %dir /var/lib/heartbeat/ccm
270 #%%attr(755,root,haclient) %dir /var/lib/heartbeat/ccm
271 #%%attr(755,root,haclient) %dir /var/lib/heartbeat/ckpt
272 #%%attr(600,root,root) /var/lib/heartbeat/fifo
273 %{_mandir}/man1/*.1*
274 %{_mandir}/man8/[a-h]*.8*
275 /var/lib/heartbeat/cores
276 %attr(755,root,root) %{_bindir}/cl_respawn
277 %attr(2755,root,haclient) %{_bindir}/cl_status
278 %attr(755,root,root) %{_sbindir}/*
279 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/ha.d/haresources
280 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/ha.d/authkeys
281 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/ha.d/ha.cf
282 %{_datadir}/snmp/mibs/*mib
283
284 %files stonith
285 %defattr(644,root,root,755)
286 %attr(755,root,root) %{_libdir}/libstonith.so.*.*.*
287 %dir %{_libdir}/stonith
288 %dir %{_libdir}/stonith/plugins
289 %dir %{_libdir}/stonith/plugins/external
290 %dir %{_libdir}/stonith/plugins/stonith2
291 %attr(755,root,root) %{_libdir}/stonith/plugins/*/*
292 %attr(755,root,root) %{_sbindir}/meatclient
293 %attr(755,root,root) %{_sbindir}/stonith
294 %{_mandir}/man8/stonith.8*
295 %{_mandir}/man8/meatclient.8*
296
297 %files ldirectord
298 %defattr(644,root,root,755)
299 %dir %{_sysconfdir}/ha.d/conf
300 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/ha.d/ldirectord.cf
301 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/ldirectord
302 %attr(754,root,root) /etc/rc.d/init.d/ldirectord
303 %attr(755,root,root) %{_sbindir}/*ldirectord*
304 %{_mandir}/man8/*ldirectord*.8*
305
306 %files devel
307 %defattr(644,root,root,755)
308 %{_includedir}/*
309 %{_libdir}/*.la
310
311 %files static
312 %defattr(644,root,root,755)
313 %{_libdir}/*.a
314
315 %files -n perl-heartbeat
316 %defattr(644,root,root,755)
317 # Perl binding disappeared, temporary comment
318 #%%{perl_vendorarch}/heartbeat
319 #%%dir %{perl_vendorarch}/auto/heartbeat
320 #%%dir %{perl_vendorarch}/auto/heartbeat/cl_raw
321 #%%{perl_vendorarch}/auto/heartbeat/cl_raw/cl_raw.bs
322 #%%attr(755,root,root) %{perl_vendorarch}/auto/heartbeat/cl_raw/cl_raw.so
323 #%%{_mandir}/man3/heartbeat::*.3pm*
324
325 %files cts
326 %defattr(644,root,root,755)
327 %doc cts/README
328 %dir %{_libdir}/heartbeat/cts
329 %attr(755,root,root) %{_libdir}/heartbeat/cts/*.py
This page took 0.051603 seconds and 4 git commands to generate.