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