]> git.pld-linux.org Git - packages/arpd.git/blob - arpd.spec
- massive attack: source-md5
[packages/arpd.git] / arpd.spec
1 Summary:        User-space arp daemon
2 Summary(pl):    Demon arpd
3 Name:           arpd
4 Version:        1.0.2
5 Release:        8
6 License:        GPL
7 Group:          Daemons
8 # origin, but 404
9 #Source0:       http://www.loran.com/~layes/arpd/%{name}-%{version}.tar.gz
10 # working (copy of original package):
11 #Source0:       http://www.funet.fi/pub/Linux/PEOPLE/Linus/net-source/base/%{name}-%{version}.tar.gz
12 # but in CVS we probably have some renamed source from Debian (with .orig inside)
13 Source0:        %{name}-%{version}.tar.gz
14 # Source0-md5:  4b445f5698342c873068a86a18bc3d6a
15 Source1:        %{name}-init
16 Patch0:         %{name}-%{version}.debian-patch
17 Patch1:         %{name}-%{version}.pld-patch
18 Patch2:         %{name}-makefile-patch
19 Patch3:         %{name}-more_tables.patch
20 Patch4:         %{name}-uid.patch
21 #URL:           http://www.loran.com/~layes/arpd/
22 Prereq:         fileutils
23 Prereq:         rc-scripts >= 0.2.0
24 Requires(post,preun):   /sbin/chkconfig
25 Requires:       dev >= 2.8.0-4
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %description
29 The ARP daemon moves the management of the ARP (Address Resolution
30 Protocol) table from kernel to user space. It is useful for sites with
31 LARGE network segments (256+ systems per segment), because the kernel
32 hash tables are not optimized to handle this situation. To use the ARP
33 daemon your kernel needs to have ARPD and NETLINK support enabled. The
34 standard kernels of PLD lack this support. It shouldn't be run without
35 that! This version can alocate 4096 entries.
36
37 %description -l pl
38 Demon ARP przekazuje zarz±dzanie tablic± ARP (Address Resolution
39 Protocol) z kernel'a do przestrzeni u¿ytkownika. Jest to bardzo
40 u¿yteczne dla miejsc o du¿ych segmentach sieci (256+ systemów na
41 segment), poniewa¿ tablice w j±drze nie s± zoptymalizowane na takie
42 sytuacje. Aby u¿ywaæ tego demona musisz mieæ ARPD support oraz NETLINK
43 support uaktywnione w j±drze. Uwaga! Stanadardowe j±dro PLD nie ma
44 supportu ARPD. Demon nie powinien byæ startowany bez tego! Ta wersja
45 potrafi zaakceptowaæ 4096 pozycji.
46
47 %prep
48 %setup  -q -n %{name}-%{version}.orig
49 %patch0 -p1
50 %patch1 -p1
51 %patch2 -p1
52 %patch3
53 %patch4 -p1
54
55 %build
56 %{__make}
57
58 %install
59 rm -rf $RPM_BUILD_ROOT
60 install -d $RPM_BUILD_ROOT/{usr/sbin,etc/rc.d/init.d}
61
62 install arpd $RPM_BUILD_ROOT%{_sbindir}/arpd
63 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/arpd
64
65 %clean
66 rm -rf $RPM_BUILD_ROOT
67
68 %post
69 /sbin/chkconfig --add arpd
70 if [ -f /var/lock/subsys/arpd ]; then
71         /etc/rc.d/init.d/arpd restart 1>&2
72 else
73         echo "Run \"/etc/rc.d/init.d/arpd start\" to start arpd daemon."
74 fi
75
76 %preun
77 if [ "$1" = "0" ]; then
78         if [ -f /var/lock/subsys/arpd ]; then
79                 /etc/rc.d/init.d/arpd stop 1>&2
80         fi
81         /sbin/chkconfig --del arpd
82 fi
83
84 %files
85 %defattr(644,root,root,755)
86 %doc CHANGES README.html
87 %attr(754,root,root) %{_sbindir}/arpd
88 %attr(754,root,root) /etc/rc.d/init.d/arpd
This page took 0.064917 seconds and 3 git commands to generate.