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
|
|
|
|
2014-11-11 22:17:11 +01:00
|
|
|
AIRCRACK_NG_VERSION = 1.2-rc1
|
2013-02-18 09:49:45 +01:00
|
|
|
AIRCRACK_NG_SITE = http://download.aircrack-ng.org
|
|
|
|
AIRCRACK_NG_LICENSE = GPLv2+
|
|
|
|
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)
|
2014-11-11 22:17:11 +01:00
|
|
|
AIRCRACK_NG_MAKE_OPTS += libnl=false
|
2013-02-18 09:49:45 +01:00
|
|
|
else
|
2014-11-11 22:17:11 +01:00
|
|
|
AIRCRACK_NG_MAKE_OPTS += libnl=true
|
|
|
|
AIRCRACK_NG_DEPENDENCIES += libnl
|
2013-02-18 09:49:45 +01:00
|
|
|
endif
|
|
|
|
|
2014-11-11 22:17:11 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBPCAP),y)
|
|
|
|
AIRCRACK_NG_DEPENDENCIES += libpcap
|
|
|
|
AIRCRACK_NG_MAKE_OPTS += HAVE_PCAP=yes \
|
2014-12-03 22:41:29 +01:00
|
|
|
$(if $(BR2_STATIC_LIBS),LIBPCAP="-lpcap $(shell $(STAGING_DIR)/usr/bin/pcap-config --static --additional-libs)")
|
2014-11-11 22:17:11 +01:00
|
|
|
else
|
|
|
|
AIRCRACK_NG_MAKE_OPTS += HAVE_PCAP=no
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_PCRE),y)
|
|
|
|
AIRCRACK_NG_DEPENDENCIES += pcre
|
|
|
|
AIRCRACK_NG_MAKE_OPTS += pcre=true
|
|
|
|
else
|
|
|
|
AIRCRACK_NG_MAKE_OPTS += pcre=false
|
|
|
|
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)
|
|
|
|
AIRCRACK_NG_DEPENDENCIES += sqlite
|
2014-12-03 22:41:29 +01:00
|
|
|
AIRCRACK_NG_MAKE_OPTS += sqlite=true LIBSQL="-lsqlite3 $(if $(BR2_STATIC_LIBS),-lpthread)"
|
2014-11-11 22:17:11 +01:00
|
|
|
else
|
|
|
|
AIRCRACK_NG_MAKE_OPTS += sqlite=false
|
|
|
|
endif
|
2013-05-15 00:26:50 +02:00
|
|
|
|
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))
|