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