homebrew-core/Formula/reaver.rb
syndicut d6fda817a9 for reaver 1.4
Closes Homebrew/homebrew#21596.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-08-17 23:35:11 -07:00

23 lines
621 B
Ruby

require 'formula'
class Reaver < Formula
homepage 'http://code.google.com/p/reaver-wps/'
url 'http://reaver-wps.googlecode.com/files/reaver-1.4.tar.gz'
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