]> git.pld-linux.org Git - packages/arpd.git/blob - arpd.spec
a445568a040d462a2dd3607ad39ed0b133a1c89f
[packages/arpd.git] / arpd.spec
1 Summary:        User-space arp daemon
2 Summary(pl.UTF-8):      Demon arpd
3 Name:           arpd
4 Version:        1.0.2
5 Release:        12
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 BuildRequires:  rpmbuild(macros) >= 1.268
23 Requires(post,preun):   /sbin/chkconfig
24 Requires:       dev >= 2.8.0-4
25 Requires:       fileutils
26 Requires:       rc-scripts >= 0.2.0
27 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29 %description
30 The ARP daemon moves the management of the ARP (Address Resolution
31 Protocol) table from kernel to user space. It is useful for sites with
32 LARGE network segments (256+ systems per segment), because the kernel
33 hash tables are not optimized to handle this situation. To use the ARP
34 daemon your kernel needs to have ARPD and NETLINK support enabled. The
35 standard kernels of PLD lack this support. It shouldn't be run without
36 that! This version can alocate 4096 entries.
37
38 %description -l pl.UTF-8
39 Demon ARP przekazuje zarządzanie tablicą ARP (Address Resolution
40 Protocol) z kernel'a do przestrzeni użytkownika. Jest to bardzo
41 użyteczne dla miejsc o dużych segmentach sieci (256+ systemów na
42 segment), ponieważ tablice w jądrze nie są zoptymalizowane na takie
43 sytuacje. Aby używać tego demona musisz mieć ARPD support oraz NETLINK
44 support uaktywnione w jądrze. Uwaga! Standardowe jądro PLD nie ma
45 supportu ARPD. Demon nie powinien być startowany bez tego! Ta wersja
46 potrafi zaakceptować 4096 pozycji.
47
48 %prep
49 %setup -q -n %{name}-%{version}.orig
50 %patch0 -p1
51 %patch1 -p1
52 %patch2 -p1
53 %patch3 -p0
54 %patch4 -p1
55
56 %build
57 %{__make} \
58         CC="%{__cc}" \
59         LDFLAGS="%{rpmldflags}" \
60         RPM_OPT_FLAGS="%{rpmcflags}"
61
62 %install
63 rm -rf $RPM_BUILD_ROOT
64 install -d $RPM_BUILD_ROOT/{usr/sbin,etc/rc.d/init.d}
65
66 install arpd $RPM_BUILD_ROOT%{_sbindir}/arpd
67 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/arpd
68
69 %clean
70 rm -rf $RPM_BUILD_ROOT
71
72 %post
73 /sbin/chkconfig --add arpd
74 %service arpd restart "arpd daemon"
75
76 %preun
77 if [ "$1" = "0" ]; then
78         %service aprd stop
79         /sbin/chkconfig --del arpd
80 fi
81
82 %files
83 %defattr(644,root,root,755)
84 %doc CHANGES README.html
85 %attr(754,root,root) %{_sbindir}/arpd
86 %attr(754,root,root) /etc/rc.d/init.d/arpd
This page took 0.063552 seconds and 2 git commands to generate.