Summary: iftop does for network usage what top(1) does for CPU usage. Name: iftop Version: 1.0pre2 Release: 1 License: GPL Group: Applications/System Source0: http://www.ex-parrot.com/~pdw/iftop/download/%{name}-%{version}.tar.gz # we force it to use the ncurses library to get the screen characters right Patch0: %{name}-%{version}-aix.patch URL: http://www.ex-parrot.com/~pdw/iftop/ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot BuildRequires: AIX-rpm >= 5.3.0.0 BuildRequires: libpcap-devel >= 1.2.1 BuildRequires: ncurses-devel >= 5.6-2 Requires: AIX-rpm >= 5.3.0.0 Requires: libpcap >= 1.2.1 Requires: ncurses >= 5.6-2 %description iftop does for network usage what top(1) does for CPU usage. It listens to network traffic on a named interface and displays a table of current bandwidth usage by pairs of hosts. Handy for answering the question "why is our ADSL link so slow?". %prep %setup -q %patch0 %build export CC="xlc_r -I/opt/freeware/include/ncurses" ./configure \ --prefix=%{_prefix} \ --mandir=%{_mandir} make CC="xlc" dlcommon.o make %install [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} make DESTDIR=${RPM_BUILD_ROOT} install /usr/bin/strip -X32_64 ${RPM_BUILD_ROOT}%{_sbindir}/* || : cd ${RPM_BUILD_ROOT} mkdir -p usr/sbin cd usr/sbin ln -sf ../..%{_sbindir}/* . %clean [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} %files %defattr(-,root,system) %{_sbindir}/* %{_mandir}/man8/* /usr/sbin/* %changelog * Mon Mar 18 2013 Michael Perzl - 1.0pre2-1 - updated to version 1.0pre2-1 * Mon Mar 18 2013 Michael Perzl - 0.17-1 - first version for AIX V5.1 and higher