1 Summary: User-space arp daemon
2 Summary(pl): Demon arpd
10 Source0: %{name}-%{version}.tar.gz
12 Patch0: %{name}-%{version}.debian-patch
13 Patch1: %{name}-%{version}.pld-patch
14 Patch2: %{name}-makefile-patch
15 Patch3: %{name}-more_tables.patch
16 Prereq: /sbin/chkconfig
17 Prereq: rc-scripts >= 0.2.0
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 The ARP daemon moves the management of the ARP (Address Resolution
23 Protocol) table from kernel to user space. It is useful for sites with
24 LARGE network segments (256+ systems per segment), because the kernel
25 hash tables are not optimized to handle this situation. To use the ARP
26 daemon your kernel needs to have ARPD and NETLINK support enabled. The
27 standard kernels of PLD lack this support. It shouldn't be run without
28 that!! This version can alocate 2048 entries.
31 Demon ARP przekazuje zarz±dzanie tablic± ARP (Address Resolution
32 Protocol) z kernel'a do przestrzeni u¿ytkownika. Jest to bardzo
33 u¿yteczne dla miejsc o du¿ych segmentach sieci (256+ systemów na
34 segment), poniewa¿ tablice w j±drze nie s± zoptymalizowane na takie
35 sytuacje. Aby u¿ywaæ tego demona musisz mieæ ARPD support oraz NETLINK
36 support uaktywnione w j±drze. Uwaga! Stanadardowe j±dro PLD nie ma
37 supportu ARPD!!. Demon nie powinien byæ startowany bez tego!! Ta
38 wersja potrafi zaakceptowaæ 2048 pozycji.
41 %setup -q -n %{name}-%{version}.orig
51 rm -rf $RPM_BUILD_ROOT
52 install -d $RPM_BUILD_ROOT/{usr/sbin,etc/rc.d/init.d}
54 install arpd $RPM_BUILD_ROOT%{_sbindir}/arpd
55 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/arpd
60 /sbin/chkconfig --add arpd
61 if [ ! -f /dev/arpd ]; then
62 mknod /dev/arpd c 36 8
65 echo "You need arpd kernel support. The standard kernels of PLD lack this support!!"
66 if [ -f /var/lock/subsys/arpd ]; then
67 /etc/rc.d/init.d/arpd restart 1>&2
69 echo "Run \"/etc/rc.d/init.d/arpd start\" to start arpd daemon."
74 /sbin/chkconfig --del arpd
75 if [ "$1" = "0" ]; then
76 if [ -f /var/lock/subsys/arpd ]; then
77 /etc/rc.d/init.d/arpd stop 1>&2
79 /sbin/chkconfig --del arpd
83 rm -rf $RPM_BUILD_ROOT
86 %defattr(644,root,root,755)
88 %attr(754,root,root) %{_sbindir}/arpd
89 %attr(754,root,root) /etc/rc.d/init.d/arpd