Sophie

Sophie

distrib > * > 2008.0 > x86_64 > by-pkgid > 275c40b784770082a4df9e563891de2d > files > 5

ucarp-1.2-9mdv2008.0.src.rpm

Summary:	UCARP is a portable implementation of the CARP protocol
Name:		ucarp
Version:	1.2
Release:	%mkrel 9
License:	BSD
Group:		Networking/Other
URL:		http://download.pureftpd.org/pub/ucarp/
Source0:	http://download.pureftpd.org/pub/ucarp/%{name}-%{version}.tar.bz2
Source1:	ucarp.8.sgml.bz2
Source2:	ucarp.init
Patch0:		ucarp-1.2-ip_addr_len.patch
BuildRequires:	libpcap-devel
BuildRequires:	docbook-utils
BuildRequires:	docbook-dtd41-sgml
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot
Requires(post):  rpm-helper
Requires(preun): rpm-helper

%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\u2019s 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.

%prep
%setup -q
%patch0 -p0 -b .ip_addr_len

bzcat %{SOURCE1} > ucarp.8.sgml

%build
%configure
%make

docbook2man --backend man ucarp.8.sgml > ucarp.8
mv UCARP.8 ucarp.8

%install
rm -rf $RPM_BUILD_ROOT

install -d %{buildroot}%{_mandir}/man8

%makeinstall_std PREFIX=/usr

install -m755 -D %{SOURCE2} %{buildroot}%{_initrddir}/%{name}
install -d %{buildroot}%{_sysconfdir}/%{name}.d/
install -m0644 ucarp.8 %{buildroot}%{_mandir}/man8/


%find_lang ucarp

%clean
rm -rf $RPM_BUILD_ROOT

%post
%_post_service %{name}

%preun
%_preun_service %{name}

%files -f ucarp.lang
%defattr(-,root,root)
%doc README INSTALL COPYING AUTHORS NEWS examples/linux/*.sh
%defattr(-,root,root,0755)
%{_sbindir}/*
%{_initrddir}/%{name}
%{_sysconfdir}/%{name}.d/
%{_mandir}/man8/ucarp.8*


%changelog
* Wed Sep 19 2007 Guillaume Rousse <guillomovitch@mandriva.org> 1.2-9mdv2008.0
+ Revision: 90340
- rebuild

* Mon Jul 02 2007 Michael Scherer <misc@mandriva.org> 1.2-8mdv2008.0
+ Revision: 47096
- Import ucarp



* Sun Aug 27 2006 Olivier Blin <blino@mandriva.com> 1.2-8mdv2007.0
- make initscript start/stop correctly when no device is configured

* Wed Aug 23 2006 Olivier Blin <blino@mandriva.com> 1.2-7mdv2007.0
- Patch0: fix buffer overflow (#23817, patch from Michael Scherer)

* Wed Aug 23 2006 Olivier Blin <blino@mandriva.com> 1.2-6mdv2007.0
- add support for up/down scripts in initscript
- don't use ignored files in /etc/ucarp.d/

* Tue Aug 22 2006 Olivier Blin <blino@mandriva.com> 1.2-5mdv2007.0
- add service and /etc/ucarp.d configuration directory

* Fri Jul 07 2006 Oden Eriksson <oeriksson@mandriva.com> 1.2-4mdv2007.0
- fix deps

* Wed Jul 05 2006 Oden Eriksson <oeriksson@mandriva.com> 1.2-3mdv2007.0
- add a man page (debian)

* Wed Jul 05 2006 Oden Eriksson <oeriksson@mandriva.com> 1.2-2mdv2007.0
- fix deps

* Thu Jun 29 2006 Samir Bellabes <sbellabes@mandriva.com> 1.2-1mdv2007.0
- First release