Accepting request 266573 from home:Ledest:bashisms

fix bashisms in gaiconf script

OBS-URL: https://build.opensuse.org/request/show/266573
OBS-URL: https://build.opensuse.org/package/show/security:netfilter/iproute2?expand=0&rev=90
This commit is contained in:
Jan Engelhardt 2014-12-28 16:51:01 +00:00 committed by Git OBS Bridge
parent 4d8f8c6d9c
commit e628c20a62
3 changed files with 47 additions and 0 deletions

View File

@ -0,0 +1,38 @@
diff -Ndur iproute2-3.16.0/examples/gaiconf iproute2-3.16.0-fix-bashisms/examples/gaiconf
--- iproute2-3.16.0/examples/gaiconf 2014-08-04 22:43:46.000000000 +0300
+++ iproute2-3.16.0-fix-bashisms/examples/gaiconf 2014-11-16 03:02:55.194855668 +0200
@@ -11,7 +11,7 @@
verbose=
debug=
-function run ()
+run ()
{
if [ x"$verbose" != x"" ]; then
echo "$@"
@@ -21,7 +21,7 @@
fi
}
-function do_load_config ()
+do_load_config ()
{
file=$1; shift
flush=1
@@ -36,14 +36,14 @@
done
}
-function do_list_config ()
+do_list_config ()
{
${IP} -6 addrlabel list | while read p pfx l lbl; do
echo label ${pfx} ${lbl}
done
}
-function help ()
+help ()
{
echo "Usage: $0 [-v] {--list | --config [ ${DEFAULT_GAICONF} ] | --default}"
exit 1

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Sun Dec 28 16:30:00 UTC 2014 - Led <ledest@gmail.com>
- fix bashisms in gaiconf script
- add patches:
* iproute2-3.16.0-fix-bashisms.patch
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Nov 25 08:18:52 UTC 2014 - mkubecek@suse.cz Tue Nov 25 08:18:52 UTC 2014 - mkubecek@suse.cz

View File

@ -27,6 +27,7 @@ Url: http://www.linuxfoundation.org/collaborate/workgroups/networking
Source: http://kernel.org/pub/linux/utils/net/iproute2/iproute2-%rversion.tar.xz Source: http://kernel.org/pub/linux/utils/net/iproute2/iproute2-%rversion.tar.xz
Source2: http://kernel.org/pub/linux/utils/net/iproute2/iproute2-%rversion.tar.sign Source2: http://kernel.org/pub/linux/utils/net/iproute2/iproute2-%rversion.tar.sign
Patch1: iproute2-3.16.0-fix-bashisms.patch
BuildArch: noarch BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: bison BuildRequires: bison
@ -52,6 +53,7 @@ as well as examples and other outdated files.
%prep %prep
%setup -qn iproute2-%rversion %setup -qn iproute2-%rversion
%patch1 -p1
%build %build
# build with -fPIC. For details see # build with -fPIC. For details see