diff --git a/nethogs.spec b/nethogs.spec new file mode 100644 index 0000000000000000000000000000000000000000..73a204b3874943dcc9152a48917febf0850bb2a3 --- /dev/null +++ b/nethogs.spec @@ -0,0 +1,52 @@ +%global debug_package %{nil} + +Name: nethogs +Version: 0.8.6 +Release: 1 +Summary: NetHogs is a small 'net top' tool +License: GPLv2 +URL: https://github.com/raboof/nethogs/ +Source0: https://github.com/raboof/nethogs/archive/v%{version}.tar.gz + +BuildRequires: libpcap-devel gcc-c++ ncurses-devel + +Requires: ncurses + +%description +NetHogs is a small 'net top' tool. Instead of breaking the traffic down +per protocol or per subnet, like most tools do, it groups bandwidth by process. + +NetHogs does not rely on a special kernel module to be loaded. If there's +suddenly a lot of network traffic, you can fire up NetHogs and immediately +see which PID is causing this. This makes it easy to identify programs that +have gone wild and are suddenly taking up your bandwidth. + +%package_help + +%prep +%setup -q -n %{name}-%{version}/ + +%build +make + +%install +%make_install PREFIX=%{_prefix} + +%pre +%preun +%post +%postun + +%check + +%files +%license COPYING +%{_sbindir}/%{name} + +%files help +%{_mandir}/man8/%{name}.8* + +%changelog +* Sun Mar 29 2020 Wei Xiong +- Package init + diff --git a/v0.8.6.tar.gz b/v0.8.6.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..c7f4ee2b040fb7e8350b7b875008150f056af89f Binary files /dev/null and b/v0.8.6.tar.gz differ