• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/aircrack-ng/aircrack-ng.mk
Baruch SiachBaruch Siach committed dc1287ee8ac27 Apr 2017
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
################################################################################
2
#
3
# aircrack-ng
4
#
5
################################################################################
6
​
7
AIRCRACK_NG_VERSION = 1.2-rc4
8
AIRCRACK_NG_SITE = http://download.aircrack-ng.org
9
AIRCRACK_NG_LICENSE = GPL-2.0+
10
AIRCRACK_NG_LICENSE_FILES = LICENSE
11
AIRCRACK_NG_DEPENDENCIES = openssl zlib host-pkgconf
12
# Enable buddy-ng, easside-ng, tkiptun-ng, wesside-ng
13
AIRCRACK_NG_MAKE_OPTS = unstable=true
14
​
15
# Account for libpthread in static
16
AIRCRACK_NG_LDFLAGS = $(TARGET_LDFLAGS) \
17
    $(if $(BR2_STATIC_LIBS),-lpthread -lz)
18
​
19
# libnl support has issues when building static
20
ifeq ($(BR2_STATIC_LIBS),y)
21
AIRCRACK_NG_MAKE_OPTS += libnl=false
22
else
23
AIRCRACK_NG_MAKE_OPTS += libnl=true
24
AIRCRACK_NG_DEPENDENCIES += libnl
25
endif
26
​
27
ifeq ($(BR2_TOOLCHAIN_HAS_SSP),y)
28
AIRCRACK_NG_MAKE_OPTS += STACK_PROTECTOR=true
29
else
30
AIRCRACK_NG_MAKE_OPTS += STACK_PROTECTOR=false
31
endif
32
​
33
ifeq ($(BR2_PACKAGE_LIBPCAP),y)
34
AIRCRACK_NG_DEPENDENCIES += libpcap
35
AIRCRACK_NG_MAKE_OPTS += HAVE_PCAP=yes \
36
    $(if $(BR2_STATIC_LIBS),LIBPCAP="-lpcap `$(STAGING_DIR)/usr/bin/pcap-config --static --additional-libs`")
37
else
38
AIRCRACK_NG_MAKE_OPTS += HAVE_PCAP=no
39
endif
40
​
41
ifeq ($(BR2_PACKAGE_PCRE),y)
42
AIRCRACK_NG_DEPENDENCIES += pcre
43
AIRCRACK_NG_MAKE_OPTS += pcre=true
44
else
45
AIRCRACK_NG_MAKE_OPTS += pcre=false
46
endif
47
​
48
# Duplicate -lpthread, because it is also needed by sqlite
49
ifeq ($(BR2_PACKAGE_SQLITE),y)
50
AIRCRACK_NG_DEPENDENCIES += sqlite
51
AIRCRACK_NG_MAKE_OPTS += sqlite=true LIBSQL="-lsqlite3 $(if $(BR2_STATIC_LIBS),-lpthread)"
52
else
53
AIRCRACK_NG_MAKE_OPTS += sqlite=false
54
endif
55
​
56
ifeq ($(BR2_X86_CPU_HAS_SSE),y)
57
AIRCRACK_NG_MAKE_OPTS += NEWSSE=true
58
else
59
AIRCRACK_NG_MAKE_OPTS += NEWSSE=false
60
endif
61
​
62
define AIRCRACK_NG_BUILD_CMDS
63
    $(TARGET_CONFIGURE_OPTS) LDFLAGS="$(AIRCRACK_NG_LDFLAGS)" \
64
        $(MAKE) -C $(@D) $(AIRCRACK_NG_MAKE_OPTS)
65
endef
66
​
67
define AIRCRACK_NG_INSTALL_TARGET_CMDS
68
    $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) \
69
        prefix=/usr $(AIRCRACK_NG_MAKE_OPTS) install
70
endef
71
​
72
$(eval $(generic-package))
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.