2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-02-18 09:49:45 +01:00
|
|
|
#
|
2013-06-06 01:53:28 +02:00
|
|
|
# aircrack-ng
|
2013-02-18 09:49:45 +01:00
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-02-18 09:49:45 +01:00
|
|
|
|
2017-04-21 16:12:33 +02:00
|
|
|
AIRCRACK_NG_VERSION = 1.2-rc4
|
2013-02-18 09:49:45 +01:00
|
|
|
AIRCRACK_NG_SITE = http://download.aircrack-ng.org
|
2017-03-30 15:43:32 +02:00
|
|
|
AIRCRACK_NG_LICENSE = GPL-2.0+
|
2013-02-18 09:49:45 +01:00
|
|
|
AIRCRACK_NG_LICENSE_FILES = LICENSE
|
2014-11-11 22:17:11 +01:00
|
|
|
AIRCRACK_NG_DEPENDENCIES = openssl zlib host-pkgconf
|
|
|
|
# Enable buddy-ng, easside-ng, tkiptun-ng, wesside-ng
|
|
|
|
AIRCRACK_NG_MAKE_OPTS = unstable=true
|
2013-02-18 09:49:45 +01:00
|
|
|
|
2014-11-11 22:17:11 +01:00
|
|
|
# Account for libpthread in static
|
|
|
|
AIRCRACK_NG_LDFLAGS = $(TARGET_LDFLAGS) \
|
2014-12-03 22:41:29 +01:00
|
|
|
$(if $(BR2_STATIC_LIBS),-lpthread -lz)
|
2013-02-18 09:49:45 +01:00
|
|
|
|
2014-11-11 22:17:11 +01:00
|
|
|
# libnl support has issues when building static
|
2014-12-03 22:41:29 +01:00
|
|
|
ifeq ($(BR2_STATIC_LIBS),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
AIRCRACK_NG_MAKE_OPTS += libnl=false
|
2013-02-18 09:49:45 +01:00
|
|
|
else
|
2015-03-31 09:21:57 +02:00
|
|
|
AIRCRACK_NG_MAKE_OPTS += libnl=true
|
|
|
|
AIRCRACK_NG_DEPENDENCIES += libnl
|
2013-02-18 09:49:45 +01:00
|
|
|
endif
|
|
|
|
|
2017-04-21 16:12:33 +02:00
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_SSP),y)
|
|
|
|
AIRCRACK_NG_MAKE_OPTS += STACK_PROTECTOR=true
|
|
|
|
else
|
|
|
|
AIRCRACK_NG_MAKE_OPTS += STACK_PROTECTOR=false
|
|
|
|
endif
|
|
|
|
|
2014-11-11 22:17:11 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBPCAP),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
AIRCRACK_NG_DEPENDENCIES += libpcap
|
|
|
|
AIRCRACK_NG_MAKE_OPTS += HAVE_PCAP=yes \
|
2015-07-12 16:35:26 +02:00
|
|
|
$(if $(BR2_STATIC_LIBS),LIBPCAP="-lpcap `$(STAGING_DIR)/usr/bin/pcap-config --static --additional-libs`")
|
2014-11-11 22:17:11 +01:00
|
|
|
else
|
2015-03-31 09:21:57 +02:00
|
|
|
AIRCRACK_NG_MAKE_OPTS += HAVE_PCAP=no
|
2014-11-11 22:17:11 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_PCRE),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
AIRCRACK_NG_DEPENDENCIES += pcre
|
|
|
|
AIRCRACK_NG_MAKE_OPTS += pcre=true
|
2014-11-11 22:17:11 +01:00
|
|
|
else
|
2015-03-31 09:21:57 +02:00
|
|
|
AIRCRACK_NG_MAKE_OPTS += pcre=false
|
2014-11-11 22:17:11 +01:00
|
|
|
endif
|
|
|
|
|
2014-11-16 16:15:10 +01:00
|
|
|
# Duplicate -lpthread, because it is also needed by sqlite
|
2014-11-11 22:17:11 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_SQLITE),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
AIRCRACK_NG_DEPENDENCIES += sqlite
|
|
|
|
AIRCRACK_NG_MAKE_OPTS += sqlite=true LIBSQL="-lsqlite3 $(if $(BR2_STATIC_LIBS),-lpthread)"
|
2014-11-11 22:17:11 +01:00
|
|
|
else
|
2015-03-31 09:21:57 +02:00
|
|
|
AIRCRACK_NG_MAKE_OPTS += sqlite=false
|
2014-11-11 22:17:11 +01:00
|
|
|
endif
|
2013-05-15 00:26:50 +02:00
|
|
|
|
2017-04-27 13:30:14 +02:00
|
|
|
ifeq ($(BR2_X86_CPU_HAS_SSE),y)
|
|
|
|
AIRCRACK_NG_MAKE_OPTS += NEWSSE=true
|
|
|
|
else
|
|
|
|
AIRCRACK_NG_MAKE_OPTS += NEWSSE=false
|
|
|
|
endif
|
|
|
|
|
2013-02-18 09:49:45 +01:00
|
|
|
define AIRCRACK_NG_BUILD_CMDS
|
2014-11-11 22:17:11 +01:00
|
|
|
$(TARGET_CONFIGURE_OPTS) LDFLAGS="$(AIRCRACK_NG_LDFLAGS)" \
|
|
|
|
$(MAKE) -C $(@D) $(AIRCRACK_NG_MAKE_OPTS)
|
2013-02-18 09:49:45 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
define AIRCRACK_NG_INSTALL_TARGET_CMDS
|
2014-11-11 22:17:11 +01:00
|
|
|
$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) \
|
2013-05-05 07:04:25 +02:00
|
|
|
prefix=/usr $(AIRCRACK_NG_MAKE_OPTS) install
|
2013-02-18 09:49:45 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|