Merge pull request #9785 from thess/libv4l-update
[feed/packages.git] / net / pixiewps / Makefile
1 # Copyright (C) 2017-2018 Yousong Zhou
2 #
3 # This is free software, licensed under the GNU General Public License v2.
4 # See /LICENSE for more information.
5 #
6 include $(TOPDIR)/rules.mk
7
8 PKG_NAME:=pixiewps
9 PKG_VERSION:=1.4.2
10 PKG_RELEASE:=2
11 PKG_MAINTAINER:=Yousong Zhou <yszhou4tech@gmail.com>
12
13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
14 PKG_SOURCE_URL:=https://github.com/wiire-a/pixiewps/releases/download/v$(PKG_VERSION)
15 PKG_HASH:=c4dc0569e476ebdbd85992da2d1ff799db97ed0040da9dc44e13d08a97a9de1e
16
17 PKG_LICENSE:=GPL-3.0
18 PKG_LICENSE_FILES:=LICENSE.md
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/pixiewps
23 SECTION:=net
24 CATEGORY:=Network
25 SUBMENU:=Wireless
26 TITLE:=An offline WPS bruteforce utility
27 URL:=https://github.com/wiire-a/pixiewps
28 DEPENDS:=+libpthread
29 endef
30
31 define Package/pixiewps/description
32 Pixiewps is a tool written in C used to bruteforce offline the WPS PIN
33 exploiting the low or non-existing entropy of some Access Points, the so-called
34 "pixie-dust attack" discovered by Dominique Bongard in summer 2014. It is
35 meant for educational purposes only.
36 endef
37
38 # override flags by pixiewps' own Makefile
39 MAKE_FLAGS += \
40 CFLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS)" \
41 CPPFLAGS="$(TARGET_CPPFLAGS) $(EXTRA_CPPFLAGS)" \
42 LDFLAGS="$(TARGET_LDFLAGS) $(EXTRA_LDFLAGS)" \
43
44 define Package/pixiewps/install
45 $(INSTALL_DIR) $(1)/usr/bin
46 $(INSTALL_BIN) $(PKG_BUILD_DIR)/pixiewps $(1)/usr/bin/
47 endef
48
49 $(eval $(call BuildPackage,pixiewps))