]>
Commit | Line | Data |
---|---|---|
1 | Summary: Configure network interfaces for parallel routing | |
2 | Summary(pl.UTF-8): Konfiguracja interfejsów sieciowych dla równoległego routingu | |
3 | Summary(pt_BR.UTF-8): Configura interfaces de rede para roteamento paralelo | |
4 | Name: ifenslave | |
5 | Version: 1.1.0 | |
6 | Release: 2 | |
7 | License: GPL | |
8 | Group: Networking | |
9 | Source0: %{name}.c | |
10 | Patch0: %{name}-debian.patch | |
11 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
12 | ||
13 | %define _sbindir /sbin | |
14 | ||
15 | %description | |
16 | Attach and detach slave interfaces to a bonding device. This is a tool to | |
17 | attach and detach slave network interfaces to a bonding device. A bonding | |
18 | device will act like a normal Ethernet network device to the kernel, but | |
19 | will send out the packets via the slave devices using a simple round-robin | |
20 | scheduler. This allows for simple load-balancing, identical to "channel | |
21 | bonding" or "trunking" techniques used in switches. | |
22 | ||
23 | %description -l pl.UTF-8 | |
24 | ifenslave konfiguruje interfejsy sieciowe dla równoległego routingu. | |
25 | ||
26 | %description -l pt_BR.UTF-8 | |
27 | ifenslave configura interfaces de rede para roteamento paralelo. | |
28 | ||
29 | %prep | |
30 | %setup -Tc -q | |
31 | install %{SOURCE0} . | |
32 | %patch0 -p1 | |
33 | ||
34 | ||
35 | %build | |
36 | %{__cc} %{rpmcflags} -o %{name} %{name}.c | |
37 | ||
38 | %install | |
39 | rm -rf $RPM_BUILD_ROOT | |
40 | install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man8} | |
41 | ||
42 | install %{name} $RPM_BUILD_ROOT%{_sbindir} | |
43 | install ifenslave.8 $RPM_BUILD_ROOT%{_mandir}/man8 | |
44 | ||
45 | %clean | |
46 | rm -rf $RPM_BUILD_ROOT | |
47 | ||
48 | %files | |
49 | %defattr(644,root,root,755) | |
50 | %attr(755,root,root) %{_sbindir}/%{name} | |
51 | %{_mandir}/man8/*.8* |