rtl8812au_aircrack-ng: this works, so long as you use the snapshot of aircrack-ng I just added to gentoo

This commit is contained in:
Rick Farina (Zero_Chaos) 2020-05-27 21:34:34 -04:00
parent f9b82de3fc
commit 7ea00a4e28
No known key found for this signature in database
GPG key ID: A29433C0AA431DDC
2 changed files with 54 additions and 0 deletions

View file

@ -1,2 +1,3 @@
DIST rtl8812au_aircrack-ng-5.2.20_p20191030.tar.gz 22618814 BLAKE2B 0f26290f301de78422688630d73f4df8b834144d2b6c4f5726ad5b3886d83b20ef59d455b74746c0b060bd08192203795ef8df4a266a9e57f8bb66b75a73dc98 SHA512 dbbba612ad2cea40d823d14c1902b4488578afe83af3b80102ec3f0d068e2e52de35f9c44fa58dbc3b4cb74bdcdafbdef3738e88628feb1463e1f32f4f86fcaa
DIST rtl8812au_aircrack-ng-5.3.4_p20191030.tar.gz 3291910 BLAKE2B f5dece797688df634c228de2cd3d69a4a495a7923793ab0473ba018a8c25a2331939766f3ee5f7103187b85ba1e643eabbe10e02af57ce9cdeb350172d21aa6b SHA512 e661858a3d2745973185687c13003afeaabd086667734080f2f93b80d023a09e807a8a9ec9945c3dbd5191f4bbcfafa4434ba90c2ade523f6f99aa6d20def11d
DIST rtl8812au_aircrack-ng-5.6.4.2_p20200519.tar.gz 39186561 BLAKE2B 66c96e33ec7be60beaf7656c0552872bc3c629dc5485df18833c80b86a3c8120b250897abac55443e62615cc76ff6c01b81ea334175c5f1bebe35ba359dc3ea1 SHA512 22cd954c08cb70e8d64cb934be960e8254eef520d0ab33809fae27b7f92f9b603c41063a8be35931c10efd0ee9da0e10d8a32b25981df43057b1aff639f1a6b5

View file

@ -0,0 +1,53 @@
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit linux-mod
DESCRIPTION="RTL8812AU/21AU and RTL8814AU driver with monitor mode and frame injection"
HOMEPAGE="https://github.com/aircrack-ng/rtl8812au"
if [[ ${PV} == *9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/aircrack-ng/rtl8812au.git"
EGIT_BRANCH="v5.6.4.2"
else
HASH_COMMIT="fc0194c1d90453bf4943089ca237159ef19a7374"
SRC_URI="https://github.com/aircrack-ng/rtl8812au/archive/${HASH_COMMIT}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~x86"
S="${WORKDIR}/rtl8812au-${HASH_COMMIT}"
fi
LICENSE="GPL-2"
SLOT="0"
IUSE="kernel_linux"
DEPEND="
!!net-wireless/rtl8812au
!!net-wireless/rtl8812au_asus
!!net-wireless/rtl8812au_astsam"
# compile against selected (not running) target
pkg_setup() {
if use kernel_linux; then
BUILD_TARGETS="clean modules"
MODULE_NAMES="88XXau(misc:)"
BUILD_PARAMS="KVER=${KV_FULL} KSRC=${KERNEL_DIR} RTL8814=1 V=1"
linux-mod_pkg_setup
else
die "Could not determine proper ${PN} package"
fi
}
src_prepare() {
sed -i 's#CONFIG_80211W = n#CONFIG_80211W = y#' Makefile || die
sed -i 's#-DCONFIG_IEEE80211W#-DCONFIG_IEEE80211W -DCONFIG_RTW_80211R#' Makefile || die
#these are not 88xxau devices
#https://github.com/aircrack-ng/rtl8812au/issues/492
sed -i '/0x0115/d' os_dep/linux/usb_intf.c || die
default
}