Compare commits
12 Commits
df20dc2b51
...
9f1de3eedf
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9f1de3eedf | ||
|
|
1e33546198 | ||
|
|
a809747418 | ||
|
|
5c81b347da | ||
|
|
2c67d9c2ea | ||
|
|
e4f2d199d7 | ||
|
|
0edd49056e | ||
|
|
93a6fb5cd6 | ||
|
|
f584104af1 | ||
|
|
143a0ea507 | ||
|
|
6d2cfc2f19 | ||
|
|
a7479d7227 |
Binary file not shown.
20
netperf-fix-multiple-definition.patch
Normal file
20
netperf-fix-multiple-definition.patch
Normal file
@ -0,0 +1,20 @@
|
||||
--- ./src/nettest_omni.c.bak 2021-08-03 17:12:46.083392014 +0800
|
||||
+++ ./src/nettest_omni.c 2021-08-03 17:13:38.299856016 +0800
|
||||
@@ -456,15 +456,13 @@
|
||||
|
||||
/* different options for the sockets */
|
||||
|
||||
-int
|
||||
+extern int
|
||||
loc_nodelay, /* don't/do use NODELAY locally */
|
||||
rem_nodelay, /* don't/do use NODELAY remotely */
|
||||
loc_sndavoid, /* avoid send copies locally */
|
||||
loc_rcvavoid, /* avoid recv copies locally */
|
||||
rem_sndavoid, /* avoid send copies remotely */
|
||||
- rem_rcvavoid; /* avoid recv_copies remotely */
|
||||
-
|
||||
-extern int
|
||||
+ rem_rcvavoid, /* avoid recv_copies remotely */
|
||||
loc_tcpcork,
|
||||
rem_tcpcork,
|
||||
local_connected,
|
||||
27
netperf.spec
27
netperf.spec
@ -2,13 +2,16 @@
|
||||
|
||||
Name: netperf
|
||||
Version: 2.7.0
|
||||
Release: 3
|
||||
Release: 7
|
||||
Summary: A Performance benchmark testing tool fro TCP/UDP
|
||||
License: HP no-commercial
|
||||
License: MIT
|
||||
URL: http://github.com/HewlettPackard/netperf
|
||||
Source0: https://github.com/HewlettPackard/netperf/archive/%{name}-%{_version}.tar.gz
|
||||
|
||||
BuildRequires:texinfo texinfo-tex
|
||||
Patch1: netperf-fix-multiple-definition.patch
|
||||
Patch2: netserver-suppress-debug-log-by-default.patch
|
||||
|
||||
BuildRequires: gcc texinfo texinfo-tex
|
||||
|
||||
%description
|
||||
netperf is a collection of many different network performance benchmarking tools
|
||||
@ -16,10 +19,12 @@ netperf is a collection of many different network performance benchmarking tool
|
||||
%package_help
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%setup -q -n %{name}-%{name}-%{version}
|
||||
%patch1
|
||||
%patch2
|
||||
|
||||
%build
|
||||
%configure
|
||||
%configure
|
||||
%{__make} %{_smp_mflags}
|
||||
|
||||
%install
|
||||
@ -50,6 +55,18 @@ netperf is a collection of many different network performance benchmarking tool
|
||||
%{_mandir}/man1/*
|
||||
|
||||
%changelog
|
||||
* Thu Apr 18 2024 baiguo <baiguo@kylinos.cn> - 2.7.0-7
|
||||
- netserver: suppress debug log by default
|
||||
|
||||
* Fri Nov 11 2022 xu_ping <xuping33@h-partners.com> - 2.7.0-6
|
||||
- change source pac
|
||||
|
||||
* Wed Aug 4 2021 shdluan <shdluan@163.com> - 2.7.0-5
|
||||
- fix multiple defination of variable
|
||||
|
||||
* Thu Jun 03 2021 zhaoyao <zhaoyao32@huawei.com> - 2.7.0.-4
|
||||
- fixs failed: gcc command not found.
|
||||
|
||||
* Sat Sep 26 2020 hushiyuan <hushiyuan@huawei.com> - 2.7.0-3
|
||||
* Delete install-info in post and preun
|
||||
|
||||
|
||||
4
netperf.yaml
Normal file
4
netperf.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control:github
|
||||
src_repo:HewlettPackard/netperf
|
||||
tar_prefix: "^netperf-"
|
||||
seperator: "."
|
||||
25
netserver-suppress-debug-log-by-default.patch
Normal file
25
netserver-suppress-debug-log-by-default.patch
Normal file
@ -0,0 +1,25 @@
|
||||
From ef83b1fda6a95a675f60e4d01ecbdf9d4f9d7fd2 Mon Sep 17 00:00:00 2001
|
||||
From: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
|
||||
Date: Thu, 18 Apr 2024 21:01:19 +0800
|
||||
Subject: [PATCH] netserver: suppress debug log by default
|
||||
|
||||
---
|
||||
src/netserver.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git ./src/netserver.c ./src/netserver.c
|
||||
index 9534722..b8b8c49 100644
|
||||
--- ./src/netserver.c
|
||||
+++ ./src/netserver.c
|
||||
@@ -196,7 +196,7 @@ int daemon_parent = 0;
|
||||
int not_inetd;
|
||||
int want_daemonize;
|
||||
int spawn_on_accept;
|
||||
-int suppress_debug = 0;
|
||||
+int suppress_debug = 1;
|
||||
|
||||
extern char *optarg;
|
||||
extern int optind, opterr;
|
||||
--
|
||||
2.27.0
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user