]> git.pld-linux.org Git - packages/arpd.git/blob - arpd.spec
- pl fixes
[packages/arpd.git] / arpd.spec
1 # OBSOLETE - by what?
2 Summary:        User-space arp daemon
3 Summary(pl.UTF-8):      Demon arpd działający w przestrzeni użytkownika
4 Name:           arpd
5 Version:        1.0.2
6 Release:        12
7 License:        GPL
8 Group:          Daemons
9 # origin, but 404
10 #Source0:       http://www.loran.com/~layes/arpd/%{name}-%{version}.tar.gz
11 # working (copy of original package):
12 #Source0:       http://www.funet.fi/pub/Linux/PEOPLE/Linus/net-source/base/%{name}-%{version}.tar.gz
13 # but in CVS we probably have some renamed source from Debian (with .orig inside)
14 Source0:        %{name}-%{version}.tar.gz
15 # Source0-md5:  4b445f5698342c873068a86a18bc3d6a
16 Source1:        %{name}-init
17 Patch0:         %{name}-%{version}.debian-patch
18 Patch1:         %{name}-%{version}.pld-patch
19 Patch2:         %{name}-makefile-patch
20 Patch3:         %{name}-more_tables.patch
21 Patch4:         %{name}-uid.patch
22 #URL:           http://www.loran.com/~layes/arpd/
23 BuildRequires:  rpmbuild(macros) >= 1.268
24 Requires(post,preun):   /sbin/chkconfig
25 Requires:       dev >= 2.8.0-4
26 Requires:       fileutils
27 Requires:       rc-scripts >= 0.2.0
28 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30 %description
31 The ARP daemon moves the management of the ARP (Address Resolution
32 Protocol) table from kernel to user space. It is useful for sites with
33 LARGE network segments (256+ systems per segment), because the kernel
34 hash tables are not optimized to handle this situation. To use the ARP
35 daemon your kernel needs to have ARPD and NETLINK support enabled. The
36 standard kernels of PLD lack this support. It shouldn't be run without
37 that! This version can allocate 4096 entries.
38
39 %description -l pl.UTF-8
40 Demon ARP przekazuje zarządzanie tablicą ARP (Address Resolution
41 Protocol) z jądra do przestrzeni użytkownika. Jest to bardzo użyteczne
42 w miejscach o dużych segmentach sieci (256+ systemów na segment),
43 ponieważ tablice w jądrze nie są zoptymalizowane na takie sytuacje.
44 Aby używać tego demona jądro musi mieć włączoną obsługę ARPD i
45 NETLINK. Uwaga! Standardowe jądro PLD nie ma obsługi ARPD. Demon nie
46 powinien być startowany bez tego! Ta wersja potrafi przydzielić 4096
47 pozycji.
48
49 %prep
50 %setup -q -n %{name}-%{version}.orig
51 %patch0 -p1
52 %patch1 -p1
53 %patch2 -p1
54 %patch3 -p0
55 %patch4 -p1
56
57 %build
58 %{__make} \
59         CC="%{__cc}" \
60         LDFLAGS="%{rpmldflags}" \
61         RPM_OPT_FLAGS="%{rpmcflags}"
62
63 %install
64 rm -rf $RPM_BUILD_ROOT
65 install -d $RPM_BUILD_ROOT/{usr/sbin,etc/rc.d/init.d}
66
67 install arpd $RPM_BUILD_ROOT%{_sbindir}/arpd
68 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/arpd
69
70 %clean
71 rm -rf $RPM_BUILD_ROOT
72
73 %post
74 /sbin/chkconfig --add arpd
75 %service arpd restart "arpd daemon"
76
77 %preun
78 if [ "$1" = "0" ]; then
79         %service aprd stop
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.072435 seconds and 3 git commands to generate.