Skip to content

Instantly share code, notes, and snippets.

@tkuchiki
Created October 1, 2015 03:55
Show Gist options
  • Save tkuchiki/4b7e22afedc5108e1f34 to your computer and use it in GitHub Desktop.
Save tkuchiki/4b7e22afedc5108e1f34 to your computer and use it in GitHub Desktop.
tcpstat.spec
Summary: Reports certain network interface statistics
Name: tcpstat
Version: 1.5
Release: 1%{?dist}
License: NSD
Group: Applications/Internet
URL: http://www.frenchfries.net/paul/tcpstat/
Source: http://www.frenchfries.net/paul/tcpstat/tcpstat-%{version}.tar.gz
BuildRequires: libpcap-devel
%description
tcpstat reports certain network interface statistics much like vmstat does
for system statistics.
tcpstat gets its information by either monitoring a specific interface, or
by reading previously saved tcpdump data from a file.
%prep
%setup
%build
%configure
%{__make} %{?_smp_mflags}
%install
%{__rm} -rf %{buildroot}
%{__make} install DESTDIR="%{buildroot}"
%files
%defattr(-, root, root, 0755)
%doc AUTHORS COPYING INSTALL LICENSE NEWS README doc/Tips_and_Tricks.txt
%doc %{_mandir}/man1/tcpprof.1*
%doc %{_mandir}/man1/tcpstat.1*
%{_bindir}/tcpstat
%clean
%{__rm} -rf %{buildroot}
%changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment