2010-02-11 16:05:46 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Pwnat < Formula
|
2010-04-13 03:23:31 +00:00
|
|
|
url 'http://samy.pl/pwnat/pwnat-0.3-beta.tgz'
|
2010-02-11 16:05:46 +00:00
|
|
|
homepage 'http://samy.pl/pwnat/'
|
2010-04-13 03:23:31 +00:00
|
|
|
md5 'd1f2b556a32669484f0358d009a20feb'
|
|
|
|
version '0.3-beta'
|
2010-02-11 16:05:46 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
inreplace "Makefile" do |s|
|
|
|
|
s.change_make_var! "CC", ENV.cc
|
2010-08-10 15:05:31 +00:00
|
|
|
s.change_make_var! "CFLAGS", ENV.cflags
|
2010-02-11 16:05:46 +00:00
|
|
|
s.change_make_var! "LDFLAGS", "-lz"
|
|
|
|
end
|
|
|
|
|
|
|
|
system "make"
|
|
|
|
bin.install "pwnat"
|
|
|
|
end
|
|
|
|
end
|