net-analyzer/netpipe: new package
authorWilliam Hubbs <williamh@gentoo.org>
Thu, 12 Jan 2017 23:47:35 +0000 (17:47 -0600)
committerWilliam Hubbs <williamh@gentoo.org>
Thu, 12 Jan 2017 23:48:36 +0000 (17:48 -0600)
Package-Manager: portage-2.3.0

net-analyzer/netpipe/Manifest [new file with mode: 0644]
net-analyzer/netpipe/files/netpipe-3.7.2-fix-makefile.patch [new file with mode: 0644]
net-analyzer/netpipe/metadata.xml [new file with mode: 0644]
net-analyzer/netpipe/netpipe-3.7.2.ebuild [new file with mode: 0644]

diff --git a/net-analyzer/netpipe/Manifest b/net-analyzer/netpipe/Manifest
new file mode 100644 (file)
index 0000000..8d7836a
--- /dev/null
@@ -0,0 +1 @@
+DIST NetPIPE-3.7.2.tar.gz 400248 SHA256 13dac884ff52951636f651c421f5ff4a853218a95aa28a4a852402ee385a2ab8 SHA512 158c24665bcc55144452c2aeff067e0d853ffca1ecd130d52c3ea7d4068c53e81f9a1133d0cca847d28f597f68b20f01e79811f81ab1396dd18ba2eaaf691430 WHIRLPOOL 33b22df3075ed57e3e77713ee16f7de3293f7795788afb4ae252ffebe427041f38940311099e03488f5628584ea77a6f1224160b0042241902cd91ae69b5f74d
diff --git a/net-analyzer/netpipe/files/netpipe-3.7.2-fix-makefile.patch b/net-analyzer/netpipe/files/netpipe-3.7.2-fix-makefile.patch
new file mode 100644 (file)
index 0000000..f5c6173
--- /dev/null
@@ -0,0 +1,13 @@
+diff --git a/makefile b/makefile
+index 16f9052..3ada81f 100644
+--- a/makefile
++++ b/makefile
+@@ -21,8 +21,6 @@
+ #
+ ########################################################################
+-CC         = cc
+-CFLAGS     = -O -g
+ SRC        = ./src
+ # For MPI, mpicc will set up the proper include and library paths
diff --git a/net-analyzer/netpipe/metadata.xml b/net-analyzer/netpipe/metadata.xml
new file mode 100644 (file)
index 0000000..fd15de9
--- /dev/null
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+       <maintainer type="person">
+               <email>williamh@gentoo.org</email>
+               <name>William Hubbs</name>
+       </maintainer>
+       <longdescription lang="en">
+               NetPIPE is a protocol independent performance tool that visually
+               represents the network performance under a variety of conditions.
+               It performs simple ping-pong tests, bouncing messages of increasing
+               size between two processes, whether across a network or within an
+               SMP system. Message sizes are chosen at regular intervals, and with
+               slight perturbations, to provide a complete test of the communication
+               system. Each data point involves many ping-pong tests to provide an
+               accurate timing. Latencies are calculated by dividing the round
+               trip time in half for small messages ( less 64 Bytes ). 
+       </longdescription>
+</pkgmetadata>
diff --git a/net-analyzer/netpipe/netpipe-3.7.2.ebuild b/net-analyzer/netpipe/netpipe-3.7.2.ebuild
new file mode 100644 (file)
index 0000000..afe44ce
--- /dev/null
@@ -0,0 +1,45 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit toolchain-funcs
+
+MY_PN=NetPIPE
+MY_P=${MY_PN}-${PV}
+
+DESCRIPTION="network protocol independent performance evaluator"
+HOMEPAGE="http://bitspjoule.org/netpipe/"
+SRC_URI="http://bitspjoule.org/netpipe/code/${MY_P}.tar.gz"
+LICENSE="GPL-1+"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="ipv6"
+
+DOCS=(
+       bin/feplot
+       bin/geplot
+       bin/nplaunch
+       dox/README
+       dox/netpipe_paper.ps
+       dox/np_cluster2002.pdf
+       dox/np_euro.pdf
+       )
+
+PATCHES=(
+       "${FILESDIR}"/${P}-fix-makefile.patch
+       )
+
+S="${WORKDIR}"/${MY_P}
+
+src_compile() {
+       emake CC="$(tc-getCC)" LD="$(tc-getLD)" memcpy tcp $(usex ipv6 tcp6 '')
+}
+
+src_install() {
+       dobin NPmemcpy NPtcp
+       use ipv6 && dobin NPtcp6
+       doman dox/netpipe.1
+       einstalldocs
+}