[netdump-server] removing unneeded Requires on ifconfig
Neil Horman
nhorman at fedoraproject.org
Fri Jan 27 16:27:36 UTC 2012
commit e20abf049dc27bdd1cea59b7daebad4700bf81cb
Author: Neil Horman <nhorman at tuxdriver.com>
Date: Fri Jan 27 11:27:25 2012 -0500
removing unneeded Requires on ifconfig
netdump-server-use-ip-cmd.patch | 12 ++++++++++--
netdump-server.spec | 7 +++++--
2 files changed, 15 insertions(+), 4 deletions(-)
---
diff --git a/netdump-server-use-ip-cmd.patch b/netdump-server-use-ip-cmd.patch
index 313f3d4..a8657d4 100644
--- a/netdump-server-use-ip-cmd.patch
+++ b/netdump-server-use-ip-cmd.patch
@@ -1,6 +1,6 @@
diff -up netdump-0.7.16/netdump.init.orig netdump-0.7.16/netdump.init
---- netdump-0.7.16/netdump.init.orig 2012-01-27 08:35:12.282866759 -0500
-+++ netdump-0.7.16/netdump.init 2012-01-27 08:35:32.121405853 -0500
+--- netdump-0.7.16/netdump.init.orig 2012-01-27 11:24:01.652755130 -0500
++++ netdump-0.7.16/netdump.init 2012-01-27 11:26:06.528086846 -0500
@@ -132,22 +132,16 @@ print_address_info ()
arping -c 1 -I $DEV $mac_ip &> /dev/null
[ $? -ne 0 ] && echo "$prog: cannot arp $mac_ip on $DEV" 1>&2
@@ -33,4 +33,12 @@ diff -up netdump-0.7.16/netdump.init.orig netdump-0.7.16/netdump.init
exit 1 )
if [ $? -eq 1 ]; then
+@@ -163,7 +157,7 @@ random_hex_int ()
+ ip_of_device ()
+ {
+- LC_ALL=C /sbin/ifconfig $1 | sed 's/:/ /' | awk '/inet addr/ {print $3}'
++ LC_ALL=C ip $1 | awk '/inet/ {print $2}' | sed -e's/\/.*$//'
+ }
+
+ netdump_failure ()
diff --git a/netdump-server.spec b/netdump-server.spec
index 44cbeb5..cc62e60 100644
--- a/netdump-server.spec
+++ b/netdump-server.spec
@@ -1,7 +1,7 @@
Summary: Server for network kernel message logging and crash dumps
Name: netdump-server
Version: 0.7.16
-Release: 28%{dist}
+Release: 29%{dist}
# This is a Red Hat maintained package which is specific to
# our distribution. Thus the source is only available from
# within this srpm.
@@ -11,7 +11,7 @@ License: GPLv2
Group: System Environment/Daemons
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildRequires: glib-devel popt-devel
-Requires: /usr/bin/ssh-keygen /usr/bin/ssh fileutils textutils gawk /sbin/ifconfig
+Requires: /usr/bin/ssh-keygen /usr/bin/ssh fileutils textutils gawk
Requires(pre): shadow-utils
Requires(postun): /sbin/service
@@ -99,6 +99,9 @@ fi
%doc COPYING
%changelog
+* Fri Jan 27 2012 Neil Horman <nhorman at redhat.com> - 0.7.16-29
+- Removing unneeed Requires on ifconfig (bz 784923)
+
* Fri Jan 27 2012 Neil Horman <nhorman at redhat.com> - 0.7.16-28
- Swapped use of ip for ifconfig (bz 784923)
More information about the scm-commits
mailing list