initial buildroot for linux 5.15
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
From d4496006ac1e0c99908108b998ae39afb0658733 Mon Sep 17 00:00:00 2001
|
||||
From: Joseph Benden <joe@benden.us>
|
||||
Date: Tue, 7 Jul 2020 11:42:40 -0700
|
||||
Subject: [PATCH] Expand __packed definition.
|
||||
|
||||
Signed-off-by: Joseph Benden <joe@benden.us>
|
||||
[Retrieved from:
|
||||
https://github.com/aircrack-ng/aircrack-ng/commit/d4496006ac1e0c99908108b998ae39afb0658733]
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
---
|
||||
lib/radiotap/radiotap.h | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/lib/radiotap/radiotap.h b/lib/radiotap/radiotap.h
|
||||
index 57f784b8d..bb5a41dfc 100644
|
||||
--- a/lib/radiotap/radiotap.h
|
||||
+++ b/lib/radiotap/radiotap.h
|
||||
@@ -56,7 +56,7 @@ struct ieee80211_radiotap_header {
|
||||
* @it_present: (first) present word
|
||||
*/
|
||||
uint32_t it_present;
|
||||
-} __packed;
|
||||
+} __attribute__((__packed__));
|
||||
|
||||
/* version is always 0 */
|
||||
#define PKTHDR_RADIOTAP_VERSION 0
|
||||
@@ -0,0 +1,74 @@
|
||||
From f6f1396807607f5649d20631db517cfca3a1f5c4 Mon Sep 17 00:00:00 2001
|
||||
From: Joseph Benden <joe@benden.us>
|
||||
Date: Tue, 7 Jul 2020 11:44:40 -0700
|
||||
Subject: [PATCH] Fix duplicated symbols.
|
||||
|
||||
Signed-off-by: Joseph Benden <joe@benden.us>
|
||||
[Retrieved from:
|
||||
https://github.com/aircrack-ng/aircrack-ng/commit/f6f1396807607f5649d20631db517cfca3a1f5c4]
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
---
|
||||
src/airodump-ng/airodump-ng.c | 2 --
|
||||
src/airventriloquist-ng/airventriloquist-ng.c | 6 +++---
|
||||
src/tkiptun-ng/tkiptun-ng.c | 4 ++--
|
||||
3 files changed, 5 insertions(+), 7 deletions(-)
|
||||
|
||||
diff --git a/src/airodump-ng/airodump-ng.c b/src/airodump-ng/airodump-ng.c
|
||||
index 3ae6994dd..e72bc88e2 100644
|
||||
--- a/src/airodump-ng/airodump-ng.c
|
||||
+++ b/src/airodump-ng/airodump-ng.c
|
||||
@@ -92,8 +92,6 @@
|
||||
#include "radiotap/radiotap_iter.h"
|
||||
|
||||
struct devices dev;
|
||||
-uint8_t h80211[4096] __attribute__((aligned(16)));
|
||||
-uint8_t tmpbuf[4096] __attribute__((aligned(16)));
|
||||
|
||||
static const unsigned char llcnull[] = {0, 0, 0, 0};
|
||||
|
||||
diff --git a/src/airventriloquist-ng/airventriloquist-ng.c b/src/airventriloquist-ng/airventriloquist-ng.c
|
||||
index ac6b7647e..267d95540 100644
|
||||
--- a/src/airventriloquist-ng/airventriloquist-ng.c
|
||||
+++ b/src/airventriloquist-ng/airventriloquist-ng.c
|
||||
@@ -173,7 +173,7 @@ static struct local_options
|
||||
} lopt;
|
||||
|
||||
struct devices dev;
|
||||
-struct wif *_wi_in, *_wi_out;
|
||||
+extern struct wif *_wi_in, *_wi_out;
|
||||
|
||||
struct ARP_req
|
||||
{
|
||||
@@ -195,8 +195,8 @@ struct APt
|
||||
};
|
||||
|
||||
unsigned long nb_pkt_sent;
|
||||
-u_int8_t h80211[4096];
|
||||
-static u_int8_t tmpbuf[4096];
|
||||
+extern u_int8_t h80211[4096];
|
||||
+extern u_int8_t tmpbuf[4096];
|
||||
|
||||
static int tcp_test(const char * ip_str, const short port)
|
||||
{
|
||||
diff --git a/src/tkiptun-ng/tkiptun-ng.c b/src/tkiptun-ng/tkiptun-ng.c
|
||||
index dc67f5d58..43db0bc23 100644
|
||||
--- a/src/tkiptun-ng/tkiptun-ng.c
|
||||
+++ b/src/tkiptun-ng/tkiptun-ng.c
|
||||
@@ -267,7 +267,7 @@ static struct local_options
|
||||
|
||||
// unused, but needed for link
|
||||
struct devices dev;
|
||||
-struct wif *_wi_in, *_wi_out;
|
||||
+extern struct wif *_wi_in, *_wi_out;
|
||||
|
||||
struct ARP_req
|
||||
{
|
||||
@@ -289,7 +289,7 @@ struct APt
|
||||
};
|
||||
|
||||
unsigned long nb_pkt_sent;
|
||||
-unsigned char h80211[4096];
|
||||
+extern unsigned char h80211[4096];
|
||||
static unsigned char srcbuf[4096];
|
||||
static char strbuf[512];
|
||||
static int alarmed;
|
||||
@@ -0,0 +1,20 @@
|
||||
config BR2_PACKAGE_AIRCRACK_NG
|
||||
bool "aircrack-ng"
|
||||
depends on BR2_USE_MMU # uses fork()
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
depends on !BR2_STATIC_LIBS # dlfcn.h
|
||||
select BR2_PACKAGE_OPENSSL if !BR2_PACKAGE_LIBGCRYPT
|
||||
select BR2_PACKAGE_LIBOPENSSL_ENABLE_RC4 if BR2_PACKAGE_LIBOPENSSL
|
||||
help
|
||||
A set of tools for auditing wireless networks
|
||||
|
||||
For complete functionality, also select ethtool, iw,
|
||||
util-linux (utilities and rfkill), and wireless_tools.
|
||||
|
||||
http://www.aircrack-ng.org/
|
||||
|
||||
comment "aircrack-ng needs a toolchain w/ dynamic library, threads, C++"
|
||||
depends on BR2_USE_MMU
|
||||
depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS \
|
||||
|| !BR2_INSTALL_LIBSTDCPP
|
||||
@@ -0,0 +1,6 @@
|
||||
# From http://www.aircrack-ng.org/downloads.html
|
||||
sha1 ffeb4816476e7b329dc0c154f1aa4a30ad171beb aircrack-ng-1.6.tar.gz
|
||||
md5 22ddc85549b51ed0da0931d01ef215e5 aircrack-ng-1.6.tar.gz
|
||||
|
||||
# Hash for license file:
|
||||
sha256 fc51fd3a97223f2fd47b057202d4a6b0daaedf23b5a1f5ff8723c192fc1e021d LICENSE
|
||||
@@ -0,0 +1,77 @@
|
||||
################################################################################
|
||||
#
|
||||
# aircrack-ng
|
||||
#
|
||||
################################################################################
|
||||
|
||||
AIRCRACK_NG_VERSION = 1.6
|
||||
AIRCRACK_NG_SITE = http://download.aircrack-ng.org
|
||||
AIRCRACK_NG_LICENSE = GPL-2.0+
|
||||
AIRCRACK_NG_LICENSE_FILES = LICENSE
|
||||
AIRCRACK_NG_CPE_ID_VENDOR = aircrack-ng
|
||||
AIRCRACK_NG_DEPENDENCIES = \
|
||||
$(if $(BR2_PACKAGE_CMOCKA),cmocka) \
|
||||
$(if $(BR2_PACKAGE_LIBNL),libnl) \
|
||||
$(if $(BR2_PACKAGE_OPENSSL),openssl) \
|
||||
$(if $(BR2_PACKAGE_PCRE),pcre) \
|
||||
$(if $(BR2_PACKAGE_ZLIB),zlib) \
|
||||
host-pkgconf
|
||||
AIRCRACK_NG_AUTORECONF = YES
|
||||
# Enable buddy-ng, easside-ng, tkiptun-ng, wesside-ng
|
||||
AIRCRACK_NG_CONF_OPTS = --with-experimental
|
||||
|
||||
ifeq ($(BR2_TOOLCHAIN_HAS_SSP),y)
|
||||
AIRCRACK_NG_CONF_OPTS += --with-opt
|
||||
else
|
||||
AIRCRACK_NG_CONF_OPTS += --without-opt
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_DUMA),y)
|
||||
AIRCRACK_NG_DEPENDENCIES += duma
|
||||
AIRCRACK_NG_CONF_OPTS += --with-duma
|
||||
else
|
||||
AIRCRACK_NG_CONF_OPTS += --without-duma
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_HWLOC),y)
|
||||
AIRCRACK_NG_DEPENDENCIES += hwloc
|
||||
AIRCRACK_NG_CONF_OPTS += --enable-hwloc
|
||||
else
|
||||
AIRCRACK_NG_CONF_OPTS += --disable-hwloc
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_JEMALLOC),y)
|
||||
AIRCRACK_NG_DEPENDENCIES += jemalloc
|
||||
AIRCRACK_NG_CONF_OPTS += --with-jemalloc
|
||||
else
|
||||
AIRCRACK_NG_CONF_OPTS += --without-jemalloc
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBGCRYPT),y)
|
||||
AIRCRACK_NG_DEPENDENCIES += libgcrypt
|
||||
AIRCRACK_NG_CONF_OPTS += \
|
||||
--with-gcrypt \
|
||||
--with-libgcrypt-prefix=$(STAGING_DIR)/usr
|
||||
else
|
||||
AIRCRACK_NG_CONF_OPTS += --without-gcrypt
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBPCAP),y)
|
||||
AIRCRACK_NG_DEPENDENCIES += libpcap
|
||||
AIRCRACK_NG_CONF_OPTS += \
|
||||
--with-libpcap-include=$(STAGING_DIR)/usr/include \
|
||||
--with-libpcap-lib=$(STAGING_DIR)/usr/lib
|
||||
ifeq ($(BR2_STATIC_LIBS),y)
|
||||
AIRCRACK_NG_CONF_ENV += \
|
||||
LIBS="`$(STAGING_DIR)/usr/bin/pcap-config --static --additional-libs`"
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SQLITE),y)
|
||||
AIRCRACK_NG_DEPENDENCIES += sqlite
|
||||
AIRCRACK_NG_CONF_OPTS += --with-sqlite3
|
||||
else
|
||||
AIRCRACK_NG_CONF_OPTS += --without-sqlite3
|
||||
endif
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user