File ucarp.spec of Package ucarp
#
# spec file for package ucarp (Version 1.5.2)
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: ucarp
Version: 1.5.2
Release: 1
License: Other/See package
Group: Productivity/Clustering/HA
BuildRequires: libpcap
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} > 1020
BuildRequires: libpcap-devel
%endif
Summary: UCARP is a portable implementation of the CARP protocol
Url: http://www.ucarp.org/
Source: http://download.pureftpd.org/pub/ucarp/ucarp-%{version}.tar.bz2
Source1: %{name}.init
Source2: %{name}.sysconfig
%description
UCARP allows a couple of hosts to share common virtual IP addresses in order to
provide automatic failover. It is a portable userland implementation of the
secure and patent-free Common Address Redundancy Protocol (CARP, OpenBSD’s
alternative to the patents-bloated VRRP).
Strong points of the CARP protocol are: very low overhead, cryptographically
signed messages, interoperability between different operating systems and no
need for any dedicated extra network link between redundant hosts.
Author:
-------
* Frank DENIS <j@pureftpd.org>
* Eric Evans <eevans@sym-link.com>
* David H <dmalloc@users.sf.net>
* Richard Bellamy <richard.bellamy@virgin.net>
* Russell Mosemann - neutral mode and bug fixes.
%prep
%setup -q
%build
%configure
%{__make}
%install
%makeinstall
%find_lang %{name}
# init script
%{__install} -D -m 0755 %{S:1} \
%{buildroot}%{_sysconfdir}/init.d/%{name}
%{__ln_s} -f %{_sysconfdir}/init.d/%{name} %{buildroot}%{_sbindir}/rc%{name}
# sysconfig template
%{__install} -D -m 0644 %{S:2} \
%{buildroot}%{_localstatedir}/adm/fillup-templates/sysconfig.%{name}
%{__mv} examples/ examples.orig
%{__mkdir} examples/
%{__cp} -a examples.orig/linux/*.sh examples/
%clean
%{__rm} -rf %{buildroot}
%post
%fillup_and_insserv %{name}
%preun
%stop_on_removal %{name}
%postun
%restart_on_update %{name}
%{insserv_cleanup}
%files -f %{name}.lang
%defattr(-,root,root,-)
%{_sbindir}/%{name}
%doc AUTHORS COPYING ChangeLog NEWS README
%doc examples/
%{_sysconfdir}/init.d/%{name}
%{_sbindir}/rc%{name}
%{_localstatedir}/adm/fillup-templates/sysconfig.%{name}
%changelog