homebrew-core/Formula/aircrack-ng.rb
Adam Vandenberg 7bd947eb0b Update formulae for version 0.7
* Use new "url" features
* Use keg_only DSL
* Use "skip_clean :all" DSL
* Whitespace and style cleanups
* Make bash invocations less silly
* Use new man2-man8 helpers
* Remove "FileUtils." since it is included in Formula
* Use real names for deps instead of aliases
* ENV.x11 now updates path, so remove that from individual brews
2010-08-07 18:08:53 -07:00

26 lines
809 B
Ruby

require 'formula'
class AircrackNg <Formula
url 'http://download.aircrack-ng.org/aircrack-ng-1.1.tar.gz'
md5 'f7a24ed8fad122c4187d06bfd6f998b4'
homepage 'http://aircrack-ng.org/'
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
system "make"
system "make", "prefix=#{prefix}", "mandir=#{man1}", "install"
end
def caveats; <<-EOS.undent
Run `airodump-ng-oui-update` as root (or with sudo) to install or update
the Airodump-ng OUI file.
EOS
end
end