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