git: 0050903c695a - main - net-mgmt/aircrack-ng: correct hwcaps type
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 25 Apr 2022 14:28:20 UTC
The branch main has been updated by pkubaj:
URL: https://cgit.FreeBSD.org/ports/commit/?id=0050903c695a7e5c9f8f5c1b639faec2824d8356
commit 0050903c695a7e5c9f8f5c1b639faec2824d8356
Author: Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2022-04-25 14:12:37 +0000
Commit: Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2022-04-25 14:12:37 +0000
net-mgmt/aircrack-ng: correct hwcaps type
According to elf_aux_info(3), it's u_long.
---
net-mgmt/aircrack-ng/Makefile | 2 +-
net-mgmt/aircrack-ng/files/patch-src_aircrack-util_trampoline__ppc.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/net-mgmt/aircrack-ng/Makefile b/net-mgmt/aircrack-ng/Makefile
index e5ba79395193..5273c444a7d2 100644
--- a/net-mgmt/aircrack-ng/Makefile
+++ b/net-mgmt/aircrack-ng/Makefile
@@ -2,7 +2,7 @@
PORTNAME= aircrack-ng
DISTVERSION= 1.5.2
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= net-mgmt security
MASTER_SITES= http://download.aircrack-ng.org/
diff --git a/net-mgmt/aircrack-ng/files/patch-src_aircrack-util_trampoline__ppc.c b/net-mgmt/aircrack-ng/files/patch-src_aircrack-util_trampoline__ppc.c
index 038f3065011d..a71ea2e87339 100644
--- a/net-mgmt/aircrack-ng/files/patch-src_aircrack-util_trampoline__ppc.c
+++ b/net-mgmt/aircrack-ng/files/patch-src_aircrack-util_trampoline__ppc.c
@@ -18,7 +18,7 @@
+#ifndef __FreeBSD__
long hwcaps = getauxval(AT_HWCAP2);
+#else
-+ long hwcaps;
++ u_long hwcaps;
+ elf_aux_info(AT_HWCAP2, &hwcaps, sizeof(hwcaps));
+#endif