Adds aircrack-ng package and its deps

This commit is contained in:
William Turner
2017-06-22 00:19:03 -04:00
parent 4f5ed56823
commit 50c670b31a
3 changed files with 93 additions and 0 deletions

41
packages/aircrack_ng.rb Normal file
View File

@@ -0,0 +1,41 @@
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'
source_url 'http://download.aircrack-ng.org/aircrack-ng-1.2-rc4.tar.gz'
source_sha1 '2b2fbe50fedb606b3bd96a34d49f07760e8e618a'
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
system "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