summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Murray <scott.murray@konsulko.com>2026-04-26 03:31:23 +0300
committerScott Murray <scott.murray@konsulko.com>2026-04-27 21:47:27 +0300
commit1792ae2762fc869e2762da670bb7793527dc9c89 (patch)
tree2b087c32c9b0403abf5f97b2da0bbfbac4b7c25a
parentcd05fe69928631eee79d4795b1b7036adfef8251 (diff)
downloadmeta-security-1792ae2762fc869e2762da670bb7793527dc9c89.tar.gz
aircrack-ng: Upgrade to 1.7
Upgrade to the latest release, 1.7, and rework recipe so that it actually builds again. Note that the extra scripts are no longer installed by default as they seem somewhat stale and likely further work is required to have any of them work. A PACKAGECONFIG option, "ext-scripts" has been added to enable installing them if they are required for some reason. Signed-off-by: Scott Murray <scott.murray@konsulko.com>
-rw-r--r--recipes-security/aircrack-ng/aircrack-ng/0001-Remove-build-directory-reference.patch79
-rw-r--r--recipes-security/aircrack-ng/aircrack-ng_1.6.bb36
-rw-r--r--recipes-security/aircrack-ng/aircrack-ng_1.7.bb54
3 files changed, 133 insertions, 36 deletions
diff --git a/recipes-security/aircrack-ng/aircrack-ng/0001-Remove-build-directory-reference.patch b/recipes-security/aircrack-ng/aircrack-ng/0001-Remove-build-directory-reference.patch
new file mode 100644
index 0000000..335a420
--- /dev/null
+++ b/recipes-security/aircrack-ng/aircrack-ng/0001-Remove-build-directory-reference.patch
@@ -0,0 +1,79 @@
1From 3101dcd56c19112c6b6e4378886cdfdae7001304 Mon Sep 17 00:00:00 2001
2From: Scott Murray <scott.murray@konsulko.com>
3Date: Sun, 26 Apr 2026 02:10:06 +0300
4Subject: [PATCH] Remove build directory reference
5
6Remove logic in crypto engine loader code that tries to detect
7running inside a build tree to remove the resulting reference
8to the absolute build directoy path in the binary.
9
10Upstream-Status: Inappropriate [OE-specific]
11Signed-off-by: Scott Murray <scott.murray@konsulko.com>
12---
13 lib/libac/support/crypto_engine_loader.c | 40 +++++-------------------
14 1 file changed, 7 insertions(+), 33 deletions(-)
15
16diff --git a/lib/libac/support/crypto_engine_loader.c b/lib/libac/support/crypto_engine_loader.c
17index 0ec02e7..f9f9cfd 100644
18--- a/lib/libac/support/crypto_engine_loader.c
19+++ b/lib/libac/support/crypto_engine_loader.c
20@@ -251,26 +251,13 @@ EXPORT int ac_crypto_engine_loader_get_available(void)
21 #endif
22 REQUIRE(working_directory != NULL);
23
24- if (strncmp(working_directory, ABS_TOP_BUILDDIR, strlen(ABS_TOP_BUILDDIR))
25- == 0)
26- {
27- // use development paths
28- snprintf(library_path,
29- sizeof(library_path) - 1,
30- "%s%s",
31- LIBAIRCRACK_CE_WPA_PATH,
32- LT_OBJDIR);
33- }
34- else
35- {
36 #if defined(WIN32_PORTABLE)
37- // use the current directory
38- snprintf(library_path, sizeof(library_path) - 1, working_directory);
39+ // use the current directory
40+ snprintf(library_path, sizeof(library_path) - 1, working_directory);
41 #else
42- // use installation paths
43- snprintf(library_path, sizeof(library_path) - 1, "%s", LIBDIR);
44+ // use installation paths
45+ snprintf(library_path, sizeof(library_path) - 1, "%s", LIBDIR);
46 #endif
47- }
48 free(working_directory);
49
50 // enumerate all DSOs in folder, opening, searching symbols, and testing
51@@ -353,22 +340,9 @@ EXPORT char * ac_crypto_engine_loader_best_library_for(int simd_features)
52 = get_current_working_directory(); // or the binary's path?
53 REQUIRE(working_directory != NULL);
54
55- if (strncmp(
56- working_directory, ABS_TOP_BUILDDIR, sizeof(ABS_TOP_BUILDDIR) - 1)
57- == 0)
58- {
59- // use development paths
60- snprintf(library_path,
61- sizeof(library_path) - 1,
62- "%s%s",
63- LIBAIRCRACK_CE_WPA_PATH,
64- LT_OBJDIR);
65- }
66- else
67- {
68- // use installation paths
69- snprintf(library_path, sizeof(library_path) - 1, "%s", LIBDIR);
70- }
71+ // use installation paths
72+ snprintf(library_path, sizeof(library_path) - 1, "%s", LIBDIR);
73+
74 free(working_directory);
75
76 #if defined(WIN32_PORTABLE)
77--
782.47.3
79
diff --git a/recipes-security/aircrack-ng/aircrack-ng_1.6.bb b/recipes-security/aircrack-ng/aircrack-ng_1.6.bb
deleted file mode 100644
index d3722c0..0000000
--- a/recipes-security/aircrack-ng/aircrack-ng_1.6.bb
+++ /dev/null
@@ -1,36 +0,0 @@
1SUMMARY = "Aircrack-ng is a set of tools for auditing wireless networks"
2DESCRIPTION = "Aircrack-ng is an 802.11 WEP and WPA-PSK keys cracking program that can recover keys once enough data packets have been captured. It implements the standard FMS attack along with some optimizations like KoreK attacks, as well as the PTW attack, thus making the attack much faster compared to other WEP cracking tools."
3SECTION = "security"
4LICENSE = "GPL-2.0-only"
5
6LIC_FILES_CHKSUM = "file://LICENSE;beginline=1;endline=2;md5=1fbd81241fe252ec0f5658a521ab7dd8"
7
8DEPENDS = "libnl openssl sqlite3 libpcre libpcap"
9
10SRC_URI = "http://download.aircrack-ng.org/${BP}.tar.gz"
11
12SRC_URI[md5sum] = "22ddc85549b51ed0da0931d01ef215e5"
13SRC_URI[sha256sum] = "4f0bfd486efc6ea7229f7fbc54340ff8b2094a0d73e9f617e0a39f878999a247"
14
15inherit autotools-brokensep pkgconfig
16
17PACKAGECONFIG ?= ""
18CFLAGS += " -I${S}/src/include"
19
20OEMAKE_EXTRA = "sqlite=true experimental=true pcre=true \
21 prefix=${prefix} \
22 "
23
24do_compile () {
25 make ${OEMAKE_EXTRA} TOOL_PREFIX=${TARGET_SYS}-
26}
27
28do_install () {
29 make DESTDIR=${D} ${OEMAKE_EXTRA} ext_scripts=true install
30}
31
32FILES:${PN} += "${libdir}/*.so"
33FILES_SOLIBSDEV = ""
34INSANE_SKIP:${PN} += "dev-so"
35
36RDEPENDS:${PN} = "libpcap"
diff --git a/recipes-security/aircrack-ng/aircrack-ng_1.7.bb b/recipes-security/aircrack-ng/aircrack-ng_1.7.bb
new file mode 100644
index 0000000..c2144be
--- /dev/null
+++ b/recipes-security/aircrack-ng/aircrack-ng_1.7.bb
@@ -0,0 +1,54 @@
1SUMMARY = "Aircrack-ng is a set of tools for auditing wireless networks"
2DESCRIPTION = "Aircrack-ng is an 802.11 WEP and WPA-PSK keys cracking program that can recover keys once enough data packets have been captured. It implements the standard FMS attack along with some optimizations like KoreK attacks, as well as the PTW attack, thus making the attack much faster compared to other WEP cracking tools."
3SECTION = "security"
4LICENSE = "GPL-2.0-only"
5
6LIC_FILES_CHKSUM = "file://LICENSE;beginline=1;endline=2;md5=1fbd81241fe252ec0f5658a521ab7dd8"
7
8DEPENDS = "libnl openssl libpcap"
9
10SRC_URI = "http://download.aircrack-ng.org/${BP}.tar.gz \
11 file://0001-Remove-build-directory-reference.patch \
12"
13SRC_URI[sha256sum] = "05a704e3c8f7792a17315080a21214a4448fd2452c1b0dd5226a3a55f90b58c3"
14
15inherit autotools-brokensep pkgconfig python3targetconfig
16
17PACKAGECONFIG ??= "pcre sqlite3 experimental"
18
19PACKAGECONFIG[pcre] = ",,libpcre"
20PACKAGECONFIG[sqlite3] = "--with-sqlite3=${STAGING_DIR_HOST}${prefix},--with-sqlite3=no,sqlite3"
21PACKAGECONFIG[experimental] = "--with-experimental=yes,--with-experimental=no"
22PACKAGECONFIG[ext-scripts] = "--with-ext-scripts=yes,--with-ext-scripts=no,python3-setuptools-native,ethtool python3 python3-requests"
23
24# pcap is theoretically optional, but is not unless the configure script is modified
25EXTRA_OECONF = " \
26 --with-libpcap-include=${STAGING_INCDIR}/pcap \
27 ac_cv_prog_ETHTOOL=${bindir}/ethtool \
28"
29
30EXTRA_OEMAKE = "pkgpythondir=${PYTHON_SITEPACKAGES_DIR}"
31
32do_install:append() {
33 # Remove to avoid TMPDIR leakage
34 rm -f ${D}${PYTHON_SITEPACKAGES_DIR}/airdrop-ng-install_files.txt
35 rm -f ${D}${PYTHON_SITEPACKAGES_DIR}/airgraph-ng-install_files.txt
36 rm -rf ${D}${PYTHON_SITEPACKAGES_DIR}/airdrop/__pycache__/
37 rm -rf ${D}${PYTHON_SITEPACKAGES_DIR}/airgraphviz/__pycache__/
38
39 # Fix up Python paths for target
40 for f in airdrop-ng airgraph-ng airodump-join; do
41 if [ -f "${D}${bindir}/$f" ]; then
42 sed -i -e 's,${PYTHON},/usr/bin/env python3,g' ${D}${bindir}/$f
43 fi
44 done
45
46}
47
48FILES:${PN} += " \
49 ${libdir}/*.so \
50 ${datadir}/airgraph-ng/ \
51 ${PYTHON_SITEPACKAGES_DIR} \
52"
53FILES_SOLIBSDEV = ""
54INSANE_SKIP:${PN} += "dev-so"