From 3631ae15c438c8c00f79e4b06fbd0efb1960a294 Mon Sep 17 00:00:00 2001 From: Mandar Gokhale Date: Sat, 25 Jan 2014 13:42:49 -0500 Subject: [PATCH] bittwist 2.0 (new formula) generate and edit pcaps bittwist can be used to: - Send multiple packet traces at a time - Send packets at a specific speed or line rate in Mbps - Edit fields in Ethernet, ARP, IP, ICMP, TCP, and UDP headers - Automatic header checksum correction - Append user payload to existing packets after a specific header - Select a specific range of packets and save them in another trace file Closes Homebrew/homebrew#26169. Signed-off-by: Mike McQuaid --- Formula/bittwist.rb | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Formula/bittwist.rb diff --git a/Formula/bittwist.rb b/Formula/bittwist.rb new file mode 100644 index 00000000000..2b7655b7dea --- /dev/null +++ b/Formula/bittwist.rb @@ -0,0 +1,17 @@ +require "formula" + +class Bittwist < Formula + homepage "http://bittwist.sourceforge.net" + url "http://downloads.sourceforge.net/project/bittwist/Mac%20OS%20X/Bit-Twist%202.0/bittwist-macosx-2.0.tar.gz" + sha1 "fcc652f838858edbf86546af945a71b815cf4d6b" + + def install + system "make" + system "make", "install", "prefix=#{prefix}" + end + + test do + system "#{bin}/bittwist -help" + system "#{bin}/bittwiste -help" + end +end