]> git.pld-linux.org Git - packages/arpd.git/blob - arpd.spec
- spec adapterized and few cosmetics.
[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:        1
6 License:        GPL
7 Group:          Daemons
8 Group(de):      Server
9 Group(pl):      Serwery
10 Source0:        %{name}-%{version}.tar.gz
11 Source1:        %{name}-init
12 Patch0:         %{name}-%{version}.debian-patch
13 Patch1:         %{name}-%{version}.pld-patch
14 Patch2:         %{name}-makefile-patch
15 Prereq:         /sbin/chkconfig
16 Prereq:         rc-scripts >= 0.2.0
17 Prereq:         fileutils
18 #BuildRequires: 
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
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!!
29
30 %description -l pl
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!!
38
39 %prep
40 %setup  -q -n %{name}-%{version}.orig
41 %patch0 -p1
42 %patch1 -p1
43 %patch2 -p1
44
45 %build
46 %{__make}
47
48 %install
49 rm -rf $RPM_BUILD_ROOT
50 install -d $RPM_BUILD_ROOT/{usr/sbin,etc/rc.d/init.d}
51
52 install arpd $RPM_BUILD_ROOT%{_sbindir}/arpd
53 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/arpd
54
55 gzip -9nf CHANGES
56
57 %post
58 /sbin/chkconfig --add arpd
59 if [ ! -f /dev/arpd ]; then
60         mknod /dev/arpd c 36 8 
61 fi
62 echo "Warning!!"
63 echo "You need arpd kernel support. The standard kernels of PLD lack this support!!"
64 if [ -f /var/lock/subsys/arpd ]; then
65         /etc/rc.d/init.d/arpd restart 1>&2
66 else
67         echo "Run \"/etc/rc.d/init.d/arpd start\" to start arpd daemon."
68 fi
69
70
71 %preun
72 /sbin/chkconfig --del arpd
73 if [ "$1" = "0" ]; then
74         if [ -f /var/lock/subsys/arpd ]; then
75                 /etc/rc.d/init.d/arpd stop 1>&2
76         fi
77         /sbin/chkconfig --del arpd
78 fi
79
80 %clean
81 rm -rf $RPM_BUILD_ROOT
82
83 %files
84 %defattr(644,root,root,755)
85 %doc *.gz README.html
86 %attr(754,root,root) %{_sbindir}/arpd
87 %attr(754,root,root) /etc/rc.d/init.d/arpd
This page took 0.175555 seconds and 4 git commands to generate.