Commit fdcdd077 authored by lyxell's avatar lyxell Committed by GitHub

Merge pull request #781 from wwwiiilll/aircrack-ng

Add aircrack-ng package and its dependencies
parents d2c57a66 50c670b3
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
require 'package'
class Libnl3 < Package
description 'Library for applications dealing with netlink sockets.'
homepage 'http://www.infradead.org/~tgr/libnl/'
version '3.2.25'
source_url 'http://www.infradead.org/~tgr/libnl/files/libnl-3.2.25.tar.gz'
source_sha1 'b7a4981f7edf7398256d35fd3c0b87bc84ae27d1'
depends_on "buildessential" => :build
depends_on "glibc"
def self.build
system "./configure",
"--prefix=/usr/local",
"--sysconfdir=/usr/local/etc",
"--sbindir=/usr/local/sbin",
"--disable-static"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
def self.check
system "make", "check"
end
end
require 'package'
class Rfkill < Package
description 'Tool for enabling and disabling wireless devices.'
homepage 'http://linuxwireless.org/en/users/Documentation/rfkill'
version '0.5'
source_url 'https://www.kernel.org/pub/software/network/rfkill/rfkill-0.5.tar.xz'
source_sha1 '03025d4ae285c40d5c19ec99ef7b317afda9d900'
depends_on 'buildessential' => :build
def self.build
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "SBINDIR=/usr/local/sbin", "MANDIR=/usr/local/share/man", "install"
end
def self.check
system "make check"
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment