2 Summary: User-space arp daemon
3 Summary(pl.UTF-8): Demon arpd działający w przestrzeni użytkownika
10 #Source0: http://www.loran.com/~layes/arpd/%{name}-%{version}.tar.gz
11 # working (copy of original package):
12 #Source0: http://www.funet.fi/pub/Linux/PEOPLE/Linus/net-source/base/%{name}-%{version}.tar.gz
13 # but in CVS we probably have some renamed source from Debian (with .orig inside)
14 Source0: %{name}-%{version}.tar.gz
15 # Source0-md5: 4b445f5698342c873068a86a18bc3d6a
17 Patch0: %{name}-%{version}.debian-patch
18 Patch1: %{name}-%{version}.pld-patch
19 Patch2: %{name}-makefile-patch
20 Patch3: %{name}-more_tables.patch
21 Patch4: %{name}-uid.patch
22 #URL: http://www.loran.com/~layes/arpd/
23 BuildRequires: rpmbuild(macros) >= 1.268
24 Requires(post,preun): /sbin/chkconfig
25 Requires: dev >= 2.8.0-4
27 Requires: rc-scripts >= 0.2.0
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 The ARP daemon moves the management of the ARP (Address Resolution
32 Protocol) table from kernel to user space. It is useful for sites with
33 LARGE network segments (256+ systems per segment), because the kernel
34 hash tables are not optimized to handle this situation. To use the ARP
35 daemon your kernel needs to have ARPD and NETLINK support enabled. The
36 standard kernels of PLD lack this support. It shouldn't be run without
37 that! This version can allocate 4096 entries.
39 %description -l pl.UTF-8
40 Demon ARP przekazuje zarządzanie tablicą ARP (Address Resolution
41 Protocol) z jądra do przestrzeni użytkownika. Jest to bardzo użyteczne
42 w miejscach o dużych segmentach sieci (256+ systemów na segment),
43 ponieważ tablice w jądrze nie są zoptymalizowane na takie sytuacje.
44 Aby używać tego demona jądro musi mieć włączoną obsługę ARPD i
45 NETLINK. Uwaga! Standardowe jądro PLD nie ma obsługi ARPD. Demon nie
46 powinien być startowany bez tego! Ta wersja potrafi przydzielić 4096
50 %setup -q -n %{name}-%{version}.orig
60 LDFLAGS="%{rpmldflags}" \
61 RPM_OPT_FLAGS="%{rpmcflags}"
64 rm -rf $RPM_BUILD_ROOT
65 install -d $RPM_BUILD_ROOT/{usr/sbin,etc/rc.d/init.d}
67 install arpd $RPM_BUILD_ROOT%{_sbindir}/arpd
68 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/arpd
71 rm -rf $RPM_BUILD_ROOT
74 /sbin/chkconfig --add arpd
75 %service arpd restart "arpd daemon"
78 if [ "$1" = "0" ]; then
80 /sbin/chkconfig --del arpd
84 %defattr(644,root,root,755)
85 %doc CHANGES README.html
86 %attr(754,root,root) %{_sbindir}/arpd
87 %attr(754,root,root) /etc/rc.d/init.d/arpd