* Fix that on ubuntu 20.04, the current version of the code does not compile as a python package by @molysgaard in #224 * Add -std=c++14 for application build by @msbit in #228 * Hide cursor during initialization and restore at exit by @zevweiss in #231 * Capabilities for reading process names by @qouoq in #233 * Additional useful capabilities by @qouoq in #234 * Add -std=c++14 for application build by @NeilZhy in #236 * Use s instead of sec for units of seconds by @a1346054 in #242 * Add Arch Linux instructions to README.md by @orhun in #250 * Fix wrong extern declaration of pidsToWatch by @sgtcortez in #251 * fix get_devlen function from being pointless by @DiedByDisgust in #255 * fix python bindings by @AndreasGocht in #258 * Report only changes of send and received data by @AndreasGocht in #260 * Clarify units by @hramrach in #262 * fix an copy-and-paste error in the bindings by @AndreasGocht in #263 * Report pcap stas by @AndreasGocht in #264 * Fix nethogsmonitor_loop_devices_py to accept more than one device by @AndreasGocht in #267 * allow the library to enable UDP recording by @AndreasGocht in #269 * Add meson buildsystem by @lleon95 in #275 * determineVersion.sh: prevent traversing into outer git repo for git-describe call by @BubuOT in #279 OBS-URL: https://build.opensuse.org/package/show/network:utilities/nethogs?expand=0&rev=21
74 lines
2.2 KiB
RPMSpec
74 lines
2.2 KiB
RPMSpec
#
|
|
# spec file for package nethogs
|
|
#
|
|
# Copyright (c) 2024 SUSE LLC
|
|
# Copyright (c) 2013 Pascal Bleser <pascal.bleser@opensuse.org>
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: nethogs
|
|
Version: 0.8.8
|
|
Release: 0
|
|
Summary: Network Bandwidth Usage Monitor
|
|
License: GPL-2.0-or-later
|
|
Group: Productivity/Networking/Diagnostic
|
|
URL: https://raboof.github.io/nethogs/
|
|
Source: https://github.com/raboof/nethogs/archive/v%{version}/nethogs-v%{version}.tar.gz
|
|
Source3: https://keybase.io/raboof/key.asc#/%{name}.keyring
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: libpcap-devel
|
|
BuildRequires: 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 indentify programs that have
|
|
gone wild and are suddenly taking up your bandwidth.
|
|
|
|
%prep
|
|
%autosetup -p1
|
|
|
|
%build
|
|
%make_build \
|
|
sbin="%{_sbindir}" \
|
|
bin="%{_sbindir}" \
|
|
man8="%{_mandir}/man8" \
|
|
CFLAGS="%{optflags}" \
|
|
CXXFLAGS="%{optflags}" \
|
|
CXX="g++" \
|
|
nethogs
|
|
|
|
%install
|
|
make %{?_smp_mflags} \
|
|
sbin="%{buildroot}%{_sbindir}" \
|
|
bin="%{buildroot}%{_sbindir}" \
|
|
man8="%{buildroot}%{_mandir}/man8" \
|
|
CFLAGS="%{optflags}" \
|
|
CXXFLAGS="%{optflags}" \
|
|
CXX="g++" \
|
|
install
|
|
|
|
%check
|
|
%make_build test
|
|
|
|
%files
|
|
%license COPYING
|
|
%doc README.md DESIGN
|
|
%{_sbindir}/nethogs
|
|
%{_mandir}/man8/nethogs.8%{?ext_man}
|
|
|
|
%changelog
|