aboutsummaryrefslogtreecommitdiffstats
path: root/testing/reaver-wps-fork-t6x/APKBUILD
blob: 999701e87cdb99d003d8da861f13a6925e37b617 (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
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=reaver-wps-fork-t6x
pkgver=1.6.5
pkgrel=0
pkgdesc="Community forked version of reaver, the WPS password cracker"
url="https://github.com/t6x/reaver-wps-fork-t6x"
arch="all !s390x" # aircrack-ng disabled for s390x
license="GPL-2.0-only"
options="!check" #upstream does not provide check
depends="aircrack-ng pixiewps sqlite"
makedepends="libpcap-dev linux-headers sqlite-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/t6x/$pkgname/archive/v$pkgver.tar.gz"

build() {
	cd "$builddir"/src
	./configure \
		--prefix=/usr \
		--bindir=/usr/bin \
		--sbindir=/usr/sbin \
		--localstatedir=/var \
		--sysconfdir=/etc
	make
}

package() {
	cd "$builddir"/src
	mkdir -p "$pkgdir"/etc/reaver
	make DESTDIR="$pkgdir" install
	chmod 750 "$pkgdir"/etc/reaver
}

sha512sums="3e70d9fffefee3f6d60e72d7d7b1da91032e184c7d27f94b9f26e2260b7274d491f2e41f8056b386a211b9838d21afc6b65a8a826d310b51fc1065fa9e135dc0  reaver-wps-fork-t6x-1.6.5.tar.gz"