diff options
| author | Dominyk Tiller | 2014-11-15 03:26:30 +0000 |
|---|---|---|
| committer | Jack Nagel | 2014-11-15 01:03:28 -0600 |
| commit | 4af90eecb4ff3cd166e10f91154cc19dd66c3af0 (patch) | |
| tree | e9e1907918fdeaf76d91fd479c89150ee27777fa /Library | |
| parent | 1fe6bec8e6db1fe15fca25b10b0900075fce4322 (diff) | |
| download | homebrew-4af90eecb4ff3cd166e10f91154cc19dd66c3af0.tar.bz2 | |
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 #34207.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/tcpreplay.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Library/Formula/tcpreplay.rb b/Library/Formula/tcpreplay.rb index 9744b40ab..d82130802 100644 --- a/Library/Formula/tcpreplay.rb +++ b/Library/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 |
