aboutsummaryrefslogtreecommitdiffstats
path: root/testing/aircrack-ng/APKBUILD
blob: b65d229cbf86d3cb9f1efdfe269ee6bd70fc5ed0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=aircrack-ng
pkgver=1.2_rc2
_pkgver=${pkgver/_/-}
pkgrel=0
pkgdesc="Key cracker for the 802.11 WEP and WPA-PSK protocols"
url="http://www.aircrack-ng.org"
arch="all"
license="GPL2"
depends="ethtool wireless-tools iw sqlite"
depends_dev="openssl-dev sqlite-dev libnl-dev linux-headers pcre-dev
	bsd-compat-headers"
makedepends="$depends_dev"
install=""
subpackages="$pkgname-doc"
source="http://download.aircrack-ng.org/$pkgname-$_pkgver.tar.gz"
_builddir="$srcdir"/$pkgname-$_pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	make sqlite=true pcre=true
}

package() {
	cd "$_builddir"
	 make DESTDIR="$pkgdir" sqlite=true experimental=true \
		bindir=/usr/bin sbindir=/usr/bin mandir=/usr/share/man/man1/ \
		smandir=/usr/share/man/man8/ install
}

md5sums="ebe9d537f06f4d6956213af09c4476da  aircrack-ng-1.2-rc2.tar.gz"
sha256sums="ba5b3eda44254efc5b7c9f776eb756f7cc323ad5d0813c101e92edb483d157e9  aircrack-ng-1.2-rc2.tar.gz"
sha512sums="49794c80a76da20698d0372a81fdbd54f2defb694c23807369be7632e57d21cb09f14d3013b199f247663286c316714ee0fae8a6d302cabbe48ffa1e6ebefc56  aircrack-ng-1.2-rc2.tar.gz"