--- /dev/null
+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
--- /dev/null
+<?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>
--- /dev/null
+# 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
+}