Signed-off-by: Armin Kuster <[email protected]> --- recipes-security/aircrack-ng/aircrack-ng_1.2.bb | 37 ++++++++++++++++++++++ .../aircrack-ng/files/fixup_cflags.patch | 28 ++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 recipes-security/aircrack-ng/aircrack-ng_1.2.bb create mode 100644 recipes-security/aircrack-ng/files/fixup_cflags.patch
diff --git a/recipes-security/aircrack-ng/aircrack-ng_1.2.bb b/recipes-security/aircrack-ng/aircrack-ng_1.2.bb new file mode 100644 index 0000000..4df072e --- /dev/null +++ b/recipes-security/aircrack-ng/aircrack-ng_1.2.bb @@ -0,0 +1,37 @@ +SUMMARY = "Aircrack-ng is a set of tools for auditing wireless networks" +DESCRIPTION = "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." +SECTION = "security" +LICENSE = "GPL-2.0" + +LIC_FILES_CHKSUM = "file://LICENSE;beginline=1;endline=2;md5=1fbd81241fe252ec0f5658a521ab7dd8" + +DEPENDS = "libnl openssl sqlite3 libpcre libpcap" +RC = "rc2" +SRC_URI = "http://download.aircrack-ng.org/${BP}-${RC}.tar.gz \ + file://fixup_cflags.patch" + +SRC_URI[md5sum] = "ebe9d537f06f4d6956213af09c4476da" +SRC_URI[sha256sum] = "ba5b3eda44254efc5b7c9f776eb756f7cc323ad5d0813c101e92edb483d157e9" + +inherit autotools-brokensep pkgconfig + +S = "${WORKDIR}/${BP}-rc2" + +PACKAGECONFIG ?= "" +CFLAGS += " -I${S}/src/include" + +OEMAKE_EXTRA = "sqlite=true experimental=true pcre=true \ + prefix=${prefix} \ + " + +do_compile () { + make ${OEMAKE_EXTRA} TOOL_PREFIX=${TARGET_SYS}- +} + +do_install () { + make DESTDIR=${D} ${OEMAKE_EXTRA} ext_scripts=true install +} + +FILES_${PN} += "/usr/local/" + +RDEPENDS_${PN} = "libpcap" diff --git a/recipes-security/aircrack-ng/files/fixup_cflags.patch b/recipes-security/aircrack-ng/files/fixup_cflags.patch new file mode 100644 index 0000000..e13dd24 --- /dev/null +++ b/recipes-security/aircrack-ng/files/fixup_cflags.patch @@ -0,0 +1,28 @@ +Upstream Status: Iinappropriate + +Issues do to build env. + +Signed-off-by: Armin Kuster <[email protected]> + +Index: aircrack-ng-1.2-rc2/src/Makefile +=================================================================== +--- aircrack-ng-1.2-rc2.orig/src/Makefile ++++ aircrack-ng-1.2-rc2/src/Makefile +@@ -3,8 +3,6 @@ include $(AC_ROOT)/common.mak + + TEST_DIR = $(AC_ROOT)/test + +-CFLAGS += -Iinclude +- + iCC = $(shell find /opt/intel/cc/*/bin/icc) + iCFLAGS = -w -mcpu=pentiumpro -march=pentiumpro $(COMMON_CFLAGS) + iOPTFLAGS = -O3 -ip -ipo -D_FILE_OFFSET_BITS=64 +@@ -102,7 +100,7 @@ endif + + + ifeq ($(subst TRUE,true,$(filter TRUE true,$(sqlite) $(SQLITE))),true) +- LIBSQL = -L/usr/local/lib -lsqlite3 ++ LIBSQL = -lsqlite3 + else + LIBSQL = + endif -- 2.3.5 -- _______________________________________________ yocto mailing list [email protected] https://lists.yoctoproject.org/listinfo/yocto
