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.

112 lines
3.1 KiB

  1. #
  2. # Copyright (C) 2006-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:=aircrack-ng
  9. PKG_VERSION:=1.5.2
  10. PKG_RELEASE:=1
  11. PKG_LICENSE:=GPL-2.0
  12. PKG_LICENSE_FILES:=LICENSE
  13. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  14. PKG_SOURCE_URL:=https://codeload.github.com/aircrack-ng/aircrack-ng/tar.gz/$(PKG_VERSION)?
  15. PKG_HASH:=7e03f9828495a3a1a781ad79e41805971bf7347c092df852820232bca866a19b
  16. PKG_BUILD_PARALLEL:=1
  17. PKG_INSTALL:=1
  18. PKG_MAINTAINER:=Rick Farina <zerochaos@gentoo.org>
  19. PKG_FIXUP:=autoreconf
  20. PKG_CONFIG_DEPENDS:= \
  21. CONFIG_AIRCRACK_NG_GCRYPT \
  22. CONFIG_AIRCRACK_NG_OPENSSL \
  23. \
  24. CONFIG_AIRCRACK_NG_OPTIMIZE_SPEED \
  25. \
  26. CONFIG_AIRCRACK_NG_HWLOC \
  27. CONFIG_AIRCRACK_NG_SQLITE3
  28. include $(INCLUDE_DIR)/package.mk
  29. define Package/aircrack-ng
  30. SECTION:=net
  31. CATEGORY:=Network
  32. DEPENDS:=+AIRCRACK_NG_HWLOC:libhwloc +libpcap +libpcre +libpthread +libstdcpp
  33. DEPENDS += +AIRCRACK_NG_OPENSSL:libopenssl
  34. DEPENDS += +AIRCRACK_NG_GCRYPT:libgcrypt
  35. DEPENDS += +AIRCRACK_NG_SQLITE3:libsqlite3
  36. DEPENDS += +libnl-core +libnl-genl +zlib
  37. TITLE:=WLAN tools (without airmon-ng) for breaking 802.11 WEP/WPA keys
  38. URL:=https://www.aircrack-ng.org/
  39. SUBMENU:=wireless
  40. endef
  41. define Package/aircrack-ng/description
  42. WLAN tools for breaking 802.11 WEP/WPA keys
  43. endef
  44. define Package/aircrack-ng/config
  45. source "$(SOURCE)/Config.in"
  46. endef
  47. define Package/airmon-ng
  48. SECTION:=net
  49. CATEGORY:=Network
  50. DEPENDS:=+wireless-tools +ethtool +procps-ng +CONFIG_PCI_SUPPORT:pciutils +CONFIG_USB_SUPPORT:usbutils
  51. TITLE:=Bash script designed to turn wireless cards into monitor mode.
  52. URL:=http://www.aircrack-ng.org/
  53. SUBMENU:=wireless
  54. endef
  55. define Package/airmon-ng/description
  56. Bash script designed to turn wireless cards into monitor mode.
  57. endef
  58. CONFIGURE_ARGS += \
  59. --disable-silent-rules \
  60. --enable-shared \
  61. --with-experimental \
  62. --with-libpcap-include=$(STAGING_DIR)/usr/include \
  63. --with-libpcap-lib=$(STAGING_DIR)/usr/lib \
  64. --without-opt \
  65. \
  66. PYTHON=$(PYTHON) \
  67. \
  68. $(if $(CONFIG_AIRCRACK_NG_OPENSSL),--with-openssl,--without-openssl) \
  69. $(if $(CONFIG_AIRCRACK_NG_GCRYPT),--with-gcrypt,--without-gcrypt) \
  70. $(if $(CONFIG_AIRCRACK_NG_HWLOC),--enable-hwloc,--disable-hwloc) \
  71. $(if $(CONFIG_AIRCRACK_NG_SQLITE3),--with-sqlite3,--without-sqlite3)
  72. TARGET_CFLAGS += -Wall -Wextra -ffunction-sections -fdata-sections
  73. ifeq ($(CONFIG_AIRCRACK_NG_OPTIMIZE_SPEED),y)
  74. TARGET_CFLAGS := $(filter-out -O%,$(TARGET_CFLAGS)) -O3
  75. endif
  76. TARGET_LDFLAGS+= \
  77. -Wl,--gc-sections
  78. define Package/aircrack-ng/install
  79. $(INSTALL_DIR) $(1)/usr/bin
  80. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
  81. $(INSTALL_DIR) $(1)/usr/sbin
  82. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/* $(1)/usr/sbin/
  83. $(INSTALL_DIR) $(1)/usr/lib
  84. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
  85. rm -f $(1)/usr/sbin/airmon-ng
  86. endef
  87. define Package/airmon-ng/install
  88. $(INSTALL_DIR) $(1)/usr/sbin
  89. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/airmon-ng $(1)/usr/sbin/
  90. endef
  91. $(eval $(call BuildPackage,aircrack-ng))
  92. $(eval $(call BuildPackage,airmon-ng))