24 lines
621 B
Ruby
24 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
|