2017-01-07 20:09:00 +01:00
|
|
|
# Template file for 'reaver'
|
|
|
|
pkgname=reaver
|
|
|
|
version=1.4
|
2017-01-09 01:01:17 +01:00
|
|
|
revision=2
|
2017-01-07 20:09:00 +01:00
|
|
|
build_style=gnu-configure
|
|
|
|
build_wrksrc="src"
|
|
|
|
conf_files="/etc/reaver/reaver.db"
|
|
|
|
makedepends="libpcap-devel sqlite-devel"
|
|
|
|
short_desc="Brute force attack tool against Wifi Protected Setup (WPS)"
|
|
|
|
maintainer="cipr3s <cipr3s@gmx.com>"
|
|
|
|
license="GPL-2"
|
|
|
|
homepage="https://code.google.com/archive/p/reaver-wps/"
|
|
|
|
distfiles="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/reaver-wps/${pkgname}-${version}.tar.gz"
|
|
|
|
checksum="add3050a4a05fe0ab6bfb291ee2de8e9b8a85f1e64ced93ee27a75744954b22d"
|
|
|
|
|
|
|
|
post_extract() {
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
2017-01-09 01:01:17 +01:00
|
|
|
*-musl) find -type f -exec sed -i "{}" -e"s;u_char;unsigned char;g" \;
|
2017-01-07 20:09:00 +01:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
|
|
|
# The Makefile's install target is broken (ignores destdir)
|
|
|
|
vmkdir etc/${pkgname}
|
|
|
|
vinstall ${pkgname}.db 644 etc/${pkgname}
|
|
|
|
vbin wash
|
|
|
|
vbin reaver
|
|
|
|
}
|