aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/nuttcp.rb
diff options
context:
space:
mode:
authorStefhen Hovland2012-01-28 19:56:07 -0800
committerJack Nagel2012-03-21 21:07:59 -0500
commit31e47350da8a634e7a3c5740a0d8126b81811906 (patch)
tree66134281b5c3874804e17ef3f9eaf132ad717562 /Library/Formula/nuttcp.rb
parent63f11edcc496ab08f618b100ee9b8508ec4c1fa8 (diff)
downloadhomebrew-31e47350da8a634e7a3c5740a0d8126b81811906.tar.bz2
New formula: nuttcp
nuttcp is a network performance measurement tool intended for use by network and system managers. Its most basic usage is to determine the raw TCP (or UDP) network layer throughput by transferring memory buffers from a source system across an interconnecting network to a destination system, either transferring data for a specified time interval, or alternatively transferring a specified number of bytes. Closes #9840. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula/nuttcp.rb')
-rw-r--r--Library/Formula/nuttcp.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/Library/Formula/nuttcp.rb b/Library/Formula/nuttcp.rb
new file mode 100644
index 000000000..8218ec19b
--- /dev/null
+++ b/Library/Formula/nuttcp.rb
@@ -0,0 +1,13 @@
+require 'formula'
+
+class Nuttcp < Formula
+ homepage 'http://www.nuttcp.net/nuttcp'
+ url 'ftp://ftp.lcp.nrl.navy.mil/pub/nuttcp/nuttcp-6.1.2.tar.bz2'
+ md5 'a16d4d6d5def02cea980e57feaf30500'
+
+ def install
+ system "make", "CC=#{ENV.cc}", "CFLAGS=#{ENV.cflags}"
+ bin.install 'nuttcp-6.1.2' => 'nuttcp'
+ man8.install 'nuttcp.cat' => 'nuttcp.8'
+ end
+end