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