]> git.pld-linux.org Git - packages/ucarp.git/blame - ucarp.spec
- upped to 1.5.1
[packages/ucarp.git] / ucarp.spec
CommitLineData
cf5959c5 1Summary: Common Address Redundancy Protocol (CARP) for Unix
8efa9a8c 2Summary(pl.UTF-8): CARP (Common Address Redundancy Protocol) dla Uniksa
cf5959c5 3Name: ucarp
840ba70b 4Version: 1.5.1
5Release: 1
cf5959c5 6License: BSD
7Group: Applications/Networking
8Source0: ftp://ftp.ucarp.org/pub/ucarp/%{name}-%{version}.tar.gz
840ba70b 9# Source0-md5: 391caa69fc17ffbc8a3543d8692021c9
bd9e9bfb 10Source1: %{name}.init
11Source2: %{name}.sysconfig
12Source3: %{name}.config.template
26220586 13URL: http://www.ucarp.org/
cf5959c5 14BuildRequires: autoconf
15BuildRequires: automake
7474d399 16BuildRequires: libtool
bd9e9bfb 17BuildRequires: libpcap-devel
cf5959c5 18BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20%description
adaa8743
JB
21UCARP allows a couple of hosts to share common virtual IP addresses in
22order to provide automatic failover. It is a portable userland
23implementation of the secure and patent-free Common Address Redundancy
24Protocol (CARP, OpenBSD's alternative to the VRRP).
25
26Strong points of the CARP protocol are: very low overhead,
27cryptographically signed messages, interoperability between different
28operating systems and no need for any dedicated extra network link
29between redundant hosts.
30
163e4fc8
JR
31%description -l pl.UTF-8
32UCARP pozwala kilku hostom na dzielenie wspólnych wirtualnych adresów
adaa8743 33IP w celu automatycznego przejmowania w przypadku awarii. Jest to
163e4fc8
JR
34przenośna implementacja w przestrzeni użytkownika bezpiecznego i
35wolnego od patentów protokołu CARP (Common Address Redundancy Protocol
adaa8743
JB
36- alternatywy OpenBSD dla VRRP).
37
163e4fc8
JR
38Silne punkty protokołu CARP to: bardzo mały narzut, kryptograficznie
39podpisywanie komunikaty, współdziałanie między różnymi systemami
40operacyjnymi i brak potrzeby dedykowanego dodatkowego połączenia
41sieciowego między nadmiarowymi hostami.
cf5959c5 42
43%prep
44%setup -q
45
46%build
7474d399 47%{__libtoolize}
cf5959c5 48%{__aclocal}
49%{__autoconf}
50%{__autoheader}
51%{__automake}
52%configure
53%{__make}
54
55%install
56rm -rf $RPM_BUILD_ROOT
cf5959c5 57
adaa8743
JB
58%{__make} install \
59 DESTDIR=$RPM_BUILD_ROOT
cf5959c5 60
bd9e9bfb 61install -d $RPM_BUILD_ROOT%{_sysconfdir}/{%{name},rc.d/init.d,sysconfig} $RPM_BUILD_ROOT/%{_varrun}/%{name}
62install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/%{name}
63install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/%{name}
64install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/config.template
65install examples/linux/vip-down.sh $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/
66install examples/linux/vip-up.sh $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/
67
cf5959c5 68%clean
69rm -rf $RPM_BUILD_ROOT
70
bd9e9bfb 71%post
72/sbin/chkconfig --add ucarp
73%service ucarp restart "UCARP"
74
75%preun
76if [ "$1" = "0" ]; then
77 %service ucarp stop
78 /sbin/chkconfig --del ucarp
79fi
80
81
cf5959c5 82%files
83%defattr(644,root,root,755)
bd9e9bfb 84%{_sysconfdir}/sysconfig/%{name}
85%{_varrun}/%{name}
86%attr(755,root,root) %{_sysconfdir}/rc.d/init.d/%{name}
cf5959c5 87%attr(755,root,root) %{_sbindir}/*
bd9e9bfb 88%dir %{_sysconfdir}/%{name}
89%attr(750,root,root) %{_sysconfdir}/%{name}
90%attr(640,root,root) %{_sysconfdir}/%{name}/*
91%attr(750,root,root) %{_sysconfdir}/%{name}/vip-down.sh
92%attr(750,root,root) %{_sysconfdir}/%{name}/vip-up.sh
This page took 0.113976 seconds and 4 git commands to generate.