]> git.pld-linux.org Git - packages/arpd.git/blob - arpd.spec
- added Source URL (from slackware, because original returns 404)
[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:        6
6 License:        GPL
7 Group:          Daemons
8 Group(de):      Server
9 Group(pl):      Serwery
10 #Source0:       http://www.loran.com/~layes/arpd/%{name}-%{version}.tar.gz  (origin, but 404)
11 Source0:        ftp://ftp.slackware.org:/pub/slackware/slackware-4.0/source/n/tcpip1/%{name}-%{version}.tar.gz
12 Source1:        %{name}-init
13 Patch0:         %{name}-%{version}.debian-patch
14 Patch1:         %{name}-%{version}.pld-patch
15 Patch2:         %{name}-makefile-patch
16 Patch3:         %{name}-more_tables.patch
17 Patch4:         %{name}-uid.patch
18 #URL:           http://www.loran.com/~layes/arpd/
19 Prereq:         /sbin/chkconfig
20 Prereq:         rc-scripts >= 0.2.0
21 Prereq:         fileutils
22 Requires:       dev >= 2.8.0-4
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
26 The ARP daemon moves the management of the ARP (Address Resolution
27 Protocol) table from kernel to user space. It is useful for sites with
28 LARGE network segments (256+ systems per segment), because the kernel
29 hash tables are not optimized to handle this situation. To use the ARP
30 daemon your kernel needs to have ARPD and NETLINK support enabled. The
31 standard kernels of PLD lack this support. It shouldn't be run without
32 that! This version can alocate 2048 entries.
33
34 %description -l pl
35 Demon ARP przekazuje zarz±dzanie tablic± ARP (Address Resolution
36 Protocol) z kernel'a do przestrzeni u¿ytkownika. Jest to bardzo
37 u¿yteczne dla miejsc o du¿ych segmentach sieci (256+ systemów na
38 segment), poniewa¿ tablice w j±drze nie s± zoptymalizowane na takie
39 sytuacje. Aby u¿ywaæ tego demona musisz mieæ ARPD support oraz NETLINK
40 support uaktywnione w j±drze. Uwaga! Stanadardowe j±dro PLD nie ma
41 supportu ARPD. Demon nie powinien byæ startowany bez tego! Ta wersja
42 potrafi zaakceptowaæ 2048 pozycji.
43
44 %prep
45 %setup  -q -n %{name}-%{version}.orig
46 %patch0 -p1
47 %patch1 -p1
48 %patch2 -p1
49 %patch3
50 %patch4 -p1
51
52 %build
53 %{__make}
54
55 %install
56 rm -rf $RPM_BUILD_ROOT
57 install -d $RPM_BUILD_ROOT/{usr/sbin,etc/rc.d/init.d}
58
59 install arpd $RPM_BUILD_ROOT%{_sbindir}/arpd
60 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/arpd
61
62 gzip -9nf CHANGES
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
84 %files
85 %defattr(644,root,root,755)
86 %doc *.gz README.html
87 %attr(754,root,root) %{_sbindir}/arpd
88 %attr(754,root,root) /etc/rc.d/init.d/arpd
This page took 0.037063 seconds and 3 git commands to generate.