[arch-commits] Commit in netperf/repos (4 files)

Felix Yan felixonmars at archlinux.org
Fri Nov 9 22:17:19 UTC 2018


    Date: Friday, November 9, 2018 @ 22:17:19
  Author: felixonmars
Revision: 404901

archrelease: copy trunk to community-staging-x86_64

Added:
  netperf/repos/community-staging-x86_64/
  netperf/repos/community-staging-x86_64/001-fix-inlining.patch
    (from rev 404899, netperf/trunk/001-fix-inlining.patch)
  netperf/repos/community-staging-x86_64/PKGBUILD
    (from rev 404899, netperf/trunk/PKGBUILD)
  netperf/repos/community-staging-x86_64/netperf.service
    (from rev 404899, netperf/trunk/netperf.service)

------------------------+
 001-fix-inlining.patch |   32 +++++++++++++++++++++++++++
 PKGBUILD               |   54 +++++++++++++++++++++++++++++++++++++++++++++++
 netperf.service        |    9 +++++++
 3 files changed, 95 insertions(+)

Copied: netperf/repos/community-staging-x86_64/001-fix-inlining.patch (from rev 404899, netperf/trunk/001-fix-inlining.patch)
===================================================================
--- community-staging-x86_64/001-fix-inlining.patch	                        (rev 0)
+++ community-staging-x86_64/001-fix-inlining.patch	2018-11-09 22:17:19 UTC (rev 404901)
@@ -0,0 +1,32 @@
+# Copyright Seblu 2015
+--- a/src/netlib.c	2015-08-04 20:30:43.449468815 +0200
++++ b/src/netlib.c	2015-08-04 20:31:40.317792002 +0200
+@@ -3997,11 +3997,7 @@
+   }
+ }
+ 
+-#ifdef WIN32
+-__forceinline void demo_interval_display(double actual_interval)
+-#else
+-  inline void demo_interval_display(double actual_interval)
+-#endif
++void demo_interval_display(double actual_interval)
+ {
+   static int count = 0;
+   struct timeval now;
+@@ -4060,15 +4056,7 @@
+    important compilers have supported such a construct so it should
+    not be a big deal. raj 2012-01-23 */
+ 
+-#ifdef WIN32
+-/* It would seem that the Microsoft compiler will not inline across
+-   source files. So there is little point in having an inline
+-   directive in that situation.  Of course that makes me wonder if an
+-   inline directive has to appear in netlib.h... */
+ void demo_interval_tick(uint32_t units)
+-#else
+-  inline void demo_interval_tick(uint32_t units)
+-#endif
+ {
+   double actual_interval = 0.0;
+ 

Copied: netperf/repos/community-staging-x86_64/PKGBUILD (from rev 404899, netperf/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-11-09 22:17:19 UTC (rev 404901)
@@ -0,0 +1,54 @@
+# Maintainer: Sébastien Luttringer <seblu at archlinux.org>
+# Contributor: Kaiting Chen <kaitocracy at gmail.com>
+# Contributor: Tilman Blumenbach <tilman (at) ax86 (dot) net>
+
+pkgname=netperf
+pkgver=2.7.0
+pkgrel=4
+pkgdesc='Benchmarking tool for many different types of networking'
+url='https://github.com/HewlettPackard/netperf/'
+license=('custom')
+arch=('x86_64')
+depends=('glibc' 'libsmbios' 'lksctp-tools')
+source=("https://github.com/HewlettPackard/netperf/archive/$pkgname-$pkgver.tar.gz"
+        "$pkgname.service"
+        '001-fix-inlining.patch')
+md5sums=('e0d45b5bca1eee2aef0155de82366202'
+         '7bce5056b2a24d76fcc0c20e4b527416'
+         '0160c47c86ff1fca8df64cfb4cd4d9f2')
+
+prepare() {
+  cd netperf-netperf-$pkgver
+  # apply patch from the source array (should be a pacman feature)
+  local filename
+  for filename in "${source[@]}"; do
+    if [[ "$filename" =~ \.patch$ ]]; then
+      msg2 "Applying patch ${filename##*/}"
+      patch -p1 -N -i "$srcdir/${filename##*/}"
+    fi
+  done
+  :
+}
+
+build() {
+  cd netperf-netperf-$pkgver
+  ./configure \
+    --prefix=/usr \
+    --enable-demo \
+    --enable-unixdomain \
+    --enable-dccp \
+    --enable-sctp
+  make
+}
+
+package() {
+  cd netperf-netperf-$pkgver
+  make DESTDIR="$pkgdir" install
+  # license
+  install -D -m 644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
+  # systemd
+  install -D -m 644 ../$pkgname.service \
+    "$pkgdir/usr/lib/systemd/system/$pkgname.service"
+}
+
+# vim:set ts=2 sw=2 et:

Copied: netperf/repos/community-staging-x86_64/netperf.service (from rev 404899, netperf/trunk/netperf.service)
===================================================================
--- community-staging-x86_64/netperf.service	                        (rev 0)
+++ community-staging-x86_64/netperf.service	2018-11-09 22:17:19 UTC (rev 404901)
@@ -0,0 +1,9 @@
+[Unit]
+Description=Netperf Benchmark Server
+After=network.target
+
+[Service]
+ExecStart=/usr/bin/netserver -D
+
+[Install]
+WantedBy=multi-user.target



More information about the arch-commits mailing list