Search
j0ke.net Open Build Service
>
Projects
>
ha
>
keepalived
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 4
[-]
[+]
Added
keepalived.spec
@@ -0,0 +1,93 @@ +Name: keepalived +Summary: HA monitor built upon LVS, VRRP and services poller +Packager: Christophe Varoqui, <christophe.varoqui@free.fr> +Version: 1.1.15 +Release: 1 +Source0: http://www.keepalived.org/software/%{name}-%{version}.tar.gz +Source1: %{name}.init +Patch: %{name}-initdir.diff +License: GPL +Group: Applications/System +BuildRoot: /tmp/%{name}-%{version}.build + +BuildRequires: kernel-source openssl-devel popt-devel ipvsadm + + +%description +The main goal of the keepalived project is to add a strong & robust keepalive facility to the Linux Virtual Server project. This project is written in C with multilayer TCP/IP stack checks. Keepalived implements a framework based on three family checks : Layer3, Layer4 & Layer5. This framework gives the daemon the ability of checking a LVS server pool states. When one of the server of the LVS server pool is down, keepalived informs the linux kernel via a setsockopt call to remove this server entrie from the LVS topology. In addition keepalived implements a VRRPv2 stack to handle director failover. So in short keepalived is a userspace daemon for LVS cluster nodes healthchecks and LVS directors failover. + +%prep +rm -rf %{buildroot} +%setup -q +%patch -p1 +%build +export CFLAGS=-D__KERNGLUE__ +# the setting of mandir should be %{buildroot}/usr/share/man, but the +# makefile adds "man" itself. +./configure --prefix=%{_prefix} \ + --exec-prefix=%{_prefix} \ + --sysconfdir=%{_sysconfdir} \ + --with-kernel-dir=/usr/src/linux \ + --mandir=%{_prefix}/share/man \ + --enable-syncd +make + +%install +rm -rf %{buildroot} +%makeinstall +cd $RPM_BUILD_ROOT/%{_sbindir} +%if 0%{?suse_version} +cp %{S:1} %{buildroot}/etc/init.d/keepalived +%endif +ln -sf ../../etc/init.d/keepalived rckeepalived +rm -rf %{buildroot}/etc/keepalived/samples + +%clean +rm -rf %{buildroot} + +%post +/sbin/chkconfig --add keepalived + +%preun +/sbin/chkconfig --del keepalived + +%files +%defattr(-,root,root) +%{_bindir}/genhash +%{_sbindir}/keepalived +%{_sbindir}/rckeepalived +%{_sysconfdir}/init.d/keepalived +%config %{_sysconfdir}/sysconfig/keepalived +%dir %{_sysconfdir}/keepalived/ +%config %{_sysconfdir}/keepalived/keepalived.conf +%doc %{_mandir}/man5/keepalived.conf.5* +%doc %{_mandir}/man1/genhash.1* +%doc %{_mandir}/man8/keepalived.8* +%doc doc +%doc AUTHOR CONTRIBUTORS TODO COPYING README INSTALL VERSION ChangeLog + +%changelog +* Thu Nov 01 2007 Carsten Schoene <cs@linux-administrator.com> +- add new init script for SuSE environments + +* Fri Sep 21 2007 Carsten Schoene <cs@linux-administrator.com> +- version changed to 1.1.15 + - Fixed genshash makefile. + - Removed http healthchecker buffer minimization causing crash. + - Fixed parser include directive to support multi-level configuration includes. + - Extended SSL checker for better handling of SSL handshake. + - Fixed http healthcheker issue while processing MD5SUM. + - Fixed missing notifications upon VRRP state transition. + - Add support for VRRP virtual_routes to route metric. + - Add a patch for init_dir setting + +* Sat Sep 15 2007 Carsten Schoene <cs@linux-administrator.com> +- version changed to 1.1.14 + - Extended parsing framework to support include directives and error logging. + - Merged patches from rpmforge. + - Add script goodies directory. + - Fixed compilation issue in VRRP code. + - Fixed VRRP negative weights in script. + - Extended VRRP framework to support Old-style Linux aliases. + - Add support to VRRP script logging +