Added updated spec file.

This commit is contained in:
pdw
2003-10-24 18:40:45 +00:00
parent d7a2dd8f09
commit fa64b3dd74
2 changed files with 37 additions and 27 deletions

View File

@@ -15,6 +15,10 @@ Unattributed items are by Paul Warren and Chris Lightfoot.
* Fixed the search for libpcap in the configure script * Fixed the search for libpcap in the configure script
Thomas Schwinge <tschwinge@gmx.net> Thomas Schwinge <tschwinge@gmx.net>
* Updated RPM spec file
Richard Lucassen <spamtrap@lucassen.org>
0.14 06/09/03 0.14 06/09/03
* Added forking resolver as fall-back resolver * Added forking resolver as fall-back resolver
* Fixed DNS resolution so that no lookups are done if options.dns_resolution == * Fixed DNS resolution so that no lookups are done if options.dns_resolution ==

View File

@@ -1,49 +1,55 @@
Summary: iftop - provides realtime bandwith usage on an interface Summary: iftop - display bandwidth usage on an interface by host
Name: iftop Name: iftop
Version: __VERSION__ Version: __VERSION__
Release: 1 Release: 1
License: GPL Source: http://www.ex-parrot.com/~pdw/iftop/%{name}-%{version}.tar.gz
Group: Applications/Internet
Source0: http://www.ex-parrot.com/~pdw/iftop/download/iftop-__VERSION__.tar.gz
URL: http://www.ex-parrot.com/~pdw/iftop/ URL: http://www.ex-parrot.com/~pdw/iftop/
Buildroot: %{_tmppath}/%{name}-%{version}-%(id -u -n) Group: Network/Monitoring
Packager: Riku Meskanen <mesrik@cc.jyu.fi> Packager: Richard Lucassen <spamtrap@lucassen.org>
BuildRequires: libpcap Copyright: GPL
BuildRequires: ncurses-devel > 5.2-12 BuildRoot: /var/tmp/%{name}-%{version}-root
Prefix: %{_prefix}
%description %description
iftop does for network usage what top(1) does for CPU usage. It listens iftop listens to network traffic on a named interface, or
to network traffic on a named interface and displays a table of current on the first interface it can find which looks like an
bandwidth usage by pairs of hosts. Handy for answering the question external interface if none is specified, and displays a
"why is our ADSL link so slow?" table of current bandwidth usage by pairs of hosts. iftop
must be run with sufficient permissions to monitor all
network traffic on the interface; see pcap(3) for more
information, but on most systems this means that it must
be run as root.
%prep %prep
%setup -q %setup -q
%build %build
CPPFLAGS=-I/usr/include/pcap
./configure --prefix="%{_prefix}" --mandir="%{_mandir}"
make make
%install %install
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT rm -rf "$RPM_BUILD_ROOT"
make DESTDIR=$RPM_BUILD_ROOT iftop mkdir -p $RPM_BUILD_ROOT%{_bindir}
gzip -9 iftop.8 mkdir -p $RPM_BUILD_ROOT%{_mandir}/man8
mkdir -p ${RPM_BUILD_ROOT}%{_sbindir} ${RPM_BUILD_ROOT}%{_mandir}/man8 install -s -m 755 iftop $RPM_BUILD_ROOT%{_bindir}
install -m 755 iftop ${RPM_BUILD_ROOT}%{_sbindir} install iftop.8 $RPM_BUILD_ROOT%{_mandir}/man8
install -m 644 iftop.8.gz ${RPM_BUILD_ROOT}%{_mandir}/man8
%clean %clean
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%doc README CHANGES COPYING TODO INSTALL %doc AUTHORS COPYING ChangeLog NEWS README TODO
%attr(755,root,root) %{_sbindir}/iftop %{_bindir}/*
%{_mandir}/man8/* %doc %{_mandir}/man*/*
%changelog %changelog
* Fri Oct 17 2003 Richard Lucassen <spamtrap@lucassen.org>
- src.rpm can be rebuilt by a normal user now
* Fri Aug 30 2002 Iain Lea <iain@bricbrac.de> * Fri Aug 30 2002 Iain Lea <iain@bricbrac.de>
- Updated build for Red Hat 7.3 version - Updated build for Red Hat 7.3 version
* Sat Apr 13 2002 Riku Meskanen <mesrik@cc.jyu.fi> * Sat Apr 13 2002 Riku Meskanen <mesrik@cc.jyu.fi>
- Initial build for Red Hat 7.2 version - Initial build for Red Hat 7.2 version