Blame view

iftop.spec.in 1.56 KB
pdw committed
1 2 3 4 5 6 7 8 9 10 11
Summary:		iftop - display bandwidth usage on an interface by host
Name:			iftop
Version:		__VERSION__
Release:		1
Source:			http://www.ex-parrot.com/~pdw/iftop/%{name}-%{version}.tar.gz
URL:			http://www.ex-parrot.com/~pdw/iftop/
Group:			Network/Monitoring
Packager:		Richard Lucassen <spamtrap@lucassen.org>
Copyright:		GPL
BuildRoot:		/var/tmp/%{name}-%{version}-root
Prefix:			%{_prefix}
.  
pdw committed
12 13

%description
pdw committed
14 15 16 17 18 19 20 21 22
iftop listens to network traffic on a named interface,  or
on  the  first  interface  it can find which looks like an
external interface if none is specified,  and  displays  a
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.

.  
pdw committed
23 24 25 26 27

%prep
%setup -q

%build
pdw committed
28 29
CPPFLAGS=-I/usr/include/pcap
./configure --prefix="%{_prefix}" --mandir="%{_mandir}"
.  
pdw committed
30 31 32
make

%install
pdw committed
33 34 35 36 37 38
rm -rf "$RPM_BUILD_ROOT"
mkdir -p $RPM_BUILD_ROOT%{_bindir}
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man8
install -s -m 755 iftop $RPM_BUILD_ROOT%{_bindir}
install iftop.8 $RPM_BUILD_ROOT%{_mandir}/man8

.  
pdw committed
39 40 41 42 43

%clean
rm -rf $RPM_BUILD_ROOT

%files
pdw committed
44
%defattr(-,root,root)
pdw committed
45 46 47
%doc AUTHORS COPYING ChangeLog NEWS README TODO
%{_bindir}/*
%doc %{_mandir}/man*/*
.  
pdw committed
48 49

%changelog
pdw committed
50 51
* Fri Oct 17 2003 Richard Lucassen <spamtrap@lucassen.org>
- src.rpm can be rebuilt by a normal user now
pdw committed
52 53
* Fri Aug 30 2002 Iain Lea <iain@bricbrac.de>
- Updated build for Red Hat 7.3 version
.  
pdw committed
54 55
* Sat Apr 13 2002 Riku Meskanen <mesrik@cc.jyu.fi>
- Initial build for Red Hat 7.2 version