homebrew-core/Formula/nuttcp.rb
Stefhen Hovland 2e3b664784 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 Homebrew/homebrew#9840.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-21 21:07:59 -05:00

13 lines
362 B
Ruby

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