Hello community,
here is the log from the commit of package iftop for openSUSE:Factory
checked in at Wed Dec 2 13:13:40 CET 2009.
--------
--- iftop/iftop.changes 2009-11-03 20:18:34.000000000 +0100
+++ /mounts/work_src_done/STABLE/iftop/iftop.changes 2009-11-29 13:56:55.000000000 +0100
@@ -1,0 +2,8 @@
+Sun Nov 29 12:36:30 UTC 2009 - lrupp@suse.de
+
+- added iftop-bar-bytes.patch and iftop-bar-display.patch from
+ Debian
+- enhanced the iftop-manpage.patch
+- small specfile cleanup
+
+-------------------------------------------------------------------
calling whatdependson for head-i586
New:
----
iftop-bar-bytes.patch
iftop-bar-display.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ iftop.spec ++++++
--- /var/tmp/diff_new_pack.jgbQiE/_old 2009-12-02 13:10:54.000000000 +0100
+++ /var/tmp/diff_new_pack.jgbQiE/_new 2009-12-02 13:10:54.000000000 +0100
@@ -19,17 +19,18 @@
Name: iftop
-BuildRequires: libpcap-devel ncurses-devel
+Summary: Real-Time Interface Bandwidth Usage
Version: 0.17
-Release: 127
+Release: 128
+License: GPLv2+
+Group: Productivity/Networking/Diagnostic
+Url: http://www.ex-parrot.com/~pdw/iftop/
+BuildRequires: libpcap-devel ncurses-devel
Source0: %name-%version.tar.bz2
Patch0: %name-manpage.patch
+Patch1: %name-bar-bytes.patch
+Patch2: %name-bar-display.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-Summary: Real-Time Interface Bandwidth Usage
-License: GPL v2 or later
-Group: Productivity/Networking/Diagnostic
-Url: http://www.ex-parrot.com/~pdw/iftop/
-AutoReq: on
%description
iftop does for network usage what top(1) does for CPU usage. It listens
@@ -47,14 +48,16 @@
%prep
%setup -q
%patch0
+%patch1 -p1
+%patch2 -p1
%build
-CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" ./configure --prefix=%_prefix --mandir=%_mandir
-make
+export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" \
+%configure
+make %{?jobs:-j%jobs}
%install
-rm -rf $RPM_BUILD_ROOT
-make DESTDIR=$RPM_BUILD_ROOT install
+%makeinstall
%clean
rm -rf $RPM_BUILD_ROOT
++++++ iftop-bar-bytes.patch ++++++
# Connection rates are displayed in bytes, but the top bar is graduated in bits.
# Author: Marcin Kryczek
Index: iftop-0.17/ui.c
===================================================================
--- iftop-0.17.orig/ui.c
+++ iftop-0.17/ui.c
@@ -263,7 +263,7 @@ static void draw_bar_scale(int* y) {
char s[40], *p;
int x;
/* This 1024 vs 1000 stuff is just plain evil */
- readable_size(i, s, sizeof s, options.log_scale ? 1000 : 1024, 0);
+ readable_size(i, s, sizeof s, options.log_scale ? 1000 : 1024, options.bandwidth_in_bytes);
p = s + strspn(s, " ");
x = get_bar_length(i * 8);
mvaddch(*y + 1, x, ACS_BTEE);
++++++ iftop-bar-display.patch ++++++
# The -b option doesn't turn off the bar display as the man page says it should
# (Closes: debian #445991).
# Author: Eric Cooper