1.2.1
by Alexander Wirt
Import upstream version 1.1.15 |
1 |
# $Id$
|
2 |
# Authority: dag
|
|
3 |
||
4 |
# Ugly, but we need headers from a kernel to rebuild against
|
|
5 |
%define kernel %(rpm -q kernel-devel --qf '%{RPMTAG_VERSION}-%{RPMTAG_RELEASE}\\n' 2>/dev/null | head -1) |
|
6 |
||
7 |
Summary: HA monitor built upon LVS, VRRP and services poller |
|
1
by Alexander Wirt
Import upstream version 1.1.7 |
8 |
Name: keepalived |
1.1.5
by Didier Roche
Import upstream version 1.1.17 |
9 |
Version: 1.1.17 |
1.2.1
by Alexander Wirt
Import upstream version 1.1.15 |
10 |
Release: 5 |
11 |
License: GPL |
|
1
by Alexander Wirt
Import upstream version 1.1.7 |
12 |
Group: Applications/System |
1.2.1
by Alexander Wirt
Import upstream version 1.1.15 |
13 |
URL: http://www.keepalived.org/ |
14 |
||
15 |
Source0: http://www.keepalived.org/software/keepalived-%{version}.tar.gz |
|
16 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
|
17 |
||
18 |
BuildRequires: openssl-devel |
|
19 |
# We need both of these for proper LVS support
|
|
20 |
BuildRequires: kernel, kernel-devel |
|
21 |
Requires(post): /sbin/chkconfig |
|
22 |
Requires(preun): /sbin/service, /sbin/chkconfig |
|
23 |
Requires(postun): /sbin/service |
|
1
by Alexander Wirt
Import upstream version 1.1.7 |
24 |
|
25 |
%description
|
|
1.2.1
by Alexander Wirt
Import upstream version 1.1.15 |
26 |
The main goal of the keepalived project is to add a strong & robust keepalive |
27 |
facility to the Linux Virtual Server project. This project is written in C with |
|
28 |
multilayer TCP/IP stack checks. Keepalived implements a framework based on |
|
29 |
three family checks : Layer3, Layer4 & Layer5/7. This framework gives the |
|
30 |
daemon the ability to check the state of an LVS server pool. When one of the |
|
31 |
servers of the LVS server pool is down, keepalived informs the linux kernel via |
|
32 |
a setsockopt call to remove this server entry from the LVS topology. In |
|
33 |
addition keepalived implements an independent VRRPv2 stack to handle director |
|
34 |
failover. So in short keepalived is a userspace daemon for LVS cluster nodes |
|
35 |
healthchecks and LVS directors failover. |
|
36 |
||
1
by Alexander Wirt
Import upstream version 1.1.7 |
37 |
|
38 |
%prep
|
|
1.2.1
by Alexander Wirt
Import upstream version 1.1.15 |
39 |
%setup
|
40 |
||
1
by Alexander Wirt
Import upstream version 1.1.7 |
41 |
|
42 |
%build
|
|
1.2.1
by Alexander Wirt
Import upstream version 1.1.15 |
43 |
%{?el3:export CPPFLAGS="-I/usr/kerberos/include"} |
44 |
%{?rh9:export CPPFLAGS="-I/usr/kerberos/include"} |
|
45 |
%configure \
|
|
46 |
%{?el3:--includedir="/usr/kerberos/include"} \ |
|
47 |
%{?rh9:--includedir="/usr/kerberos/include"} \ |
|
48 |
--with-kernel-dir="/lib/modules/%{kernel}/build" |
|
49 |
%{__make} %{?_smp_mflags} STRIP=/bin/true |
|
50 |
||
1
by Alexander Wirt
Import upstream version 1.1.7 |
51 |
|
52 |
%install
|
|
1.2.1
by Alexander Wirt
Import upstream version 1.1.15 |
53 |
%{__rm} -rf %{buildroot} |
54 |
%{__make} install DESTDIR=%{buildroot} |
|
55 |
# Remove "samples", as we include them in %%doc
|
|
56 |
%{__rm} -rf %{buildroot}%{_sysconfdir}/keepalived/samples/ |
|
57 |
||
58 |
%check
|
|
59 |
# A build could silently have LVS support disabled if the kernel includes can't
|
|
60 |
# be properly found, we need to avoid that.
|
|
61 |
if ! grep -q "IPVS_SUPPORT='_WITH_LVS_'" config.log; then |
|
62 |
echo "ERROR: We do not want keeepalived lacking LVS support." |
|
63 |
exit 1 |
|
64 |
fi
|
|
65 |
||
1
by Alexander Wirt
Import upstream version 1.1.7 |
66 |
|
67 |
%clean
|
|
1.2.1
by Alexander Wirt
Import upstream version 1.1.15 |
68 |
%{__rm} -rf %{buildroot} |
69 |
||
1
by Alexander Wirt
Import upstream version 1.1.7 |
70 |
|
71 |
%post
|
|
72 |
/sbin/chkconfig --add keepalived |
|
73 |
||
74 |
%preun
|
|
1.2.1
by Alexander Wirt
Import upstream version 1.1.15 |
75 |
if [ $1 -eq 0 ]; then |
76 |
/sbin/service keepalived stop &>/dev/null || : |
|
77 |
/sbin/chkconfig --del keepalived |
|
78 |
fi
|
|
79 |
||
80 |
%postun
|
|
81 |
if [ $1 -ge 1 ]; then |
|
82 |
/sbin/service keepalived condrestart &>/dev/null || : |
|
83 |
fi
|
|
84 |
||
1
by Alexander Wirt
Import upstream version 1.1.7 |
85 |
|
86 |
%files
|
|
1.2.1
by Alexander Wirt
Import upstream version 1.1.15 |
87 |
%defattr(-, root, root, 0755) |
88 |
%doc AUTHOR ChangeLog CONTRIBUTORS COPYING README TODO |
|
89 |
%doc doc/keepalived.conf.SYNOPSIS doc/samples/ |
|
90 |
%dir %{_sysconfdir}/keepalived/ |
|
91 |
%attr(0600, root, root) %config(noreplace) %{_sysconfdir}/keepalived/keepalived.conf |
|
92 |
%attr(0600, root, root) %config(noreplace) %{_sysconfdir}/sysconfig/keepalived |
|
93 |
%{_sysconfdir}/rc.d/init.d/keepalived |
|
1
by Alexander Wirt
Import upstream version 1.1.7 |
94 |
%{_bindir}/genhash |
95 |
%{_sbindir}/keepalived |
|
1.2.1
by Alexander Wirt
Import upstream version 1.1.15 |
96 |
%{_mandir}/man1/genhash.1* |
97 |
%{_mandir}/man5/keepalived.conf.5* |
|
98 |
%{_mandir}/man8/keepalived.8* |
|
99 |
||
100 |
||
101 |
%changelog
|
|
102 |
* Thu Sep 13 2007 Alexandre Cassen <acassen@linux-vs.org> 1.1.14 |
|
103 |
- Merge work done by freshrpms.net... Thanks guys !!! ;) |
|
104 |
||
105 |
* Wed Feb 14 2007 Matthias Saou <http://freshrpms.net/> 1.1.13-5 |
|
106 |
- Add missing scriplet requirements. |
|
107 |
||
108 |
* Tue Feb 13 2007 Matthias Saou <http://freshrpms.net/> 1.1.13-4 |
|
109 |
- Add missing \n to the kernel define, for when multiple kernels are installed. |
|
110 |
- Pass STRIP=/bin/true to "make" in order to get a useful debuginfo package. |
|
111 |
||
112 |
* Tue Feb 13 2007 Matthias Saou <http://freshrpms.net/> 1.1.13-3 |
|
113 |
- Add %%check section to make sure any build without LVS support will fail. |
|
114 |
||
115 |
* Mon Feb 5 2007 Matthias Saou <http://freshrpms.net/> 1.1.13-2 |
|
116 |
- Use our own init script, include a sysconfig entry used by it for options. |
|
117 |
||
118 |
* Thu Jan 25 2007 Matthias Saou <http://freshrpms.net/> 1.1.13-1 |
|
119 |
- Update to 1.1.13. |
|
120 |
- Change mode of configuration file to 0600. |
|
121 |
- Don't include all of "doc" since it meant re-including all man pages. |
|
122 |
- Don't include samples in the main configuration path, they're in %%doc. |
|
123 |
- Include patch to add an optional label to interfaces. |
|
124 |
||
125 |
* Sat Apr 08 2006 Dries Verachtert <dries@ulyssis.org> - 1.1.12-1.2 |
|
126 |
- Rebuild for Fedora Core 5. |
|
127 |
||
128 |
* Sun Mar 12 2006 Dag Wieers <dag@wieers.com> - 1.1.12-1 |
|
129 |
- Updated to release 1.1.12. |
|
130 |
||
131 |
* Fri Mar 04 2005 Dag Wieers <dag@wieers.com> - 1.1.11-1 |
|
132 |
- Updated to release 1.1.11. |
|
133 |
||
134 |
* Wed Feb 23 2005 Dag Wieers <dag@wieers.com> - 1.1.10-2 |
|
135 |
- Fixed IPVS/LVS support. (Joe Sauer) |
|
136 |
||
137 |
* Tue Feb 15 2005 Dag Wieers <dag@wieers.com> - 1.1.10-1 |
|
138 |
- Updated to release 1.1.10. |
|
139 |
||
140 |
* Mon Feb 07 2005 Dag Wieers <dag@wieers.com> - 1.1.9-1 |
|
141 |
- Updated to release 1.1.9. |
|
142 |
||
143 |
* Sun Oct 17 2004 Dag Wieers <dag@wieers.com> - 1.1.7-2 |
|
144 |
- Fixes to build with kernel IPVS support. (Tim Verhoeven) |
|
145 |
||
146 |
* Fri Sep 24 2004 Dag Wieers <dag@wieers.com> - 1.1.7-1 |
|
147 |
- Updated to release 1.1.7. (Mathieu Lubrano) |
|
148 |
||
149 |
* Mon Feb 23 2004 Dag Wieers <dag@wieers.com> - 1.1.6-0 |
|
150 |
- Updated to release 1.1.6. |
|
151 |
||
152 |
* Mon Jan 26 2004 Dag Wieers <dag@wieers.com> - 1.1.5-0 |
|
153 |
- Updated to release 1.1.5. |
|
154 |
||
155 |
* Mon Dec 29 2003 Dag Wieers <dag@wieers.com> - 1.1.4-0 |
|
156 |
- Updated to release 1.1.4. |
|
157 |
||
158 |
* Fri Jun 06 2003 Dag Wieers <dag@wieers.com> - 1.0.3-0 |
|
159 |
- Initial package. (using DAR) |
|
160 |