tcpreplay 4.1.0-b2 devel

Adds the devel build, adds a dependency on libdnet because if you have it
installed it is already looking for and pulling it in from /usr/local
and adds a test.

Closes Homebrew/homebrew#34207.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Dominyk Tiller 2014-11-15 03:26:30 +00:00 committed by Jack Nagel
parent 760e466d0d
commit 087b07b138

View file

@ -12,6 +12,14 @@ class Tcpreplay < Formula
sha1 "9675b87cf528c950d69c8500c78ab059b601f16a" => :lion
end
depends_on "libdnet" => :recommended
devel do
url "https://github.com/appneta/tcpreplay/releases/download/v4.1.0beta2/tcpreplay-4.1.0beta2.tar.gz"
sha1 "63c2e5cb17e65bd5072661b43553dc7efc48e881"
version "4.1.0-b2"
end
def install
system "./configure", "--disable-dependency-tracking",
"--disable-debug",
@ -20,4 +28,8 @@ class Tcpreplay < Formula
"--with-libpcap=#{MacOS.sdk_path}/usr"
system "make", "install"
end
test do
system "#{bin}/tcpreplay", "--version"
end
end