File routed.spec of Package routed
#
# spec file for package routed (Version 0.17)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: routed
#!BuildIgnore: nkita nkitb nkitserv
Provides: nkitserv:/usr/sbin/routed
License: BSD 3-Clause
Group: Productivity/Networking/Routing
PreReq: %insserv_prereq %fillup_prereq
AutoReqProv: on
Version: 0.17
Release: 627
Summary: Routing Daemon which Maintains Routing Tables
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Url: ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/
Source0: netkit-routed-%{version}.tar.bz2
Source1: routed.init
Patch0: netkit-routed-%{version}.patch
Patch1: netkit-routed-%{version}-noroot.patch
Patch2: netkit-routed-%{version}-aliasing.patch
Patch3: netkit-routed-%{version}-prototypes.patch
Patch4: netkit-routed-%{version}-strip.patch
%description
Routed handles incoming RIP traffic and broadcasts outgoing RIP traffic
about network traffic routes to maintain current routing tables. These
routing tables are essential for a networked computer, so that it knows
where packets need to be sent.
%prep
%setup -q -n netkit-routed-%{version}
%patch0
%patch1
%patch2
%patch3
%patch4
%build
CFLAGS="$RPM_OPT_FLAGS" ./configure
make %{?jobs:-j%jobs}
%install
install -d -m 755 $RPM_BUILD_ROOT/etc/init.d
install -d -m 755 $RPM_BUILD_ROOT/usr/sbin
install -d -m 755 $RPM_BUILD_ROOT%{_mandir}/man8
make install INSTALLROOT=$RPM_BUILD_ROOT
install -m 755 %SOURCE1 $RPM_BUILD_ROOT/etc/init.d/routed
ln -sf ../../etc/init.d/routed $RPM_BUILD_ROOT/usr/sbin/rcrouted
%clean
rm -rf $RPM_BUILD_ROOT
%post
%{fillup_and_insserv routed}
%postun
%{insserv_cleanup}
%files
%defattr(-,root,root)
%doc README ChangeLog
%doc %{_mandir}/man8/*
%config /etc/init.d/routed
/usr/sbin/*
%changelog
* Fri Aug 29 2008 cthiel@suse.de
- fix init script
* Thu May 25 2006 schwab@suse.de
- Don't strip binaries.
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Tue Feb 03 2004 mjancar@suse.cz
- fix code that breaks strict aliasing rules
- fix missing function prototypes
- use norootforbuild
* Fri Aug 16 2002 postadal@suse.cz
- added %%insserv_prereq and %%fillup_prereq to PreReq [#17965]
* Sat Jul 27 2002 adrian@suse.de
- do not source rc.config anymore
* Mon Dec 10 2001 cihlar@suse.cz
- removed START_ROUTED
* Thu Jun 28 2001 cihlar@suse.cz
- added split-aliases as provides
* Fri Apr 13 2001 cihlar@suse.cz
- fixed init script by new skeleton
* Fri Mar 16 2001 cihlar@suse.cz
- added Url
- clean up spec file
* Tue Feb 13 2001 kukuk@suse.de
- Initial version, split from nkitb