]>
Commit | Line | Data |
---|---|---|
fb499b48 | 1 | Summary: Reusable cluster resource scripts |
187a7368 | 2 | Summary(pl.UTF-8): Skrypty wielokrotnego użytku do obsługi zasobów klastrowych |
fb499b48 | 3 | Name: resource-agents |
3c433e79 | 4 | Version: 4.5.0 |
9830fbb4 | 5 | Release: 2 |
187a7368 | 6 | License: GPL v2+, LGPL v2.1+ |
fb499b48 | 7 | Group: Daemons |
904da274 | 8 | #Source0Download: https://github.com/ClusterLabs/resource-agents/releases |
90af1b64 | 9 | Source0: https://github.com/ClusterLabs/resource-agents/archive/v%{version}/%{name}-%{version}.tar.gz |
3c433e79 | 10 | # Source0-md5: 265fd01a2b4119b7b733c829c4c36d32 |
ad00dd5b | 11 | Source1: ldirectord.init |
4903c17c | 12 | Source2: %{name}.tmpfiles |
bdbf8211 | 13 | Patch0: %{name}-no_header_parsing.patch |
53cd79e0 | 14 | Patch1: %{name}-bash.patch |
a3f1a2a9 | 15 | Patch2: %{name}-ac.patch |
187a7368 JB |
16 | URL: http://www.linux-ha.org/ |
17 | BuildRequires: autoconf >= 2.63 | |
18 | BuildRequires: automake >= 1:1.10.1 | |
fb499b48 | 19 | BuildRequires: cluster-glue-libs-devel |
fd5fc126 | 20 | BuildRequires: docbook-dtd44-xml |
fb499b48 | 21 | BuildRequires: docbook-style-xsl |
187a7368 JB |
22 | BuildRequires: glib2-devel >= 2.0 |
23 | BuildRequires: libnet-devel >= 1.0 | |
fd5fc126 | 24 | BuildRequires: libxslt-progs |
25 | BuildRequires: openssl-tools | |
187a7368 | 26 | BuildRequires: perl-tools-pod |
fb499b48 | 27 | BuildRequires: pkgconfig |
3c433e79 | 28 | BuildRequires: python-devel >= 1:2.7 |
435fef0d | 29 | BuildRequires: rpm-perlprov |
3c433e79 | 30 | BuildRequires: sed >= 4.0 |
fb499b48 | 31 | BuildRequires: which |
4544edf5 | 32 | Requires: cluster-glue |
3c433e79 | 33 | Requires: python >= 1:2.7 |
fb499b48 ER |
34 | Obsoletes: heartbeat-resources < 3.0 |
35 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
36 | ||
37 | %description | |
38 | Scripts to allow common services to operate in a High Availability | |
39 | environment. | |
40 | ||
187a7368 JB |
41 | %description -l pl.UTF-8 |
42 | Skrypty pozwalające na działanie popularnych usług w środowisku | |
43 | wysokiej dostępności (High Availability). | |
44 | ||
9d31d892 JB |
45 | %package devel |
46 | Summary: Resource Agents header file | |
47 | Summary(pl.UTF-8): Plik nagłówkowy Resource Agents | |
48 | Group: Development/Libraries | |
49 | # doesn't require base | |
50 | Conflicts: resource-agents < 4.1.1 | |
51 | ||
52 | %description devel | |
53 | Resource Agents header file. | |
54 | ||
55 | %description devel -l pl.UTF-8 | |
56 | Plik nagłówkowy Resource Agents. | |
57 | ||
fb499b48 ER |
58 | %package -n ldirectord |
59 | Summary: A Monitoring Daemon for Maintaining High Availability Resources | |
187a7368 | 60 | Summary(pl.UTF-8): Demon monitorujący do utrzymywania zasobów z wysoką dostępnością |
fb499b48 ER |
61 | License: GPL v2+ |
62 | Group: Applications/System | |
ad00dd5b | 63 | Requires(post,preun): /sbin/chkconfig |
fb499b48 | 64 | Requires: ipvsadm |
ad00dd5b | 65 | Requires: rc-scripts |
fb499b48 ER |
66 | Provides: heartbeat-ldirectord |
67 | Obsoletes: heartbeat-ldirectord | |
68 | ||
69 | %description -n ldirectord | |
187a7368 JB |
70 | The Linux Director Daemon (ldirectord) is a stand alone daemon for |
71 | monitoring the services on real servers. Currently, HTTP, HTTPS, and | |
72 | FTP services are supported. ldirectord is simple to install and works | |
73 | with the heartbeat code (http://www.linux-ha.org/). | |
fb499b48 | 74 | |
187a7368 JB |
75 | %description -n ldirectord -l pl.UTF-8 |
76 | Demon Linux Director (ldirectord) to samodzielny demon do | |
77 | monitorowania usług na rzeczywistych serwerach. Obecnie obsługiwane są | |
78 | usługi HTTP, HTTPS i FTP. ldirectord jest prosty do zainstalowania i | |
79 | współpracuje z kodem heartbeat (http://www.linux-ha.org/). | |
fb499b48 ER |
80 | |
81 | %prep | |
90af1b64 | 82 | %setup -q |
bdbf8211 | 83 | %patch0 -p1 |
53cd79e0 | 84 | %patch1 -p1 |
a3f1a2a9 | 85 | %patch2 -p1 |
fb499b48 ER |
86 | |
87 | %build | |
3c433e79 | 88 | %{__aclocal} -I m4 |
a3f1a2a9 | 89 | %{__autoconf} |
fb499b48 ER |
90 | %{__autoheader} |
91 | %{__automake} | |
3c433e79 JB |
92 | # with strict alasing tools/tickle_tcp.c emits "maybe uninitialized" warnings |
93 | CFLAGS="%{rpmcflags} -fno-strict-aliasing" | |
fb499b48 | 94 | %configure \ |
63a87a2f ER |
95 | FSCK=/sbin/fsck \ |
96 | FUSER=/bin/fuser \ | |
2f11abc1 | 97 | IPTABLES=%{_sbindir}/iptables \ |
63a87a2f ER |
98 | MAILCMD=/bin/mail \ |
99 | MOUNT=/bin/mount \ | |
100 | PING=/bin/ping \ | |
3c433e79 | 101 | PYTHON="%{__python}" \ |
187a7368 JB |
102 | --docdir=%{_docdir}/%{name}-%{version} \ |
103 | --enable-fatal-warnings \ | |
fb499b48 | 104 | --with-initdir=/etc/rc.d/init.d \ |
90af1b64 JB |
105 | --with-ocf-root=%{_prefix}/lib/ocf \ |
106 | --with-systemdsystemunitdir=%{systemdunitdir} | |
fb499b48 ER |
107 | |
108 | %{__make} | |
109 | ||
110 | %install | |
111 | rm -rf $RPM_BUILD_ROOT | |
4903c17c ŁK |
112 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/ha.d/resource.d \ |
113 | $RPM_BUILD_ROOT%{systemdtmpfilesdir} | |
bdbf8211 | 114 | |
fb499b48 ER |
115 | %{__make} install \ |
116 | DESTDIR=$RPM_BUILD_ROOT | |
117 | ||
2dfad878 | 118 | # in doc |
187a7368 | 119 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/%{name}/ra-api-1.dtd |
2dfad878 | 120 | |
187a7368 | 121 | %{__rm} $RPM_BUILD_ROOT/etc/rc.d/init.d/ldirectord |
ad00dd5b ER |
122 | install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/ldirectord |
123 | cp -a ldirectord/ldirectord.cf $RPM_BUILD_ROOT%{_sysconfdir}/ha.d | |
4903c17c | 124 | install %{SOURCE2} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/%{name}.conf |
fb499b48 | 125 | |
fb499b48 | 126 | # Unset execute permissions from things that shouln't have it |
435fef0d | 127 | find $RPM_BUILD_ROOT%{_datadir} -name 'ocf-*' -type f -print0 | xargs -0 chmod a-x |
fb499b48 | 128 | |
2ee01ec2 JR |
129 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} |
130 | ||
fb499b48 ER |
131 | %clean |
132 | rm -rf $RPM_BUILD_ROOT | |
133 | ||
ad00dd5b | 134 | %post -n ldirectord |
fb499b48 | 135 | /sbin/chkconfig --add ldirectord |
ad00dd5b ER |
136 | %service ldirectord restart |
137 | ||
138 | %preun -n ldirectord | |
139 | if [ "$1" = "0" ]; then | |
140 | %service -q ldirectord stop | |
141 | /sbin/chkconfig --del ldirectord | |
142 | fi | |
fb499b48 ER |
143 | |
144 | %files | |
145 | %defattr(644,root,root,755) | |
a3f1a2a9 | 146 | %doc AUTHORS ChangeLog doc/README.webapps heartbeat/ra-api-1.dtd |
fb499b48 | 147 | %attr(755,root,root) %{_sbindir}/ocf-tester |
2f11abc1 | 148 | %attr(755,root,root) %{_sbindir}/ocft |
fb499b48 | 149 | %attr(755,root,root) %{_sbindir}/sfex_init |
2f11abc1 | 150 | %attr(755,root,root) %{_sbindir}/sfex_stat |
6b4315c3 | 151 | %attr(755,root,root) %{_sbindir}/rhev-check.sh |
187a7368 | 152 | |
bdbf8211 JK |
153 | %dir %{_sysconfdir}/ha.d |
154 | %dir %{_sysconfdir}/ha.d/resource.d | |
fb499b48 | 155 | %{_sysconfdir}/ha.d/shellfuncs |
187a7368 | 156 | |
9d31d892 JB |
157 | %attr(755,root,root) %{_libexecdir}/heartbeat/send_arp |
158 | %attr(755,root,root) %{_libexecdir}/heartbeat/send_ua | |
159 | %attr(755,root,root) %{_libexecdir}/heartbeat/sfex_daemon | |
160 | %attr(755,root,root) %{_libexecdir}/heartbeat/findif | |
161 | %attr(755,root,root) %{_libexecdir}/heartbeat/tickle_tcp | |
187a7368 | 162 | |
6b4315c3 | 163 | %dir %{_prefix}/lib/ocf |
6b4315c3 | 164 | %dir %{_prefix}/lib/ocf/lib |
165 | %dir %{_prefix}/lib/ocf/lib/heartbeat | |
187a7368 | 166 | %{_prefix}/lib/ocf/lib/heartbeat/ocf-* |
3c433e79 | 167 | %{_prefix}/lib/ocf/lib/heartbeat/ocf.py |
187a7368 JB |
168 | %{_prefix}/lib/ocf/lib/heartbeat/*.sh |
169 | %dir %{_prefix}/lib/ocf/resource.d | |
170 | %dir %{_prefix}/lib/ocf/resource.d/heartbeat | |
171 | %{_prefix}/lib/ocf/resource.d/heartbeat/.ocf-* | |
6b4315c3 | 172 | %attr(755,root,root) %{_prefix}/lib/ocf/resource.d/heartbeat/* |
187a7368 JB |
173 | %{_prefix}/lib/ocf/resource.d/redhat |
174 | ||
175 | %dir %{_datadir}/cluster | |
6b4315c3 | 176 | %{_datadir}/cluster/*.metadata |
187a7368 | 177 | %attr(755,root,root) %{_datadir}/cluster/*.sh |
6b4315c3 | 178 | %{_datadir}/cluster/SAP* |
179 | %{_datadir}/cluster/svclib_nfslock | |
180 | %{_datadir}/cluster/ocf-shellfuncs | |
187a7368 | 181 | %dir %{_datadir}/cluster/relaxng |
6b4315c3 | 182 | %{_datadir}/cluster/relaxng/* |
187a7368 | 183 | %dir %{_datadir}/cluster/utils |
6b4315c3 | 184 | %attr(755,root,root) %{_datadir}/cluster/utils/* |
187a7368 JB |
185 | |
186 | %{_datadir}/resource-agents | |
187 | ||
9d31d892 | 188 | %{systemdunitdir}/resource-agents-deps.target |
187a7368 JB |
189 | |
190 | %attr(1755,root,root) /var/run/resource-agents | |
191 | %{systemdtmpfilesdir}/%{name}.conf | |
192 | ||
193 | %{_mandir}/man7/ocf_heartbeat_*.7* | |
6b4315c3 | 194 | %{_mandir}/man8/ocf-tester.8* |
195 | %{_mandir}/man8/sfex_init.8* | |
196 | ||
9d31d892 JB |
197 | %files devel |
198 | %defattr(644,root,root,755) | |
199 | %{_includedir}/heartbeat/agent_config.h | |
200 | ||
fb499b48 ER |
201 | %files -n ldirectord |
202 | %defattr(644,root,root,755) | |
ad00dd5b | 203 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ha.d/ldirectord.cf |
ad00dd5b | 204 | %attr(755,root,root) %{_sysconfdir}/ha.d/resource.d/ldirectord |
187a7368 | 205 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/ldirectord |
fb499b48 | 206 | %attr(754,root,root) /etc/rc.d/init.d/ldirectord |
90af1b64 | 207 | %{systemdunitdir}/ldirectord.service |
187a7368 JB |
208 | %attr(755,root,root) %{_sbindir}/ldirectord |
209 | %{_mandir}/man8/ldirectord.8* |