]> git.pld-linux.org Git - packages/arpd.git/blob - arpd.spec
- it's obsolete
[packages/arpd.git] / arpd.spec
1 ### OBSOLETE ###
2 Summary:        User-space arp daemon
3 Summary(pl.UTF-8):      Demon arpd
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 alocate 4096 entries.
38
39 %description -l pl.UTF-8
40 Demon ARP przekazuje zarządzanie tablicą ARP (Address Resolution
41 Protocol) z kernel'a do przestrzeni użytkownika. Jest to bardzo
42 użyteczne dla miejsc o dużych segmentach sieci (256+ systemów na
43 segment), ponieważ tablice w jądrze nie są zoptymalizowane na takie
44 sytuacje. Aby używać tego demona musisz mieć ARPD support oraz NETLINK
45 support uaktywnione w jądrze. Uwaga! Standardowe jądro PLD nie ma
46 supportu ARPD. Demon nie powinien być startowany bez tego! Ta wersja
47 potrafi zaakceptować 4096 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.025289 seconds and 3 git commands to generate.