Merge pull request #5485 from cipr3s/reaver

New package: reaver-1.4
This commit is contained in:
Jürgen Buchmüller 2017-01-09 00:50:43 +01:00 committed by GitHub
commit 0ba5258d65
4 changed files with 108 additions and 0 deletions

View File

@ -0,0 +1,8 @@
--- src/libwps/Makefile.orig 2017-01-07 19:45:12.126774214 +0100
+++ src/libwps/Makefile 2017-01-08 18:17:11.095493475 +0100
@@ -1,5 +1,3 @@
-CC=gcc
-CFLAGS=-Wall
libwps.o:
$(CC) $(CFLAGS) libwps.c -c

View File

@ -0,0 +1,24 @@
--- src/lwe/Makefile.orig 2017-01-08 13:59:36.306546961 +0100
+++ src/lwe/Makefile 2017-01-08 14:04:01.681546043 +0100
@@ -8,12 +8,6 @@
PREFIX = /usr/local
endif
-## Compiler to use (modify this for cross compile).
-CC = gcc
-## Other tools you need to modify for cross compile (static lib only).
-AR = ar
-RANLIB = ranlib
-
## Uncomment this to build tools using static version of the library.
## Mostly useful for embedded platforms without ldd, or to create
## a local version (non-root).
@@ -151,7 +145,7 @@
$(STATIC): $(OBJS:.o=.so)
$(RM) $@
$(AR) cru $@ $^
- $(RANLIB) $@
+ $(AR) s $@
# Installation : So crude but so effective ;-)
# Less crude thanks to many contributions ;-)

View File

@ -0,0 +1,46 @@
--- src/wps/Makefile.orig 2017-01-07 19:43:44.617774517 +0100
+++ src/wps/Makefile 2017-01-08 18:18:15.866493251 +0100
@@ -1,34 +1,33 @@
-CC=gcc
INC=-I../utils -I ../
all: wps_attr_build.o wps_attr_parse.o wps_attr_process.o wps.o wps_common.o wps_dev_attr.o wps_enrollee.o wps_registrar.o wps_ufd.o
wps_attr_build.o:
- $(CC) $(INC) wps_attr_build.c -c
+ $(CC) $(CFLAGS) $(INC) wps_attr_build.c -c
wps_attr_parse.o:
- $(CC) $(INC) wps_attr_parse.c -c
+ $(CC) $(CFLAGS) $(INC) wps_attr_parse.c -c
wps_attr_process.o:
- $(CC) $(INC) wps_attr_process.c -c
+ $(CC) $(CFLAGS) $(INC) wps_attr_process.c -c
wps.o:
- $(CC) $(INC) wps.c -c
+ $(CC) $(CFLAGS) $(INC) wps.c -c
wps_common.o:
- $(CC) $(INC) wps_common.c -c
+ $(CC) $(CFLAGS) $(INC) wps_common.c -c
wps_dev_attr.o:
- $(CC) $(INC) wps_dev_attr.c -c
+ $(CC) $(CFLAGS) $(INC) wps_dev_attr.c -c
wps_enrollee.o:
- $(CC) $(INC) wps_enrollee.c -c
+ $(CC) $(CFLAGS) $(INC) wps_enrollee.c -c
wps_registrar.o:
- $(CC) $(INC) wps_registrar.c -c
+ $(CC) $(CFLAGS) $(INC) wps_registrar.c -c
wps_ufd.o:
- $(CC) $(INC) wps_ufd.c -c
+ $(CC) $(CFLAGS) $(INC) wps_ufd.c -c
clean:
rm -f *.o

30
srcpkgs/reaver/template Normal file
View File

@ -0,0 +1,30 @@
# Template file for 'reaver'
pkgname=reaver
version=1.4
revision=1
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
*-musl)
find -type f -exec sed -i "{}" -e"s;u_char;unsigned char;g" \;
;;
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
}