diff options
| author | Alex Dunn | 2015-04-18 11:58:19 -0700 |
|---|---|---|
| committer | Brett Koonce | 2015-04-25 09:51:34 -0700 |
| commit | 04458901d90ad9bf98d1e22b0477553eda2924c5 (patch) | |
| tree | 6c0e1cf4e26c1059a8d0a08de0a6c6eb61fbd0fa | |
| parent | f02c13886b189bb05d06185f2756345c0d84a7c2 (diff) | |
| download | homebrew-04458901d90ad9bf98d1e22b0477553eda2924c5.tar.bz2 | |
cowpatty 4.6, add test
Closes #38797.
Signed-off-by: Brett Koonce <koonce@gmail.com>
| -rw-r--r-- | Library/Formula/cowpatty.rb | 31 |
1 files changed, 23 insertions, 8 deletions
diff --git a/Library/Formula/cowpatty.rb b/Library/Formula/cowpatty.rb index 9aa486e22..1c8211905 100644 --- a/Library/Formula/cowpatty.rb +++ b/Library/Formula/cowpatty.rb @@ -1,13 +1,28 @@ -require 'formula' - class Cowpatty < Formula - homepage 'http://www.willhackforsushi.com/?page_id=50' - url 'http://www.willhackforsushi.com/code/cowpatty/4.3/cowpatty-4.3.tgz' - sha1 '8b7cb2015d0534031827f2f06135bf5cf5929d35' + homepage "http://www.willhackforsushi.com/?page_id=50" + url "http://www.willhackforsushi.com/code/cowpatty/4.6/cowpatty-4.6.tgz" + sha256 "cd3fc113e5052d3ee08ab71aa87edf772d044f760670c73fde5d5581d7803bc2" + + depends_on "openssl" + + resource "capture" do + url "http://www.lovemytool.com/files/test.pcap" + sha256 "35fba0f92c5e8fb0710453d0c2c5fe5e9c64857dd53b219977871340b22c4942" + end def install - ENV.j1 - inreplace "Makefile", "/usr/local/", "#{prefix}/" - system "make install" + system "make", "BINDIR=#{bin}", "install" + end + + test do + (testpath/"dict").write <<-EOS.undent + isthisthepassword? + maybethisoneinstead + subnet16121930 + EOS + resource("capture").stage do + system bin/"cowpatty", "-r", "test.pcap", + "-f", testpath/"dict", "-s", "dd-wrt2" + end end end |
