From 087b07b138d58719fb04d3a7da8065c45e3cccde Mon Sep 17 00:00:00 2001 From: Dominyk Tiller Date: Sat, 15 Nov 2014 03:26:30 +0000 Subject: [PATCH] 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 --- Formula/tcpreplay.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Formula/tcpreplay.rb b/Formula/tcpreplay.rb index 9744b40ab9..d82130802a 100644 --- a/Formula/tcpreplay.rb +++ b/Formula/tcpreplay.rb @@ -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