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