added community/aircrack-ng

This commit is contained in:
Kevin Mihelich 2016-02-18 01:05:42 +00:00
parent 11a1727231
commit 67d941d0b3

View file

@ -0,0 +1,51 @@
# $Id$
# Maintainer: Jonathan Steel <jsteel at archlinux.org>
# Contributor: Brad Fanella <bradfanella@archlinux.us>
# Contributor: Daenyth <Daenyth+Arch [at] gmail [dot] com>
# Contributor: Corrado Primier <bardo@aur.archlinux.org>
# Contributor: ice-man <icemanf@gmail.com>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - grab upstream commits for AArch64
# remove when bumped upstream
pkgname=aircrack-ng
_pkgver=1.2-rc4
pkgver=${_pkgver//-/}
pkgrel=1
pkgdesc="Key cracker for the 802.11 WEP and WPA-PSK protocols"
arch=('i686' 'x86_64')
url="http://www.aircrack-ng.org"
license=('GPL2')
depends=('openssl' 'sqlite' 'iw' 'net-tools' 'wireless_tools' 'ethtool')
conflicts=('aircrack-ng-scripts')
replaces=('aircrack-ng-scripts')
provides=('aircrack-ng-scripts')
source=(http://download.aircrack-ng.org/$pkgname-$_pkgver.tar.gz
https://github.com/aircrack-ng/aircrack-ng/commit/252717588f2483a007bbd8bb6ceac3257e8c67e8.patch
https://github.com/aircrack-ng/aircrack-ng/commit/913443c9745f72899fdd75e71217dd7b3d76ce34.patch)
md5sums=('3bbc7d5035a98ec01e78774d05c3fcce'
'872a852ce0e2daffeb5038d81153d97c'
'5370cdb6889619ff425e74fc58f4b91b')
prepare() {
cd $pkgname-$_pkgver
patch -p1 -i ../252717588f2483a007bbd8bb6ceac3257e8c67e8.patch
patch -p1 -i ../913443c9745f72899fdd75e71217dd7b3d76ce34.patch
}
build() {
cd $pkgname-$_pkgver
make sqlite=true experimental=true
}
package() {
cd $pkgname-$_pkgver
make DESTDIR="$pkgdir" sqlite=true experimental=true \
bindir=/usr/bin sbindir=/usr/bin mandir=/usr/share/man/man1/ \
smandir=/usr/share/man/man8/ install
}