2 Summary: User-space arp daemon
3 Summary(pl.UTF-8): Demon arpd
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 alocate 4096 entries.
39 %description -l pl.UTF-8
40 Demon ARP przekazuje zarządzanie tablicą ARP (Address Resolution
41 Protocol) z kernel'a do przestrzeni użytkownika. Jest to bardzo
42 użyteczne dla miejsc o dużych segmentach sieci (256+ systemów na
43 segment), ponieważ tablice w jądrze nie są zoptymalizowane na takie
44 sytuacje. Aby używać tego demona musisz mieć ARPD support oraz NETLINK
45 support uaktywnione w jądrze. Uwaga! Standardowe jądro PLD nie ma
46 supportu ARPD. Demon nie powinien być startowany bez tego! Ta wersja
47 potrafi zaakceptować 4096 pozycji.
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