diff options
| author | Baptiste Fontaine | 2015-04-11 12:20:07 +0200 |
|---|---|---|
| committer | Xu Cheng | 2015-04-12 02:10:26 +0800 |
| commit | 929cd328d1c433b8e515636d692e81f5f597ca48 (patch) | |
| tree | d8b50c75f7ef9072b7987ae7a0a0cf63f6ef8e62 /Library | |
| parent | 20523c212df341e3a35ce02cbbe9f600c62ffb6f (diff) | |
| download | homebrew-929cd328d1c433b8e515636d692e81f5f597ca48.tar.bz2 | |
pwnat: head and basic test added
Closes #38547.
Signed-off-by: Xu Cheng <xucheng@me.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/pwnat.rb | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/Library/Formula/pwnat.rb b/Library/Formula/pwnat.rb index 744fa956f..029f57003 100644 --- a/Library/Formula/pwnat.rb +++ b/Library/Formula/pwnat.rb @@ -1,12 +1,16 @@ -require 'formula' - class Pwnat < Formula - homepage 'http://samy.pl/pwnat/' - url 'http://samy.pl/pwnat/pwnat-0.3-beta.tgz' - sha1 '6faaeef76a2b62635def8fdef06fce0dfa3e870e' + homepage "http://samy.pl/pwnat/" + url "http://samy.pl/pwnat/pwnat-0.3-beta.tgz" + sha256 "d5d6ea14f1cf0d52e4f946be5c3630d6440f8389e7467c0117d1fe33b9d130a2" + + head "https://github.com/samyk/pwnat.git" def install system "make", "CC=#{ENV.cc}", "CFLAGS=#{ENV.cflags}", "LDFLAGS=-lz" bin.install "pwnat" end + + test do + shell_output("#{bin}/pwnat -h", 1) + end end |
