Initial Commit
- initial default booting image
This commit is contained in:
102
package/aircrack-ng/0001-autotools-add-PCRE2-detection.patch
Normal file
102
package/aircrack-ng/0001-autotools-add-PCRE2-detection.patch
Normal file
@@ -0,0 +1,102 @@
|
||||
From 6b05dc10cdcf45d50bc8f9dd74667a3ff399a059 Mon Sep 17 00:00:00 2001
|
||||
From: Andras Gemes <andrasgemes@outlook.com>
|
||||
Date: Fri, 20 Jan 2023 14:52:12 +0100
|
||||
Subject: [PATCH] autotools: add PCRE2 detection
|
||||
|
||||
Upstream: https://github.com/aircrack-ng/aircrack-ng/commit/6b05dc10cdcf45d50bc8f9dd74667a3ff399a059
|
||||
|
||||
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
|
||||
---
|
||||
build/m4/aircrack_ng_pcre2.m4 | 61 +++++++++++++++++++++++++++++++++++
|
||||
configure.ac | 2 ++
|
||||
2 files changed, 63 insertions(+)
|
||||
create mode 100644 build/m4/aircrack_ng_pcre2.m4
|
||||
|
||||
diff --git a/build/m4/aircrack_ng_pcre2.m4 b/build/m4/aircrack_ng_pcre2.m4
|
||||
new file mode 100644
|
||||
index 0000000000..f61c0f656d
|
||||
--- /dev/null
|
||||
+++ b/build/m4/aircrack_ng_pcre2.m4
|
||||
@@ -0,0 +1,61 @@
|
||||
+dnl Aircrack-ng
|
||||
+dnl
|
||||
+dnl Copyright (C) 2023 Andras Gemes <andrasgemes@outlook.com>
|
||||
+dnl
|
||||
+dnl Autotool support was written by: Joseph Benden <joe@benden.us>
|
||||
+dnl
|
||||
+dnl This program is free software; you can redistribute it and/or modify
|
||||
+dnl it under the terms of the GNU General Public License as published by
|
||||
+dnl the Free Software Foundation; either version 2 of the License, or
|
||||
+dnl (at your option) any later version.
|
||||
+dnl
|
||||
+dnl This program is distributed in the hope that it will be useful,
|
||||
+dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
+dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
+dnl GNU General Public License for more details.
|
||||
+dnl
|
||||
+dnl You should have received a copy of the GNU General Public License
|
||||
+dnl along with this program; if not, write to the Free Software
|
||||
+dnl Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
+dnl
|
||||
+dnl In addition, as a special exception, the copyright holders give
|
||||
+dnl permission to link the code of portions of this program with the
|
||||
+dnl OpenSSL library under certain conditions as described in each
|
||||
+dnl individual source file, and distribute linked combinations
|
||||
+dnl including the two.
|
||||
+dnl
|
||||
+dnl You must obey the GNU General Public License in all respects
|
||||
+dnl for all of the code used other than OpenSSL.
|
||||
+dnl
|
||||
+dnl If you modify file(s) with this exception, you may extend this
|
||||
+dnl exception to your dnl version of the file(s), but you are not obligated
|
||||
+dnl to do so.
|
||||
+dnl
|
||||
+dnl If you dnl do not wish to do so, delete this exception statement from your
|
||||
+dnl version.
|
||||
+dnl
|
||||
+dnl If you delete this exception statement from all source files in the
|
||||
+dnl program, then also delete it here.
|
||||
+
|
||||
+AC_DEFUN([AIRCRACK_NG_PCRE2], [
|
||||
+AC_ARG_ENABLE(static-pcre2,
|
||||
+ AS_HELP_STRING([--enable-static-pcre2],
|
||||
+ [Enable statically linked PCRE2 libpcre2-8.]),
|
||||
+ [static_pcre2=$enableval], [static_pcre2=no])
|
||||
+
|
||||
+if test "x$static_pcre2" != "xno"; then
|
||||
+ AC_REQUIRE([AX_EXT_HAVE_STATIC_LIB_DETECT])
|
||||
+ AX_EXT_HAVE_STATIC_LIB(PCRE2, ${DEFAULT_STATIC_LIB_SEARCH_PATHS}, pcre2 libpcre2-8, pcre2_version)
|
||||
+ if test "x$PCRE2_FOUND" = xyes; then
|
||||
+ HAVE_PCRE2=yes
|
||||
+ else
|
||||
+ HAVE_PCRE2=no
|
||||
+ fi
|
||||
+else
|
||||
+ PKG_CHECK_MODULES(PCRE2, libpcre2-8, HAVE_PCRE2=yes, HAVE_PCRE2=no)
|
||||
+fi
|
||||
+
|
||||
+AS_IF([test "x$HAVE_PCRE2" = "xyes"], [
|
||||
+ AC_DEFINE([HAVE_PCRE2], [1], [Define this if you have libpcre2-8 on your system])
|
||||
+])
|
||||
+])
|
||||
\ No newline at end of file
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 06aca4e466..6d8e0e5677 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -143,6 +143,7 @@ AIRCRACK_NG_EXT_SCRIPTS
|
||||
AIRCRACK_NG_HWLOC
|
||||
AIRCRACK_NG_PCAP
|
||||
AIRCRACK_NG_PCRE
|
||||
+AIRCRACK_NG_PCRE2
|
||||
AIRCRACK_NG_RFKILL
|
||||
AIRCRACK_NG_SQLITE
|
||||
AIRCRACK_NG_ZLIB
|
||||
@@ -319,6 +320,7 @@ ${PACKAGE} ${VERSION}
|
||||
Jemalloc: ${JEMALLOC}
|
||||
Pcap: ${PCAP_FOUND}
|
||||
Pcre: ${HAVE_PCRE}
|
||||
+ Pcre2: ${HAVE_PCRE2}
|
||||
Sqlite: ${HAVE_SQLITE3}
|
||||
Tcmalloc: ${TCMALLOC}
|
||||
Zlib: ${HAVE_ZLIB}
|
||||
@@ -0,0 +1,142 @@
|
||||
From b381ef3f6b6cc83a4aa016f4c0aebb58fcffcf3f Mon Sep 17 00:00:00 2001
|
||||
From: Andras Gemes <andrasgemes@outlook.com>
|
||||
Date: Mon, 23 Jan 2023 16:58:38 +0100
|
||||
Subject: [PATCH] autotools: indicate if PCRE or PCRE2 is being used
|
||||
|
||||
Upstream: https://github.com/aircrack-ng/aircrack-ng/commit/b381ef3f6b6cc83a4aa016f4c0aebb58fcffcf3f
|
||||
|
||||
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
|
||||
---
|
||||
build/m4/aircrack_ng_pcre.m4 | 28 ++++++++++++++--
|
||||
build/m4/aircrack_ng_pcre2.m4 | 61 -----------------------------------
|
||||
configure.ac | 3 +-
|
||||
3 files changed, 26 insertions(+), 66 deletions(-)
|
||||
delete mode 100644 build/m4/aircrack_ng_pcre2.m4
|
||||
|
||||
diff --git a/build/m4/aircrack_ng_pcre.m4 b/build/m4/aircrack_ng_pcre.m4
|
||||
index 72f09b98ff..af3e24b4bc 100644
|
||||
--- a/build/m4/aircrack_ng_pcre.m4
|
||||
+++ b/build/m4/aircrack_ng_pcre.m4
|
||||
@@ -55,7 +55,29 @@ else
|
||||
PKG_CHECK_MODULES(PCRE, libpcre, HAVE_PCRE=yes, HAVE_PCRE=no)
|
||||
fi
|
||||
|
||||
-AS_IF([test "x$HAVE_PCRE" = "xyes"], [
|
||||
+AC_ARG_ENABLE(static-pcre2,
|
||||
+ AS_HELP_STRING([--enable-static-pcre2],
|
||||
+ [Enable statically linked PCRE2 libpcre2-8.]),
|
||||
+ [static_pcre2=$enableval], [static_pcre2=no])
|
||||
+
|
||||
+if test "x$static_pcre2" != "xno"; then
|
||||
+ AC_REQUIRE([AX_EXT_HAVE_STATIC_LIB_DETECT])
|
||||
+ AX_EXT_HAVE_STATIC_LIB(PCRE2, ${DEFAULT_STATIC_LIB_SEARCH_PATHS}, pcre2 libpcre2-8, pcre2_version)
|
||||
+ if test "x$PCRE2_FOUND" = xyes; then
|
||||
+ HAVE_PCRE2=yes
|
||||
+ else
|
||||
+ HAVE_PCRE2=no
|
||||
+ fi
|
||||
+else
|
||||
+ PKG_CHECK_MODULES(PCRE2, libpcre2-8, HAVE_PCRE2=yes, HAVE_PCRE2=no)
|
||||
+fi
|
||||
+
|
||||
+if test "x$HAVE_PCRE" = "xyes" && test "x$HAVE_PCRE2" = "xyes"; then
|
||||
+ AC_DEFINE([HAVE_PCRE2], [1], [Define this if you have libpcre2-8 on your system])
|
||||
+ PCRE2_NOTE="(Pcre and Pcre2 found, using Pcre2)"
|
||||
+elif test "x$HAVE_PCRE" = "xyes"; then
|
||||
AC_DEFINE([HAVE_PCRE], [1], [Define this if you have libpcre on your system])
|
||||
-])
|
||||
-])
|
||||
+elif test "x$HAVE_PCRE2" = "xyes"; then
|
||||
+ AC_DEFINE([HAVE_PCRE2], [1], [Define this if you have libpcre2-8 on your system])
|
||||
+fi
|
||||
+])
|
||||
\ No newline at end of file
|
||||
diff --git a/build/m4/aircrack_ng_pcre2.m4 b/build/m4/aircrack_ng_pcre2.m4
|
||||
deleted file mode 100644
|
||||
index f61c0f656d..0000000000
|
||||
--- a/build/m4/aircrack_ng_pcre2.m4
|
||||
+++ /dev/null
|
||||
@@ -1,61 +0,0 @@
|
||||
-dnl Aircrack-ng
|
||||
-dnl
|
||||
-dnl Copyright (C) 2023 Andras Gemes <andrasgemes@outlook.com>
|
||||
-dnl
|
||||
-dnl Autotool support was written by: Joseph Benden <joe@benden.us>
|
||||
-dnl
|
||||
-dnl This program is free software; you can redistribute it and/or modify
|
||||
-dnl it under the terms of the GNU General Public License as published by
|
||||
-dnl the Free Software Foundation; either version 2 of the License, or
|
||||
-dnl (at your option) any later version.
|
||||
-dnl
|
||||
-dnl This program is distributed in the hope that it will be useful,
|
||||
-dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-dnl GNU General Public License for more details.
|
||||
-dnl
|
||||
-dnl You should have received a copy of the GNU General Public License
|
||||
-dnl along with this program; if not, write to the Free Software
|
||||
-dnl Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
-dnl
|
||||
-dnl In addition, as a special exception, the copyright holders give
|
||||
-dnl permission to link the code of portions of this program with the
|
||||
-dnl OpenSSL library under certain conditions as described in each
|
||||
-dnl individual source file, and distribute linked combinations
|
||||
-dnl including the two.
|
||||
-dnl
|
||||
-dnl You must obey the GNU General Public License in all respects
|
||||
-dnl for all of the code used other than OpenSSL.
|
||||
-dnl
|
||||
-dnl If you modify file(s) with this exception, you may extend this
|
||||
-dnl exception to your dnl version of the file(s), but you are not obligated
|
||||
-dnl to do so.
|
||||
-dnl
|
||||
-dnl If you dnl do not wish to do so, delete this exception statement from your
|
||||
-dnl version.
|
||||
-dnl
|
||||
-dnl If you delete this exception statement from all source files in the
|
||||
-dnl program, then also delete it here.
|
||||
-
|
||||
-AC_DEFUN([AIRCRACK_NG_PCRE2], [
|
||||
-AC_ARG_ENABLE(static-pcre2,
|
||||
- AS_HELP_STRING([--enable-static-pcre2],
|
||||
- [Enable statically linked PCRE2 libpcre2-8.]),
|
||||
- [static_pcre2=$enableval], [static_pcre2=no])
|
||||
-
|
||||
-if test "x$static_pcre2" != "xno"; then
|
||||
- AC_REQUIRE([AX_EXT_HAVE_STATIC_LIB_DETECT])
|
||||
- AX_EXT_HAVE_STATIC_LIB(PCRE2, ${DEFAULT_STATIC_LIB_SEARCH_PATHS}, pcre2 libpcre2-8, pcre2_version)
|
||||
- if test "x$PCRE2_FOUND" = xyes; then
|
||||
- HAVE_PCRE2=yes
|
||||
- else
|
||||
- HAVE_PCRE2=no
|
||||
- fi
|
||||
-else
|
||||
- PKG_CHECK_MODULES(PCRE2, libpcre2-8, HAVE_PCRE2=yes, HAVE_PCRE2=no)
|
||||
-fi
|
||||
-
|
||||
-AS_IF([test "x$HAVE_PCRE2" = "xyes"], [
|
||||
- AC_DEFINE([HAVE_PCRE2], [1], [Define this if you have libpcre2-8 on your system])
|
||||
-])
|
||||
-])
|
||||
\ No newline at end of file
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 6d8e0e5677..9d1d148cfd 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -143,7 +143,6 @@ AIRCRACK_NG_EXT_SCRIPTS
|
||||
AIRCRACK_NG_HWLOC
|
||||
AIRCRACK_NG_PCAP
|
||||
AIRCRACK_NG_PCRE
|
||||
-AIRCRACK_NG_PCRE2
|
||||
AIRCRACK_NG_RFKILL
|
||||
AIRCRACK_NG_SQLITE
|
||||
AIRCRACK_NG_ZLIB
|
||||
@@ -320,7 +319,7 @@ ${PACKAGE} ${VERSION}
|
||||
Jemalloc: ${JEMALLOC}
|
||||
Pcap: ${PCAP_FOUND}
|
||||
Pcre: ${HAVE_PCRE}
|
||||
- Pcre2: ${HAVE_PCRE2}
|
||||
+ Pcre2: ${HAVE_PCRE2} ${PCRE2_NOTE}
|
||||
Sqlite: ${HAVE_SQLITE3}
|
||||
Tcmalloc: ${TCMALLOC}
|
||||
Zlib: ${HAVE_ZLIB}
|
||||
20
package/aircrack-ng/Config.in
Normal file
20
package/aircrack-ng/Config.in
Normal file
@@ -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
|
||||
6
package/aircrack-ng/aircrack-ng.hash
Normal file
6
package/aircrack-ng/aircrack-ng.hash
Normal file
@@ -0,0 +1,6 @@
|
||||
# From http://www.aircrack-ng.org/downloads.html
|
||||
sha1 bd43a35281c9c81d958b95aa76b4404c29f904ff aircrack-ng-1.7.tar.gz
|
||||
md5 a918ea7146f91d8c799fb770c38f4bec aircrack-ng-1.7.tar.gz
|
||||
|
||||
# Hash for license file:
|
||||
sha256 fc51fd3a97223f2fd47b057202d4a6b0daaedf23b5a1f5ff8723c192fc1e021d LICENSE
|
||||
77
package/aircrack-ng/aircrack-ng.mk
Normal file
77
package/aircrack-ng/aircrack-ng.mk
Normal file
@@ -0,0 +1,77 @@
|
||||
################################################################################
|
||||
#
|
||||
# aircrack-ng
|
||||
#
|
||||
################################################################################
|
||||
|
||||
AIRCRACK_NG_VERSION = 1.7
|
||||
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_PCRE2),pcre2) \
|
||||
$(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=$(STAGING_DIR)/usr
|
||||
else
|
||||
AIRCRACK_NG_CONF_OPTS += --without-sqlite3
|
||||
endif
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user