2013-08-01 21:33:40 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Reaver < Formula
|
|
|
|
homepage 'http://code.google.com/p/reaver-wps/'
|
2014-03-05 07:22:08 +00:00
|
|
|
url 'https://reaver-wps.googlecode.com/files/reaver-1.4.tar.gz'
|
2013-08-01 21:33:40 +00:00
|
|
|
sha1 '2ebec75c3979daa7b576bc54adedc60eb0e27a21'
|
|
|
|
|
|
|
|
# Adds general support for Mac OS X in reaver:
|
|
|
|
# http://code.google.com/p/reaver-wps/issues/detail?id=245
|
|
|
|
def patches
|
|
|
|
"https://gist.github.com/syndicut/6134996/raw/reaver-osx.diff"
|
|
|
|
end
|
|
|
|
|
|
|
|
def install
|
|
|
|
man1.install 'docs/reaver.1.gz'
|
|
|
|
prefix.install_metafiles 'docs'
|
|
|
|
cd "src"
|
|
|
|
system "./configure", "--prefix=#{prefix}"
|
|
|
|
system "make"
|
|
|
|
bin.mkpath
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|