343 lines
12 KiB
RPMSpec
343 lines
12 KiB
RPMSpec
#
|
|
# spec file for package iproute2 (Version 2.6.23)
|
|
#
|
|
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
# This file and all modifications and additions to the pristine
|
|
# package are under the same license as the package itself.
|
|
#
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
# norootforbuild
|
|
|
|
Name: iproute2
|
|
BuildRequires: bison db-devel flex ghostscript-fonts-std ghostscript-x11 glib libpng-devel libtiff-devel sgmltool texlive-latex xorg-x11-devel
|
|
License: GPL v2 or later
|
|
Group: Productivity/Networking/Routing
|
|
Provides: iproute
|
|
AutoReqProv: on
|
|
Version: 2.6.23
|
|
Release: 1
|
|
Summary: Advanced Routing
|
|
Url: http://developer.osdl.org/dev/iproute2/
|
|
Source0: %name-%version.tar.bz2
|
|
Patch0: %name-2.6.23-libdir-1.diff
|
|
Patch1: %name-2.6.23-HZ.diff
|
|
Patch2: %name-2.6.23-pdfdoc.diff
|
|
Patch3: %name-2.6.23-tc-flex-fixes.diff
|
|
Patch4: %name-2.6.23-resolve-address.diff
|
|
Patch5: %name-2.6.23-fragtimeout.diff
|
|
Patch6: %name-2.6.23-flushcheckuid.diff
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%package -n libnlink
|
|
Summary: A Higher Level Interface to the Netlink Service
|
|
Group: System/Libraries
|
|
Provides: libnetlink
|
|
|
|
%description -n libnlink
|
|
libnetlink provides a higher level interface to rtnetlink(7).
|
|
|
|
|
|
|
|
%description
|
|
This package provides the tools ip, tc, and rtmon needed to use the new
|
|
and advanced routing options of the Linux kernel. The SUSE Linux
|
|
distribution has used this package for network setup since SuSE Linux
|
|
8.0.
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Alexey Kuznetsov <kuznet at ms2 dot inr dot ac dot ru>
|
|
Stephem Hemminger <shemminger at osdl dot org>
|
|
|
|
%prep
|
|
%setup -q -n %name-%version
|
|
%patch
|
|
%patch1
|
|
%patch2
|
|
%patch3
|
|
%patch4
|
|
%patch5
|
|
%patch6
|
|
find . -name *.orig -print0 | xargs -r0 rm -v
|
|
|
|
%build
|
|
make CCOPTS="-D_GNU_SOURCE $RPM_OPT_FLAGS -Wstrict-prototypes"
|
|
cd doc
|
|
make pdf
|
|
|
|
%install
|
|
install -d $RPM_BUILD_ROOT/{etc/,sbin/,usr/{sbin,share/man/man{3,8}}}
|
|
install -d $RPM_BUILD_ROOT/{/usr/include,%_libdir}
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
install lib/libnetlink.a $RPM_BUILD_ROOT/%_libdir
|
|
install include/libnetlink.h $RPM_BUILD_ROOT/usr/include
|
|
mv $RPM_BUILD_ROOT/usr/sbin/ip $RPM_BUILD_ROOT/sbin
|
|
mkdir -p $RPM_BUILD_ROOT/bin
|
|
ln -sf /sbin/ip $RPM_BUILD_ROOT/bin/ip
|
|
rm $RPM_BUILD_ROOT/usr/sbin/ifcfg
|
|
rm -rf $RPM_BUILD_ROOT/usr/share/doc/iproute2
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc doc/api-ip6-flowlabels.pdf doc/arpd.pdf doc/ip-cref.pdf README.iproute2+tc
|
|
%doc doc/ip-tunnels.pdf doc/nstat.pdf doc/rtstat.pdf doc/ss.pdf README
|
|
%doc RELNOTES ChangeLog examples/ README.decnet ip/ifcfg ip/routef ip/routel
|
|
/usr/sbin/*
|
|
/sbin/*
|
|
/bin/ip
|
|
%_mandir/man8/*
|
|
%dir /etc/iproute2
|
|
%config(noreplace) /etc/iproute2/rt_dsfield
|
|
%config(noreplace) /etc/iproute2/rt_protos
|
|
%config(noreplace) /etc/iproute2/rt_scopes
|
|
%config(noreplace) /etc/iproute2/rt_realms
|
|
%config(noreplace) /etc/iproute2/rt_tables
|
|
%config(noreplace) /etc/iproute2/ematch_map
|
|
/usr/lib/tc
|
|
|
|
%files -n libnlink
|
|
%defattr(-,root,root)
|
|
%attr(644,root,root) /usr/include/*
|
|
%_mandir/man3/libnetlink*
|
|
%_libdir/lib*
|
|
%changelog
|
|
* Thu Oct 25 2007 - ms@suse.de
|
|
- update to version 2.6.23, fixed (#336488)
|
|
Reason for update:
|
|
* The macvlan module, which got added to the kernel in version
|
|
2.6.23, needs the new "ip link add" feature
|
|
These patches add a rewritten version of Ben's macvlan driver, which
|
|
allows to create virtual ethernet devices. The underlying device is
|
|
put in promiscous mode and packets are demuxed based on MAC address.
|
|
It behaves similar to bridge devices in that packets are visible on
|
|
the real device before delivery to the macvlan driver. The driver
|
|
supports all features of the underlying device except VLAN
|
|
acceleration, this is currently very hard to support. I might look
|
|
into this in the future.
|
|
The main downside of this driver is that it adds another hook in
|
|
netif_receive_skb, unfortunately that is unavoidable. When not
|
|
compiled in the hook vanishes of course.
|
|
Usage is simple:
|
|
ip link add link eth0 type macvlan
|
|
Will create a macvlan0 device with a random MAC address on top of
|
|
eth0. No iproute patches are required.
|
|
* Tue Oct 16 2007 - jdelvare@suse.de
|
|
- libnetlink.3 is now part of the upstream package, no need to
|
|
include our own copy.
|
|
* Wed Jul 11 2007 - ms@suse.de
|
|
- update to version 2.6.22, fixed (#288551)
|
|
* Kim Woelders <kim@woelders.dk>, various useful fixups: compilation
|
|
with old kernels, cross-compiling, "all" == "any" in prefix spec.
|
|
* Collected from my disk, cleaned and packed to directory iproute2/misc/
|
|
several utilities: ss, nstat, ifstat, rtacct, arpd and module tcp_diag.
|
|
Writing some docs. me.
|
|
* prepared patchlet for pidentd to use tcp_diag.
|
|
* David Miller: 64bit (and even worse 64bit kernel/32 bit user :-) fixes
|
|
to above. tcp_diag is merged to main tree.
|
|
* Alexandr D. Kanevskiy <kad@blackcatlinux.com>: various flaws in ss
|
|
* Alexandr D. Kanevskiy <kad@blackcatlinux.com>: oops, more aggressive caching
|
|
of names opened old bugs: ip started to print garbage in some places.
|
|
* Robert Olsson, rt_cache_stat. Renamed to rtstat.
|
|
* An old bug in "ip maddr ls": reduntant empty lines in output.
|
|
Seeing this crap for ages but lucky match of desire/ability to repair
|
|
and a huff about this happened only today. :-)
|
|
* "Mr. James W. Laferriere" <babydr@baby-dragons.com>
|
|
doc: option to produce ps output for non-a4 and not only 2 pages/sheet.
|
|
* Jamal's patch for ingres qdisc.
|
|
* Bernd Eckenfels <ecki@lina.inka.de>: deleted orphaned bogus #include
|
|
in include/utils.h.
|
|
* Julian Anastasov <ja@ssi.bg>: uninitialized fields in nexthop
|
|
producing funny "dead" nexthops in multipath routes.
|
|
Stupid me, look at the first line in [010803]... Was it difficult to guess
|
|
this that time? People blame for several months. :-)
|
|
Special thanks to bert hubert <ahu@ds9a.nl> who raised the issue in netdev.
|
|
Thanks and apologies to Terry Schmidt <terry@nycwireless.net>,
|
|
Ruben Puettmann <ruben.puettmann@freenet-ag.de>,
|
|
Mark Ivens <mivens@clara.net>.
|
|
* willy tarreau <wtarreau@yahoo.fr>: "make install" target.
|
|
* Tunable limit for sch_sfq. Patch to kernel activating this
|
|
is about to be submitted. Reminded by Adi Nugroho <Adi@iNterNUX.co.id>
|
|
* Fri Apr 20 2007 - aj@suse.de
|
|
- Use texlive for building.
|
|
* Mon Apr 02 2007 - rguenther@suse.de
|
|
- add bison and flex BuildRequires
|
|
* Thu Feb 08 2007 - ms@suse.de
|
|
- fixed array size of name string in iptables.h (#243281)
|
|
array of size IPT_FUNCTION_MAXNAMELEN - 1 is referenced
|
|
at element IPT_FUNCTION_MAXNAMELEN - 1 which is outside the
|
|
array bounds
|
|
* Mon Jan 29 2007 - ms@suse.de
|
|
- fixed wrong IPT_LIB_DIR value and replaced the code by a
|
|
dynamic check for the /usr/%%lib/iptables directory (#238886)
|
|
* Tue Nov 07 2006 - ro@suse.de
|
|
- fix permissions for manpage
|
|
* Thu Jul 20 2006 - ms@suse.de
|
|
- replaced static HZ define to dynamic:
|
|
[#]ifndef HZ
|
|
[#]define HZ sysconf(_SC_CLK_TCK)
|
|
[#]endif
|
|
* Fri May 26 2006 - schwab@suse.de
|
|
- Fix crash while resolving addresses.
|
|
* Mon Apr 03 2006 - hvogel@suse.de
|
|
- fix flex input file to use uppercase STR to avoid conflicts.
|
|
This prevented tc from being build [#162931]
|
|
* Wed Jan 25 2006 - mls@suse.de
|
|
- converted neededforbuild to BuildRequires
|
|
* Tue Jan 17 2006 - mrueckert@suse.de
|
|
- update to version 2.6.15-060110
|
|
* Tue Nov 08 2005 - mmj@suse.de
|
|
- update to version 051107
|
|
* Mon Oct 24 2005 - ro@suse.de
|
|
- fix filelist for libnlink
|
|
* Thu Oct 20 2005 - mmj@suse.de
|
|
- update to version 051007
|
|
- fix buffer overflow in iproute.c [#129415] (thanks Richard, Marcus)
|
|
- don't strip stuff
|
|
* Wed Aug 17 2005 - cthiel@suse.de
|
|
- update to version 050816 [#105087]
|
|
* Sat Aug 06 2005 - dmueller@suse.de
|
|
- add /bin/ip symlink (#102513)
|
|
* Wed Jun 15 2005 - meissner@suse.de
|
|
- use RPM_OPT_FLAGS
|
|
* Mon May 09 2005 - mmj@suse.de
|
|
- Update to 2.6.11-050330
|
|
* Thu Feb 10 2005 - ro@suse.de
|
|
- remove dropped tetex subpackages from nfb
|
|
* Fri Feb 04 2005 - mmj@suse.de
|
|
- Update to 2.6.10-ss050124
|
|
* Tue Dec 07 2004 - mmj@suse.de
|
|
- Don't trust that the kernel and do our own family check [#48600]
|
|
* Sun Oct 24 2004 - mmj@suse.de
|
|
- Clean up spec file a bit
|
|
- Update to new snapshot including even more of our patches
|
|
* Tue Oct 12 2004 - mmj@suse.de
|
|
- Update to 2.6.9 including some of our patches
|
|
* Tue Aug 17 2004 - mmj@suse.de
|
|
- Make ip print correct type when printing stats [#42589]
|
|
* Wed Apr 21 2004 - mmj@suse.de
|
|
- Fix bufferoverflow in nstat [#39179]
|
|
* Fri Apr 16 2004 - kukuk@suse.de
|
|
- Fix compiling with 2.6.5 kernel headers
|
|
- Remove backup files
|
|
* Wed Apr 14 2004 - mmj@suse.de
|
|
- Don't remove buildroot before install
|
|
* Wed Mar 17 2004 - mmj@suse.de
|
|
- No executables below /usr/include [#36342]
|
|
* Wed Mar 10 2004 - mmj@suse.de
|
|
- Olaf Kirch fixed the kernel, so remove the fix for [#35288]
|
|
* Wed Mar 03 2004 - ak@suse.de
|
|
- Fix hang in ip addr flush (#35288)
|
|
* Wed Jan 07 2004 - mmj@suse.de
|
|
- ifstat should store it's history in /var/tmp not /tmp
|
|
* Mon Nov 10 2003 - mmj@suse.de
|
|
- Add more man-pages [#32981]
|
|
* Wed Oct 15 2003 - mmj@suse.de
|
|
- Don't build as root
|
|
* Mon Aug 11 2003 - mmj@suse.de
|
|
- Add all the pdf documentation [#28637]
|
|
* Thu Jun 12 2003 - kukuk@suse.de
|
|
- Fix filelist
|
|
* Wed Jun 04 2003 - kukuk@suse.de
|
|
- Don't use include-glibc directory
|
|
- Fix arpd to compile with db4
|
|
* Tue May 13 2003 - mmj@suse.de
|
|
- Remove files we don't package
|
|
* Mon May 12 2003 - mmj@suse.de
|
|
- Add glib-include from newer iputils, and change a kernel-include
|
|
to make it build
|
|
* Tue Feb 11 2003 - ug@suse.de
|
|
- patch for HTB support applied since 2.4.20 supports it
|
|
* Fri Feb 07 2003 - mmj@suse.de
|
|
- Make the man tar-ball not contain gzipped man-pages, it's already
|
|
compressed once.
|
|
- Apply patch from Andi Kleen for fragtimeout functionality
|
|
* Mon Nov 11 2002 - ro@suse.de
|
|
- changed neededforbuild <xshared> to <x-devel-packages>
|
|
* Mon Nov 11 2002 - ro@suse.de
|
|
- changed neededforbuild <sp> to <opensp>
|
|
* Sun Oct 20 2002 - mmj@suse.de
|
|
- Add manpages, thanks to ASPLinux [#21115]
|
|
* Wed Aug 21 2002 - mmj@suse.de
|
|
- Added a patch to exit when regular user tries to flush routes or
|
|
addresses. [#16000]
|
|
* Sun Aug 18 2002 - ro@suse.de
|
|
- added ghostscript-x11-packages to neededforbuild (for gs)
|
|
* Mon Apr 08 2002 - postadal@suse.cz
|
|
- updated to ss020116
|
|
* added several utilities several utilities: ss, nstat, ifstat,
|
|
rtacct, arpd and module tcp_diag
|
|
* Fri Feb 01 2002 - ro@suse.de
|
|
- changed neededforbuild <libpng> to <libpng-devel-packages>
|
|
* Thu Jan 31 2002 - ro@suse.de
|
|
- added libgimpprint to neededforbuild
|
|
* Tue Jan 29 2002 - vinil@suse.cz
|
|
- /usr/lib -> %%_libdir
|
|
* Sun Jan 20 2002 - vinil@suse.cz
|
|
- new version ss010824
|
|
- spec file cleanup
|
|
* Mon Nov 19 2001 - bjacke@suse.de
|
|
- move ip to /sbin
|
|
- add iproute2 config files to /etc/
|
|
* Wed Oct 10 2001 - stepan@suse.de
|
|
- fix compilation on ia64
|
|
* Tue Sep 18 2001 - pthomas@suse.de
|
|
- Correct spelling in libnetlink.3
|
|
- Add both German and English descriptions for libnlink
|
|
* Mon Aug 27 2001 - kukuk@suse.de
|
|
- Fix compiling on SPARC
|
|
* Tue Aug 21 2001 - vinil@suse.cz
|
|
- new version ss010803
|
|
- get rid of kernel 2.2 patches
|
|
* Thu Jul 26 2001 - kukuk@suse.de
|
|
- add glib to needed for build
|
|
* Fri Jul 20 2001 - kukuk@suse.de
|
|
- changed neededforbuild <gs_fonts> to <ghostscript-fonts-std>
|
|
- changed neededforbuild <gs_lib> to <ghostscript-library>
|
|
- changed neededforbuild <gs_x11> to <ghostscript-x11>
|
|
* Wed Jun 27 2001 - ro@suse.de
|
|
- ETH_P_ECHO is apparently no longer defined
|
|
* Thu Mar 08 2001 - uli@suse.de
|
|
- added xshared to neededforbuild
|
|
* Mon Mar 05 2001 - kukuk@suse.de
|
|
- Remove bogus check for kernel header
|
|
* Fri Dec 01 2000 - kukuk@suse.de
|
|
- Update to iproute2-2.2.4-now-ss001007 to fix compile problems
|
|
with new kernel and glibc
|
|
* Mon Aug 28 2000 - ak@suse.de
|
|
- fix permissions
|
|
- fix advmss/mtu confusion between 2.2 and 2.4 (advmss now works with 2.2
|
|
kernels and is always enabled)
|
|
- add a new subrpm for libnetlink
|
|
- add libnetlink man page
|
|
* Tue Jul 04 2000 - mha@suse.de
|
|
- new version (2.2.4-now-ss000305)
|
|
- new README.SuSE
|
|
- use ps2pdf instead of pdflatex, because the latter produces
|
|
unusable pdf files for some reason
|
|
* Thu Jun 01 2000 - vinil@suse.cz
|
|
- documentation enhancement
|
|
* Fri May 26 2000 - vinil@suse.cz
|
|
- new version (ss000225)
|
|
- buildroot added
|
|
- sorted in group
|
|
* Thu Feb 17 2000 - mha@suse.de
|
|
- new version (ss991023)
|
|
* Mon Sep 13 1999 - bs@suse.de
|
|
- ran old prepare_spec on spec file to switch to new prepare_spec.
|
|
* Thu Jul 22 1999 - mha@suse.de
|
|
- new version
|
|
- renamed package iproute->iproute2, because that's how the author
|
|
calls it
|
|
* Tue Jul 13 1999 - ro@suse.de
|
|
- added psutils to neededforbuild
|
|
* Sun Jul 11 1999 - mha@suse.de
|
|
- new package: iproute (tools for using the advanced routing options
|
|
in kernel 2.2)
|