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

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="52cb45a4ca716cb4b961820094cb9c13cdebd68471ee04db3b02b8e8f6217dcb64ca6236294e1a2235b338d909770b5449a89a2321d39c9e2c05e0a51e45ada2  reaver-wps-fork-t6x-1.6.4.tar.gz
1545910bcfcb4c1b920615af70fc2384c9722407edd946789c6103d0c6813a0433d14e75a94acf3b153a4e8cad157ab4f2d440bb6e9763797bba7788a35cfb9d  0100-Include-sys-types.h-for-definition-of-u_char.patch"