Sunday, June 09, 2024

Re: UPDATE: aircrack-ng 1.7

On Thu Jun 06, 2024 at 11:59:23PM GMT, Brad Smith wrote:
> Here is an update to aircrack-ng 1.7.

Committed, thanks

>
>
> Index: Makefile
> ===================================================================
> RCS file: /cvs/ports/security/aircrack-ng/Makefile,v
> retrieving revision 1.39
> diff -u -p -u -p -r1.39 Makefile
> --- Makefile 20 Nov 2023 15:36:18 -0000 1.39
> +++ Makefile 7 Jun 2024 03:35:44 -0000
> @@ -1,6 +1,7 @@
> COMMENT= 802.11 WEP and WPA-PSK keys cracking program
> -DISTNAME= aircrack-ng-1.5.2
> -REVISION= 9
> +
> +VER= 1.7
> +DISTNAME= aircrack-ng-${VER}
> CATEGORIES= security
>
> HOMEPAGE= https://www.aircrack-ng.org/
> @@ -8,8 +9,7 @@ HOMEPAGE= https://www.aircrack-ng.org/
> # GPLv2
> PERMIT_PACKAGE= Yes
>
> -WANTLIB+= c pthread crypto z pcre
> -WANTLIB+= ${COMPILER_LIBCXX} m sqlite3
> +WANTLIB+= ${COMPILER_LIBCXX} c crypto m pcap pcre pthread sqlite3 ssl z
>
> SITES= https://download.aircrack-ng.org/
>
> @@ -38,21 +38,24 @@ PKG_ARGS+= -Dx86=1
> .else
> PKG_ARGS+= -Dx86=0
> .endif
> -# XXX PFRAG.arm files relate to NEON optimizations, disabled above.
> -#.if ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "aarch64"
> -#PKG_ARGS+= -Darm=1
> -#.else
> +
> +.if ${MACHINE_ARCH} == "aarch64"
> +PKG_ARGS+= -Darm=1
> +.else
> PKG_ARGS+= -Darm=0
> -#.endif
> -# XXX AltiVec optimizations can't be built with clang, and POWER8 ones
> +.endif
> +
> +# XXX AltiVec optimizations can't be built with Clang, and POWER8 ones
> # are useless on powerpc
> .if ${MACHINE_ARCH} == "powerpc"
> MAKE_ENV+= ALTIVEC=false POWER8=false
> .endif
>
> +API_REV= ${VER}.0
> +SUBST_VARS+= API_REV
>
> pre-configure:
> - ${SUBST_CMD} ${WRKSRC}/src/airodump-ng.h
> + ${SUBST_CMD} ${WRKSRC}/src/airodump-ng/airodump-ng.c
>
> .include <bsd.port.arch.mk>
> .if !${PROPERTIES:Mclang}
> Index: distinfo
> ===================================================================
> RCS file: /cvs/ports/security/aircrack-ng/distinfo,v
> retrieving revision 1.4
> diff -u -p -u -p -r1.4 distinfo
> --- distinfo 23 Feb 2019 22:23:25 -0000 1.4
> +++ distinfo 7 Jun 2024 03:35:44 -0000
> @@ -1,2 +1,2 @@
> -SHA256 (aircrack-ng-1.5.2.tar.gz) = nlkv52WARiIOCsCm0FxAJpA/MHeySIk+AFbMvk7ogkE=
> -SIZE (aircrack-ng-1.5.2.tar.gz) = 7138360
> +SHA256 (aircrack-ng-1.7.tar.gz) = BacE48j3eSoXMVCAohIUpESP0kUsGw3VImo6VfkLWMM=
> +SIZE (aircrack-ng-1.7.tar.gz) = 7740634
> Index: patches/patch-build_m4_aircrack_ng_simd_m4
> ===================================================================
> RCS file: patches/patch-build_m4_aircrack_ng_simd_m4
> diff -N patches/patch-build_m4_aircrack_ng_simd_m4
> --- patches/patch-build_m4_aircrack_ng_simd_m4 11 Mar 2022 19:53:17 -0000 1.2
> +++ /dev/null 1 Jan 1970 00:00:00 -0000
> @@ -1,23 +0,0 @@
> -Ensure that disabling AltiVec and POWER8 instructions with MAKE_ENV is honoured
> -even if the build machine supports them, from:
> -https://github.com/aircrack-ng/aircrack-ng/issues/1941
> -
> -Index: build/m4/aircrack_ng_simd.m4
> ---- build/m4/aircrack_ng_simd.m4.orig
> -+++ build/m4/aircrack_ng_simd.m4
> -@@ -132,7 +132,6 @@ then
> - AX_CHECK_COMPILE_FLAG([-maltivec], [
> - AX_APPEND_FLAG(-maltivec, [ppc_altivec_[]_AC_LANG_ABBREV[]flags])
> - AC_SUBST(ppc_altivec_[]_AC_LANG_ABBREV[]flags)
> -- ALTIVEC_FOUND=1
> - ])
> -
> - AX_CHECK_COMPILE_FLAG([-mabi=altivec], [
> -@@ -148,7 +147,6 @@ then
> - AX_CHECK_COMPILE_FLAG([-mpower8-vector], [
> - AX_APPEND_FLAG(-mpower8-vector, [ppc_altivec_[]_AC_LANG_ABBREV[]flags])
> - AC_SUBST(ppc_altivec_[]_AC_LANG_ABBREV[]flags)
> -- POWER8_FOUND=1
> - ])
> - fi
> -
> Index: patches/patch-lib_libac_support_common_c
> ===================================================================
> RCS file: patches/patch-lib_libac_support_common_c
> diff -N patches/patch-lib_libac_support_common_c
> --- /dev/null 1 Jan 1970 00:00:00 -0000
> +++ patches/patch-lib_libac_support_common_c 7 Jun 2024 03:35:44 -0000
> @@ -0,0 +1,68 @@
> +lib/libac: Improved sysctl usage for *BSD
> +53f86766c891c6c7fcf0ab4a4b6d6d282030b6b9
> +
> +Index: lib/libac/support/common.c
> +--- lib/libac/support/common.c.orig
> ++++ lib/libac/support/common.c
> +@@ -54,11 +54,13 @@
> +
> + #include <aircrack-ng/support/common.h>
> +
> +-#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__DragonFly__) \
> +- || defined(__MidnightBSD__)
> ++#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) \
> ++ || defined(__DragonFly__) || defined(__MidnightBSD__)
> + #include <sys/sysctl.h>
> ++#ifndef __NetBSD__
> + #include <sys/user.h>
> +

No comments:

Post a Comment