1 Summary: Reusable cluster resource scripts
2 Summary(pl.UTF-8): Skrypty wielokrotnego użytku do obsługi zasobów klastrowych
6 License: GPL v2+, LGPL v2.1+
8 #Source0Download: https://github.com/ClusterLabs/resource-agents/releases
9 Source0: https://github.com/ClusterLabs/resource-agents/archive/v%{version}/%{name}-%{version}.tar.gz
10 # Source0-md5: 82e3a335f942347f1b7c27b9f8e8e984
11 Source1: ldirectord.init
12 Source2: %{name}.tmpfiles
13 Patch0: %{name}-no_header_parsing.patch
14 Patch1: %{name}-bash.patch
15 Patch2: %{name}-ac.patch
16 Patch3: %{name}-sizeof.patch
17 URL: http://www.linux-ha.org/
18 BuildRequires: autoconf >= 2.63
19 BuildRequires: automake >= 1:1.10.1
20 BuildRequires: cluster-glue-libs-devel
21 BuildRequires: docbook-dtd44-xml
22 BuildRequires: docbook-style-xsl
23 BuildRequires: glib2-devel >= 2.0
24 BuildRequires: libnet-devel >= 1.0
25 BuildRequires: libxslt-progs
26 BuildRequires: openssl-tools
27 BuildRequires: perl-tools-pod
28 BuildRequires: pkgconfig
29 BuildRequires: python-devel
30 BuildRequires: rpm-perlprov
32 Requires: cluster-glue
33 Obsoletes: heartbeat-resources < 3.0
34 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37 Scripts to allow common services to operate in a High Availability
40 %description -l pl.UTF-8
41 Skrypty pozwalające na działanie popularnych usług w środowisku
42 wysokiej dostępności (High Availability).
45 Summary: Resource Agents header file
46 Summary(pl.UTF-8): Plik nagłówkowy Resource Agents
47 Group: Development/Libraries
48 # doesn't require base
49 Conflicts: resource-agents < 4.1.1
52 Resource Agents header file.
54 %description devel -l pl.UTF-8
55 Plik nagłówkowy Resource Agents.
57 %package -n ldirectord
58 Summary: A Monitoring Daemon for Maintaining High Availability Resources
59 Summary(pl.UTF-8): Demon monitorujący do utrzymywania zasobów z wysoką dostępnością
61 Group: Applications/System
62 Requires(post,preun): /sbin/chkconfig
65 Provides: heartbeat-ldirectord
66 Obsoletes: heartbeat-ldirectord
68 %description -n ldirectord
69 The Linux Director Daemon (ldirectord) is a stand alone daemon for
70 monitoring the services on real servers. Currently, HTTP, HTTPS, and
71 FTP services are supported. ldirectord is simple to install and works
72 with the heartbeat code (http://www.linux-ha.org/).
74 %description -n ldirectord -l pl.UTF-8
75 Demon Linux Director (ldirectord) to samodzielny demon do
76 monitorowania usług na rzeczywistych serwerach. Obecnie obsługiwane są
77 usługi HTTP, HTTPS i FTP. ldirectord jest prosty do zainstalowania i
78 współpracuje z kodem heartbeat (http://www.linux-ha.org/).
95 IPTABLES=%{_sbindir}/iptables \
99 --docdir=%{_docdir}/%{name}-%{version} \
100 --enable-fatal-warnings \
101 --with-initdir=/etc/rc.d/init.d \
102 --with-ocf-root=%{_prefix}/lib/ocf \
103 --with-systemdsystemunitdir=%{systemdunitdir}
108 rm -rf $RPM_BUILD_ROOT
109 install -d $RPM_BUILD_ROOT%{_sysconfdir}/ha.d/resource.d \
110 $RPM_BUILD_ROOT%{systemdtmpfilesdir}
113 DESTDIR=$RPM_BUILD_ROOT
116 %{__rm} $RPM_BUILD_ROOT%{_datadir}/%{name}/ra-api-1.dtd
118 %{__rm} $RPM_BUILD_ROOT/etc/rc.d/init.d/ldirectord
119 install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/ldirectord
120 cp -a ldirectord/ldirectord.cf $RPM_BUILD_ROOT%{_sysconfdir}/ha.d
121 install %{SOURCE2} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/%{name}.conf
123 # Unset execute permissions from things that shouln't have it
124 find $RPM_BUILD_ROOT%{_datadir} -name 'ocf-*' -type f -print0 | xargs -0 chmod a-x
126 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
129 rm -rf $RPM_BUILD_ROOT
132 /sbin/chkconfig --add ldirectord
133 %service ldirectord restart
136 if [ "$1" = "0" ]; then
137 %service -q ldirectord stop
138 /sbin/chkconfig --del ldirectord
142 %defattr(644,root,root,755)
143 %doc AUTHORS ChangeLog doc/README.webapps heartbeat/ra-api-1.dtd
144 %attr(755,root,root) %{_sbindir}/ocf-tester
145 %attr(755,root,root) %{_sbindir}/ocft
146 %attr(755,root,root) %{_sbindir}/sfex_init
147 %attr(755,root,root) %{_sbindir}/sfex_stat
148 %attr(755,root,root) %{_sbindir}/rhev-check.sh
150 %dir %{_sysconfdir}/ha.d
151 %dir %{_sysconfdir}/ha.d/resource.d
152 %{_sysconfdir}/ha.d/shellfuncs
154 %attr(755,root,root) %{_libexecdir}/heartbeat/send_arp
155 %attr(755,root,root) %{_libexecdir}/heartbeat/send_ua
156 %attr(755,root,root) %{_libexecdir}/heartbeat/sfex_daemon
157 %attr(755,root,root) %{_libexecdir}/heartbeat/findif
158 %attr(755,root,root) %{_libexecdir}/heartbeat/tickle_tcp
160 %dir %{_prefix}/lib/ocf
161 %dir %{_prefix}/lib/ocf/lib
162 %dir %{_prefix}/lib/ocf/lib/heartbeat
163 %{_prefix}/lib/ocf/lib/heartbeat/ocf-*
164 %{_prefix}/lib/ocf/lib/heartbeat/*.sh
165 %dir %{_prefix}/lib/ocf/resource.d
166 %dir %{_prefix}/lib/ocf/resource.d/heartbeat
167 %{_prefix}/lib/ocf/resource.d/heartbeat/.ocf-*
168 %attr(755,root,root) %{_prefix}/lib/ocf/resource.d/heartbeat/*
169 %{_prefix}/lib/ocf/resource.d/redhat
171 %dir %{_datadir}/cluster
172 %{_datadir}/cluster/*.metadata
173 %attr(755,root,root) %{_datadir}/cluster/*.sh
174 %{_datadir}/cluster/SAP*
175 %{_datadir}/cluster/svclib_nfslock
176 %{_datadir}/cluster/ocf-shellfuncs
177 %dir %{_datadir}/cluster/relaxng
178 %{_datadir}/cluster/relaxng/*
179 %dir %{_datadir}/cluster/utils
180 %attr(755,root,root) %{_datadir}/cluster/utils/*
182 %{_datadir}/resource-agents
184 %{systemdunitdir}/resource-agents-deps.target
186 %attr(1755,root,root) /var/run/resource-agents
187 %{systemdtmpfilesdir}/%{name}.conf
189 %{_mandir}/man7/ocf_heartbeat_*.7*
190 %{_mandir}/man8/ocf-tester.8*
191 %{_mandir}/man8/sfex_init.8*
194 %defattr(644,root,root,755)
195 %{_includedir}/heartbeat/agent_config.h
198 %defattr(644,root,root,755)
199 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ha.d/ldirectord.cf
200 %attr(755,root,root) %{_sysconfdir}/ha.d/resource.d/ldirectord
201 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/ldirectord
202 %attr(754,root,root) /etc/rc.d/init.d/ldirectord
203 %{systemdunitdir}/ldirectord.service
204 %attr(755,root,root) %{_sbindir}/ldirectord
205 %{_mandir}/man8/ldirectord.8*