diff options
author | William Hubbs <williamh@gentoo.org> | 2017-01-12 17:47:35 -0600 |
---|---|---|
committer | William Hubbs <williamh@gentoo.org> | 2017-01-12 17:48:36 -0600 |
commit | e548587eae35e75a7d9bce719571714df6ca066b (patch) | |
tree | 5b633933303694db19a15b8dc6905db0dc80360b /net-analyzer/netpipe | |
parent | sys-kernel/gentoo-sources: Linux patch 4.9.3 (diff) | |
download | gentoo-e548587eae35e75a7d9bce719571714df6ca066b.tar.gz gentoo-e548587eae35e75a7d9bce719571714df6ca066b.tar.bz2 gentoo-e548587eae35e75a7d9bce719571714df6ca066b.zip |
net-analyzer/netpipe: new package
Package-Manager: portage-2.3.0
Diffstat (limited to 'net-analyzer/netpipe')
-rw-r--r-- | net-analyzer/netpipe/Manifest | 1 | ||||
-rw-r--r-- | net-analyzer/netpipe/files/netpipe-3.7.2-fix-makefile.patch | 13 | ||||
-rw-r--r-- | net-analyzer/netpipe/metadata.xml | 19 | ||||
-rw-r--r-- | net-analyzer/netpipe/netpipe-3.7.2.ebuild | 45 |
4 files changed, 78 insertions, 0 deletions
diff --git a/net-analyzer/netpipe/Manifest b/net-analyzer/netpipe/Manifest new file mode 100644 index 000000000000..8d7836aae51c --- /dev/null +++ b/net-analyzer/netpipe/Manifest @@ -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 index 000000000000..f5c61737f7ae --- /dev/null +++ b/net-analyzer/netpipe/files/netpipe-3.7.2-fix-makefile.patch @@ -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 index 000000000000..fd15de965046 --- /dev/null +++ b/net-analyzer/netpipe/metadata.xml @@ -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 index 000000000000..afe44ceeee72 --- /dev/null +++ b/net-analyzer/netpipe/netpipe-3.7.2.ebuild @@ -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 +} |