-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Update copyright year. - Add PKG_LICENSE:=GPL-2.0 from the Google Code project page. - Add autoreconf as the PKG_FIXUP method. - Add myself as the package maintainer. - Add a patch to fix building with musl-libc. Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
- Loading branch information
Showing
5 changed files
with
738 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# | ||
# Copyright (C) 2012-2015 OpenWrt.org | ||
# | ||
# This is free software, licensed under the GNU General Public License v2. | ||
# See /LICENSE for more information. | ||
# | ||
|
||
include $(TOPDIR)/rules.mk | ||
|
||
PKG_NAME:=reaver | ||
PKG_REV:=113 | ||
PKG_VERSION:=r$(PKG_REV) | ||
PKG_RELEASE:=1 | ||
PKG_MAINTAINER:=Yousong Zhou <yszhou4tech@gmail.com> | ||
|
||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz | ||
PKG_SOURCE_URL:=http://reaver-wps.googlecode.com/svn/trunk | ||
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) | ||
PKG_SOURCE_VERSION:=$(PKG_REV) | ||
PKG_SOURCE_PROTO:=svn | ||
PKG_LICENSE:=GPL-2.0 | ||
|
||
PKG_AUTOMAKE_PATHS:=src | ||
PKG_FIXUP:=autoreconf | ||
|
||
include $(INCLUDE_DIR)/package.mk | ||
|
||
CONFIGURE_PATH:=src | ||
MAKE_PATH:=src | ||
|
||
define Package/reaver | ||
SECTION:=net | ||
CATEGORY:=Network | ||
SUBMENU:=wireless | ||
TITLE:=Efficient brute force attack against Wifi Protected Setup | ||
URL:=https://code.google.com/p/reaver-wps/ | ||
DEPENDS:=+libpcap +libsqlite3 | ||
endef | ||
|
||
define Package/reaver/description | ||
Reaver targets the external registrar functionality mandated by the WiFi | ||
Protected Setup specification. | ||
Access points will provide authenticated registrars with their current | ||
wireless configuration (including the WPA PSK), and also accept a new | ||
configuration from the registrar. | ||
endef | ||
|
||
define Package/reaver/install | ||
$(INSTALL_DIR) $(1)/usr/bin | ||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/{reaver,wash} $(1)/usr/bin/ | ||
$(INSTALL_DIR) $(1)/etc/reaver | ||
$(INSTALL_DATA) $(PKG_BUILD_DIR)/src/reaver.db $(1)/etc/reaver/ | ||
endef | ||
|
||
$(eval $(call BuildPackage,reaver)) |
Oops, something went wrong.
1e29676
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Build seems to fail for mips platforms, e.g. ar71xx, lantiq etc.
The reason looks like a mips16 incompatibility. You might need to disable MIPS16 for the package.
E.g.
http://buildbot.openwrt.org:8010/broken_packages/lantiq/reaver/compile.txt
http://buildbot.openwrt.org:8010/broken_packages/ar71xx/reaver/compile.txt
1e29676
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. The issue was also reproduced on my build environment. I will disable MIPS16 for this package.
P.S. is it possible that this is a toolchain bug?
1e29676
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just for the record, the following was emitted by gcc with
-S
flag.1e29676
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Turns out that this issue was not triggered on QEMU Malta Little Endian because those
wsbh
was not used when calling__cpu_to_le16()
.