From 36a9c112aebaf198c8b6878f482364b46902eb7c Mon Sep 17 00:00:00 2001 From: Demedim <40205709+Demedim@users.noreply.github.com> Date: Sat, 4 Dec 2021 13:05:40 +0100 Subject: [PATCH] aircrack-ng: add libcap to enable more utilities Closes: #34380 [via git-merge-pr] --- srcpkgs/aircrack-ng/patches/getopt.patch | 14 ++++++++++++++ srcpkgs/aircrack-ng/template | 4 ++-- 2 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 srcpkgs/aircrack-ng/patches/getopt.patch diff --git a/srcpkgs/aircrack-ng/patches/getopt.patch b/srcpkgs/aircrack-ng/patches/getopt.patch new file mode 100644 index 00000000000..7f57f30e6a3 --- /dev/null +++ b/srcpkgs/aircrack-ng/patches/getopt.patch @@ -0,0 +1,14 @@ +argv[1] is a file name argument, musl getopt_long will permute it +to a later position, so skip it for argument parsing. + +--- aircrack-ng-1.6/src/airolib-ng/airolib-ng.c.orig ++++ aircrack-ng-1.6/src/airolib-ng/airolib-ng.c +@@ -1309,7 +1309,7 @@ + signal(SIGTERM, sighandler); + + option = getopt_long( +- argc, argv, "bc:d:e:hi:s:t:v:", long_options, &option_index); ++ argc-1, argv+1, "bc:d:e:hi:s:t:v:", long_options, &option_index); + + if (option > 0) + { diff --git a/srcpkgs/aircrack-ng/template b/srcpkgs/aircrack-ng/template index 604bcefb5a3..ef5d46cebac 100644 --- a/srcpkgs/aircrack-ng/template +++ b/srcpkgs/aircrack-ng/template @@ -1,10 +1,10 @@ # Template file for 'aircrack-ng' pkgname=aircrack-ng version=1.6 -revision=3 +revision=4 build_style=gnu-configure hostmakedepends="automake libtool pkg-config" -makedepends="libnl3-devel openssl-devel sqlite-devel zlib-devel" +makedepends="libnl3-devel openssl-devel sqlite-devel zlib-devel libcap-devel" short_desc="Complete suite of tools to assess WiFi network security" maintainer="Orphaned " license="GPL-2.0-or-later, BSD-3-Clause, OpenSSL"