Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
af13bdf2a3
!15 Update to 0.8.7
From: @starlet-dx 
Reviewed-by: @Lostwayzxc, @caodongxia 
Signed-off-by: @caodongxia
2023-09-15 01:18:28 +00:00
starlet-dx
e252400833 Update to 0.8.7 2023-09-14 15:10:05 +08:00
openeuler-ci-bot
f2b822dc3c
!14 [sync] PR-13: Fix issues with -Werror=format-security for fprintf
From: @openeuler-sync-bot 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
2023-08-28 07:39:11 +00:00
lyn1001
3fe56a576f Fix issues with Werror format security
(cherry picked from commit 837491234bcabec8b54bbdeba2b58e09ace0e530)
2023-08-28 14:57:13 +08:00
openeuler-ci-bot
01b6f01cfd
!12 [sync] PR-9: add PIE compiler options
From: @openeuler-sync-bot 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
2023-06-07 09:24:54 +00:00
chen-jan
740755dc0a add PIE compiler options
(cherry picked from commit e611dacc84350163c58e297189d0a11542999219)
2023-06-07 16:45:31 +08:00
openeuler-ci-bot
b55ac020a8
!7 [sync] PR-4: 【openEuler-22.09】修复strip安全编译选项风险
From: @openeuler-sync-bot 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
2022-12-07 07:27:44 +00:00
wu-leilei
8663f4a009 fix binary /usr/local/sbin/nethogs not striped problem
(cherry picked from commit ba1beb30ba1e0f10d22f17997ae41fa38d3c5ada)
2022-12-07 10:13:00 +08:00
openeuler-ci-bot
d02b2f3f2d !2 add nethogs package and spec file and yaml file
From: @zengwefeng
Reviewed-by: @licihua
Signed-off-by: @licihua
2020-11-05 19:17:46 +08:00
zengweifeng
2bcd1160d8 add nethogs package and spec file and yaml file 2020-11-05 19:11:11 +08:00
3 changed files with 56 additions and 0 deletions

BIN
nethogs-0.8.7.tar.gz Normal file

Binary file not shown.

51
nethogs.spec Normal file
View File

@ -0,0 +1,51 @@
Name: nethogs
Version: 0.8.7
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}/nethogs-%{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
export CFLAGS="${RPM_OPT_FLAGS}"
export CXXFLAGS="${CXXFLAGS} -fPIE -pie"
%make_build
%install
%make_install
%check
%make_build test
%files
%license COPYING
%doc README.md INSTALL DESIGN
%{_sbindir}/../local/sbin/nethogs
%{_mandir}/../../local/share/man/man8/nethogs.8*
%changelog
* Thu Sep 14 2023 yaoxin <yao_xin001@hoperun.com> - 0.8.7-1
- Update to 0.8.7
* Mon Aug 28 2023 liyanan <thistleslyn@163.com> - 0.8.6-4
- Fix issues with Werror format security
* Mon Jun 05 2023 chenchen <chen_aka_jan@163.com> - 0.8.6-3
- add PIE compiler options
* Tue Aug 23 2022 wulei <wulei80@h-partners.com> 0.8.6-2
- Fix binary /usr/local/sbin/nethogs not striped problem
* Wed Nov 4 2020 zengwefeng<zwfeng@huawei.com> - 0.8.6-1
- Package init

5
nethogs.yaml Normal file
View File

@ -0,0 +1,5 @@
---
version_control: github
src_repo: raboof/nethogs
tag_prefix: "^v"
separator: "."