mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-10 07:57:59 -05:00
41 lines
1.1 KiB
Ruby
41 lines
1.1 KiB
Ruby
require 'package'
|
|
|
|
class Aircrack_ng < Package
|
|
description 'Key cracker for the 802.11 WEP and WPA-PSK protocols.'
|
|
homepage 'https://www.aircrack-ng.org'
|
|
version '1.2-rc4-1'
|
|
source_url 'http://download.aircrack-ng.org/aircrack-ng-1.2-rc4.tar.gz'
|
|
source_sha256 'd93ac16aade5b4d37ab8cdf6ce4b855835096ccf83deb65ffdeff6d666eaff36'
|
|
|
|
depends_on "buildessential" => :build
|
|
depends_on "bison" => :build
|
|
depends_on "flex" => :build
|
|
depends_on "libnl3"
|
|
depends_on "libpcap"
|
|
depends_on "sqlite"
|
|
depends_on "rfkill"
|
|
|
|
def self.build
|
|
# Need to specify TMPDIR to run automatic configuration tool correctly
|
|
system "TMPDIR=/usr/local/tmp make sqlite=true experimental=true"
|
|
end
|
|
|
|
def self.install
|
|
system "make", "DESTDIR=#{CREW_DEST_DIR}",
|
|
"sqlite=true",
|
|
"experimental=true",
|
|
"bindir=/usr/local/bin",
|
|
"sbindir=/usr/local/sbin",
|
|
"mandir=/usr/local/share/man/man1",
|
|
"smandir=/usr/local/share/man/man8",
|
|
"install"
|
|
end
|
|
|
|
def self.check
|
|
system "make",
|
|
"sqlite=true",
|
|
"experimental=true",
|
|
"check"
|
|
end
|
|
end
|