Sophie

Sophie

distrib > Mandriva > 10.2 > x86_64 > by-pkgid > 834001096c0299442bfceb6b86dbb91a > files > 5

rarpd-ss981107-3mdk.src.rpm

Summary:	The RARP daemon
Name:		rarpd
Version:	ss981107
Release:	3mdk
License:	GPL
Group:		System/Servers
URL:		ftp://ftp.inr.ac.ru/ip-routing/dhcp.bootp.rarp/
Source:		rarpd-%{version}.tar.bz2
Patch0:		rarpd-%{version}.patch.bz2
Patch1:		rarpd-norun.patch.bz2
Patch2:		rarpd-initscript.patch.bz2
Prereq:		/sbin/chkconfig
BuildRoot:	%{_tmppath}/%{name}-%{version}-buildroot


%description
RARP (Reverse Address Resolution Protocol) is a protocol which allows
individual devices on an IP network to get their own IP addresses from the
RARP server.  Some machines (e.g. SPARC boxes) use this protocol instead
of e.g. DHCP to query their IP addresses during network bootup.
Linux kernels up to 2.2 used to provide a kernel daemon for this service,
but since 2.3 kernels it is served by this userland daemon.

You should install rarpd if you want to set up a RARP server on your
network.

%prep

%setup -q -n rarpd
%patch0 -p1
%patch1 -p1
%patch2 -p1 -b .initscript

%build

%make CFLAGS="%{optflags} -Wall"

%install
rm -rf %{buildroot}

install -d %{buildroot}%{_initrddir}
install -d %{buildroot}%{_sbindir}
install -d %{buildroot}%{_mandir}/man8

install -m 755 rarpd.init %{buildroot}%{_initrddir}/rarpd
install -m 755 rarpd %{buildroot}%{_sbindir}/rarpd
install -m 644 rarpd.8 %{buildroot}%{_mandir}/man8/rarpd.8

%clean
rm -rf %{buildroot}

%post
/sbin/chkconfig --add rarpd

%preun
if [ "$1" = 0 ] ; then
  service rarpd stop >/dev/null 2>&1
  /sbin/chkconfig --del rarpd
fi

%postun
if [ "$1" -ge "1" ]; then
  service rarpd condrestart >/dev/null 2>&1
fi

%files
%defattr(-,root,root)
%doc README
%attr(0755,root,root) %{_initrddir}/rarpd
%{_sbindir}/rarpd
%{_mandir}/man8/*

%changelog
* Mon Feb 21 2005 Oden Eriksson <oeriksson@mandrakesoft.com> ss981107-3mdk
- rebuild
- misc spec file fixes

* Sat Feb 01 2003 Lenny Cartier <lenny@mandrakesoft.com ss981107-2mdk
- rebuild

* Wed Jul 10 2002 Lenny Cartier <lenny@mandrakesoft.com> ss981107-1mdk
- from Gilles CAULIER <caulier.gilles@free.fr> :
	- Initial package from rarpd-ss981107-9.src.rpm RedHat 7.3 package.
	- Remove 'Provide: rarpd' section.
	- Use Bz2 compression almost gz.