2010-01-14 20:51:40 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class AircrackNg <Formula
|
2010-04-27 13:26:31 +00:00
|
|
|
url 'http://download.aircrack-ng.org/aircrack-ng-1.1.tar.gz'
|
|
|
|
md5 'f7a24ed8fad122c4187d06bfd6f998b4'
|
2010-01-14 20:51:40 +00:00
|
|
|
homepage 'http://aircrack-ng.org/'
|
2010-04-07 05:58:35 +00:00
|
|
|
|
2010-01-14 20:51:40 +00:00
|
|
|
def install
|
|
|
|
# Force i386, otherwise you get errors:
|
|
|
|
# sha1-sse2.S:190:32-bit absolute addressing is not supported for x86-64
|
|
|
|
# sha1-sse2.S:190:cannot do signed 4 byte relocation
|
|
|
|
%w{ CFLAGS CXXFLAGS LDFLAGS OBJCFLAGS OBJCXXFLAGS }.each do |compiler_flag|
|
|
|
|
ENV.remove compiler_flag, "-arch x86_64"
|
|
|
|
ENV.append compiler_flag, "-arch i386"
|
|
|
|
end
|
2010-04-07 05:58:35 +00:00
|
|
|
|
2010-12-20 18:04:50 +00:00
|
|
|
# Fix incorrect OUI url
|
|
|
|
inreplace "scripts/airodump-ng-oui-update",
|
|
|
|
"http://standards.ieee.org/regauth/oui/oui.txt",
|
|
|
|
"http://standards.ieee.org/develop/regauth/oui/oui.txt"
|
|
|
|
|
2010-01-14 20:51:40 +00:00
|
|
|
system "make"
|
|
|
|
system "make", "prefix=#{prefix}", "mandir=#{man1}", "install"
|
|
|
|
end
|
2010-05-10 15:14:59 +00:00
|
|
|
|
2010-04-07 05:58:35 +00:00
|
|
|
def caveats; <<-EOS.undent
|
|
|
|
Run `airodump-ng-oui-update` as root (or with sudo) to install or update
|
|
|
|
the Airodump-ng OUI file.
|
2010-05-10 15:14:59 +00:00
|
|
|
EOS
|
|
|
|
end
|
2010-01-14 20:51:40 +00:00
|
|
|
end
|