- 539232 patch cbq initscript

This commit is contained in:
Marcela Mašláňová 2009-11-27 13:45:57 +00:00
parent 6ae889d8ec
commit 99efa3de3b
3 changed files with 29 additions and 2 deletions

View File

@ -4,7 +4,7 @@
Summary: Advanced IP routing and network device configuration tools Summary: Advanced IP routing and network device configuration tools
Name: iproute Name: iproute
Version: 2.6.29 Version: 2.6.29
Release: 5.0.%{date_version}gita7a9ddbb%{?dist} Release: 5.1.%{date_version}gita7a9ddbb%{?dist}
Group: Applications/System Group: Applications/System
Source: iproute2-%{date_version}.tar.bz2 Source: iproute2-%{date_version}.tar.bz2
#Source1: http://developer.osdl.org/dev/iproute2/download/iproute2-%{version}.tar.bz2 #Source1: http://developer.osdl.org/dev/iproute2/download/iproute2-%{version}.tar.bz2
@ -16,6 +16,7 @@ Patch3: iproute2-2.6.25-segfault.patch
Patch4: iproute2-sharepath.patch Patch4: iproute2-sharepath.patch
Patch5: iproute2-2.6.29-tc_modules.patch Patch5: iproute2-2.6.29-tc_modules.patch
Patch6: iproute2-2.6.29-IPPROTO_IP_for_SA.patch Patch6: iproute2-2.6.29-IPPROTO_IP_for_SA.patch
Patch7: iproute2-example-cbq-service.patch
License: GPLv2+ License: GPLv2+
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@ -46,6 +47,7 @@ The iproute documentation contains howtos and examples of settings.
%patch4 -p1 -b .share %patch4 -p1 -b .share
%patch5 -p1 -b .ipt %patch5 -p1 -b .ipt
%patch6 -p1 -b .ipproto %patch6 -p1 -b .ipproto
%patch7 -p1 -b .fix_cbq
%build %build
export LIBDIR=/%{_libdir} export LIBDIR=/%{_libdir}
@ -124,6 +126,9 @@ EOF
%doc RELNOTES %doc RELNOTES
%changelog %changelog
* Fri Nov 27 2009 Marcela Mašláňová <mmaslano@redhat.com> - 2.6.29-5.1.20091106gita7a9ddbb
- 539232 patch cbq initscript
* Fri Nov 27 2009 Marcela Mašláňová <mmaslano@redhat.com> - 2.6.29-5.0.20091106gita7a9ddbb * Fri Nov 27 2009 Marcela Mašláňová <mmaslano@redhat.com> - 2.6.29-5.0.20091106gita7a9ddbb
- snapshot with kernel headers for 2.6.32 - snapshot with kernel headers for 2.6.32

View File

@ -0,0 +1,22 @@
diff -up iproute2-20091106/examples/cbq.init-v0.7.3.fix iproute2-20091106/examples/cbq.init-v0.7.3
--- iproute2-20091106/examples/cbq.init-v0.7.3.fix 2009-11-10 19:41:44.000000000 +0100
+++ iproute2-20091106/examples/cbq.init-v0.7.3 2009-11-27 13:36:07.957310549 +0100
@@ -579,14 +579,14 @@ cbq_show () {
### Check configuration and load DEVICES, DEVFIELDS and CLASSLIST from $1
cbq_init () {
### Get a list of configured classes
- CLASSLIST=`find $1 \( -type f -or -type l \) -name 'cbq-*' \
- -not -name '*~' -maxdepth 1 -printf "%f\n"| sort`
+ CLASSLIST=`find $1 -maxdepth 1 \( -type f -or -type l \) -name 'cbq-*' \
+ -not -name '*~' -printf "%f\n"| sort`
[ -z "$CLASSLIST" ] &&
cbq_failure "no configuration files found in $1!"
### Gather all DEVICE fields from $1/cbq-*
- DEVFIELDS=`find $1 \( -type f -or -type l \) -name 'cbq-*' \
- -not -name '*~' -maxdepth 1| xargs sed -n 's/#.*//; \
+ DEVFIELDS=`find $1 -maxdepth 1 \( -type f -or -type l \) -name 'cbq-*' \
+ -not -name '*~' | xargs sed -n 's/#.*//; \
s/[[:space:]]//g; /^DEVICE=[^,]*,[^,]*\(,[^,]*\)\?/ \
{ s/.*=//; p; }'| sort -u`
[ -z "$DEVFIELDS" ] &&

View File

@ -2,7 +2,7 @@ diff -up iproute2-2.6.29/man/man8/cbq.8.man iproute2-2.6.29/man/man8/cbq.8
--- iproute2-2.6.29/man/man8/cbq.8.man 2009-09-24 14:05:44.868922557 +0200 --- iproute2-2.6.29/man/man8/cbq.8.man 2009-09-24 14:05:44.868922557 +0200
+++ iproute2-2.6.29/man/man8/cbq.8 2009-09-24 14:05:24.760143753 +0200 +++ iproute2-2.6.29/man/man8/cbq.8 2009-09-24 14:05:24.760143753 +0200
@@ -0,0 +1 @@ @@ -0,0 +1 @@
+.so man8/cbq.8 +.so man8/tc-cbq.8
\ No newline at end of file \ No newline at end of file
diff -up /dev/null iproute2-2.6.29/man/man8/ifcfg.8 diff -up /dev/null iproute2-2.6.29/man/man8/ifcfg.8
--- /dev/null 2009-09-22 09:26:40.270218984 +0200 --- /dev/null 2009-09-22 09:26:40.270218984 +0200