You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
1.5 KiB

  1. #
  2. # Copyright (C) 2012-2015 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=reaver
  9. PKG_VERSION:=1.4
  10. PKG_RELEASE:=3
  11. PKG_MAINTAINER:=Yousong Zhou <yszhou4tech@gmail.com>
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  13. PKG_SOURCE_URL:=https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/reaver-wps
  14. PKG_MD5SUM:=05441dda7bacfcbe1e831c85d1ea3bc9
  15. PKG_LICENSE:=GPL-2.0
  16. PKG_USE_MIPS16:=0
  17. PKG_AUTOMAKE_PATHS:=src
  18. PKG_FIXUP:=autoreconf
  19. include $(INCLUDE_DIR)/package.mk
  20. CONFIGURE_PATH:=src
  21. MAKE_PATH:=src
  22. EXTRA_CFLAGS=$(TARGET_CPPFLAGS)
  23. define Package/reaver
  24. SECTION:=net
  25. CATEGORY:=Network
  26. SUBMENU:=wireless
  27. TITLE:=Efficient brute force attack against Wifi Protected Setup
  28. URL:=https://code.google.com/p/reaver-wps/
  29. DEPENDS:=+libpcap +libsqlite3
  30. endef
  31. define Package/reaver/description
  32. Reaver targets the external registrar functionality mandated by the WiFi
  33. Protected Setup specification.
  34. Access points will provide authenticated registrars with their current
  35. wireless configuration (including the WPA PSK), and also accept a new
  36. configuration from the registrar.
  37. endef
  38. define Package/reaver/install
  39. $(INSTALL_DIR) $(1)/usr/bin
  40. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/{reaver,wash} $(1)/usr/bin/
  41. $(INSTALL_DIR) $(1)/etc/reaver
  42. $(INSTALL_DATA) $(PKG_BUILD_DIR)/src/reaver.db $(1)/etc/reaver/
  43. endef
  44. $(eval $(call BuildPackage,reaver))