iftop.spec 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. Summary: iftop - display bandwidth usage on an interface by host
  2. Name: iftop
  3. Version: 1.0pre4
  4. Release: 1
  5. Source: http://www.ex-parrot.com/~pdw/iftop/%{name}-%{version}.tar.gz
  6. URL: http://www.ex-parrot.com/~pdw/iftop/
  7. Group: Network/Monitoring
  8. Packager: Richard Lucassen <spamtrap@lucassen.org>
  9. Copyright: GPL
  10. BuildRoot: /var/tmp/%{name}-%{version}-root
  11. Prefix: %{_prefix}
  12. %description
  13. iftop listens to network traffic on a named interface, or
  14. on the first interface it can find which looks like an
  15. external interface if none is specified, and displays a
  16. table of current bandwidth usage by pairs of hosts. iftop
  17. must be run with sufficient permissions to monitor all
  18. network traffic on the interface; see pcap(3) for more
  19. information, but on most systems this means that it must
  20. be run as root.
  21. %prep
  22. %setup -q
  23. %build
  24. CPPFLAGS=-I/usr/include/pcap
  25. ./configure --prefix="%{_prefix}" --mandir="%{_mandir}"
  26. make
  27. %install
  28. rm -rf "$RPM_BUILD_ROOT"
  29. mkdir -p $RPM_BUILD_ROOT%{_bindir}
  30. mkdir -p $RPM_BUILD_ROOT%{_mandir}/man8
  31. install -s -m 755 iftop $RPM_BUILD_ROOT%{_bindir}
  32. install iftop.8 $RPM_BUILD_ROOT%{_mandir}/man8
  33. %clean
  34. rm -rf $RPM_BUILD_ROOT
  35. %files
  36. %defattr(-,root,root)
  37. %doc AUTHORS COPYING ChangeLog NEWS README TODO
  38. %{_bindir}/*
  39. %doc %{_mandir}/man*/*
  40. %changelog
  41. * Fri Oct 17 2003 Richard Lucassen <spamtrap@lucassen.org>
  42. - src.rpm can be rebuilt by a normal user now
  43. * Fri Aug 30 2002 Iain Lea <iain@bricbrac.de>
  44. - Updated build for Red Hat 7.3 version
  45. * Sat Apr 13 2002 Riku Meskanen <mesrik@cc.jyu.fi>
  46. - Initial build for Red Hat 7.2 version