diff --git a/nethogs.spec b/nethogs.spec new file mode 100644 index 0000000000000000000000000000000000000000..20e972b1e30f95a787581d96c2c6991b1fa639ce --- /dev/null +++ b/nethogs.spec @@ -0,0 +1,39 @@ +%define 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: gcc-c++ libpcap-devel ncurses-devel + +%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 su +ddenly taking up your bandwidth. + +%prep +%autosetup -n %{name}-%{version} -p1 + +%build +%make_build + +%install +%make_install + +%check +%make_build test + +%files +%license COPYING +%doc README.md +%{_sbindir}/../local/sbin/nethogs +%{_mandir}/../../local/share/man/man8/nethogs.8* + +%changelog +* Wed Nov 4 2020 zengwefeng - 0.8.6-1 +- Package init diff --git a/nethogs.yaml b/nethogs.yaml new file mode 100644 index 0000000000000000000000000000000000000000..cf71472038e275d32c926c689b505f75455293b6 --- /dev/null +++ b/nethogs.yaml @@ -0,0 +1,5 @@ +--- +version_control: github +src_repo: raboof/nethogs +tag_prefix: "^v" +separator: "." 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