Makefile 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include $(ADK_TOPDIR)/rules.mk
  4. PKG_NAME:= aircrack-ng
  5. PKG_VERSION:= 1.1
  6. PKG_RELEASE:= 2
  7. PKG_HASH:= b136b549b7d2a2751c21793100075ea43b28de9af4c1969508bb95bcc92224ad
  8. PKG_DESCR:= set of tools for auditing wireless networks
  9. PKG_SECTION:= net/wifi
  10. PKG_DEPENDS:= libpthread libpcap
  11. PKG_BUILDDEP:= libpcap
  12. PKG_URL:= http://www.aircrack-ng.org/
  13. PKG_SITES:= http://download.aircrack-ng.org/
  14. # do not build parallel, otherwise libosdep.a may not be ready when compiling airtun-ng
  15. PKG_NOPARALLEL:= 1
  16. PKG_CHOICES_AIRCRACK_NG:= WITHOUT_SSL WITH_LIBRESSL WITH_OPENSSL
  17. PKGCD_WITHOUT_SSL:= use no ssl
  18. PKGCD_WITH_LIBRESSL:= use libressl for crypto
  19. PKGCB_WITH_LIBRESSL:= libressl
  20. PKGCS_WITH_LIBRESSL:= libressl ca-certificates
  21. PKGCD_WITH_OPENSSL:= use openssl for crypto
  22. PKGCB_WITH_OPENSSL:= openssl
  23. PKGCS_WITH_OPENSSL:= libopenssl ca-certificates
  24. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  25. include $(ADK_TOPDIR)/mk/package.mk
  26. $(eval $(call PKG_template,AIRCRACK_NG,${PKG_NAME},$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  27. CONFIG_STYLE:= manual
  28. XAKE_FLAGS+= CC="$(TARGET_CC)" TOOL_PREFIX="$(TARGET_CROSS)" \
  29. CFLAGS="$(TARGET_CFLAGS) -Wall" \
  30. OSNAME="Linux" prefix="/usr"
  31. aircrack-ng-install:
  32. $(INSTALL_DIR) $(IDIR_AIRCRACK_NG)/usr/bin
  33. $(INSTALL_DIR) $(IDIR_AIRCRACK_NG)/usr/sbin
  34. $(INSTALL_BIN) $(WRKINST)/usr/bin/aircrack-ng \
  35. $(IDIR_AIRCRACK_NG)/usr/bin/
  36. $(INSTALL_BIN) $(WRKINST)/usr/bin/airdecap-ng \
  37. $(IDIR_AIRCRACK_NG)/usr/bin/
  38. $(INSTALL_BIN) $(WRKINST)/usr/bin/packetforge-ng \
  39. $(IDIR_AIRCRACK_NG)/usr/bin/
  40. $(INSTALL_BIN) $(WRKINST)/usr/sbin/aireplay-ng \
  41. $(IDIR_AIRCRACK_NG)/usr/sbin/
  42. $(INSTALL_BIN) $(WRKINST)/usr/sbin/airodump-ng \
  43. $(IDIR_AIRCRACK_NG)/usr/sbin/
  44. $(INSTALL_BIN) $(WRKINST)/usr/sbin/airtun-ng \
  45. $(IDIR_AIRCRACK_NG)/usr/sbin/
  46. include ${ADK_TOPDIR}/mk/pkg-bottom.mk