bandwidthd: moved to github
[packages.git] / net / reaver / Makefile
1 #
2 # Copyright (C) 2012 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=reaver
11 PKG_REV:=113
12 PKG_VERSION:=r$(PKG_REV)
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://reaver-wps.googlecode.com/svn/trunk
17 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
18 PKG_SOURCE_VERSION:=$(PKG_REV)
19 PKG_SOURCE_PROTO:=svn
20
21 include $(INCLUDE_DIR)/package.mk
22
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
32 define Package/reaver/description
33   Reaver targets the external registrar functionality mandated by the WiFi
34   Protected Setup specification.
35   Access points will provide authenticated registrars with their current
36   wireless configuration (including the WPA PSK), and also accept a new
37   configuration from the registrar.
38 endef
39
40 CONFIGURE_PATH:=src
41
42 MAKE_PATH:=src
43
44 TARGET_CFLAGS+=$(TARGET_CPPFLAGS)
45
46 define Package/reaver/install
47         $(INSTALL_DIR) $(1)/usr/bin
48         $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/{reaver,wash} $(1)/usr/bin/
49         $(INSTALL_DIR) $(1)/etc/reaver
50         $(INSTALL_DATA) $(PKG_BUILD_DIR)/src/reaver.db $(1)/etc/reaver/
51 endef
52
53 $(eval $(call BuildPackage,reaver))