diff options
| author | Kyle Fuller | 2010-01-14 20:51:40 +0000 |
|---|---|---|
| committer | Adam Vandenberg | 2010-03-31 10:27:32 -0700 |
| commit | fb9fa98a7ee7d04c6df5cb1ac4d1688f7132e96c (patch) | |
| tree | d5107ac8240f91ca9630865376f6141cb514b2ff /Library | |
| parent | 43dca30cd97ec0ea525ff45f0031cea4334411fb (diff) | |
| download | homebrew-fb9fa98a7ee7d04c6df5cb1ac4d1688f7132e96c.tar.bz2 | |
New formula for aircrack-ng
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
* Use source tarball instead of repo
* Use proper man folder
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/aircrack-ng.rb | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Library/Formula/aircrack-ng.rb b/Library/Formula/aircrack-ng.rb new file mode 100644 index 000000000..ba8e27538 --- /dev/null +++ b/Library/Formula/aircrack-ng.rb @@ -0,0 +1,20 @@ +require 'formula' + +class AircrackNg <Formula + url 'http://download.aircrack-ng.org/aircrack-ng-1.0.tar.gz' + md5 'dafbfaf944ca9d523fde4bae86f0c067' + 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 +end |
