Skip to content
Permalink
Browse files

rtl8812au_aircrack-ng: prep testing

  • Loading branch information...
ZeroChaos- committed May 15, 2019
1 parent cd44c97 commit 066c559cf889009a10acd314292cb91386e71054
@@ -0,0 +1,43 @@
# 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.2.20"
else
#KEYWORDS="~amd64 ~x86"
COMMIT="4c63f21cd7f585421a0f4ab16af8112b25485bae"
SRC_URI="https://github.com/aircrack-ng/rtl8812au/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/rtl8812au-${COMMIT}"
fi

LICENSE="GPL-2"
SLOT="0"
IUSE="kernel_linux"

DEPEND="!!net-wireless/rtl8812au_astsam
!!net-wireless/rtl8812au
!!net-wireless/rtl8812au_asus"

BUILD_TARGETS="clean modules"
MODULE_NAMES="88XXau(misc:)"

#compile against selected (not running) target
pkg_setup() {
linux-mod_pkg_setup
BUILD_PARAMS="KVER=${KV_FULL} KSRC=${KERNEL_DIR} RTL8814=1"
}

src_prepare() {
sed -i 's#CONFIG_80211W = n#CONFIG_80211W = y#' Makefile
sed -i 's#-DCONFIG_IEEE80211W#-DCONFIG_IEEE80211W -DCONFIG_RTW_80211R#' Makefile
default
}
@@ -14,7 +14,7 @@ if [[ ${PV} == "9999" ]] ; then
EGIT_BRANCH="v5.3.4"
else
KEYWORDS="~amd64 ~x86"
COMMIT="362e6391aab99d16b81110565886e8bb66e5f1a6"
COMMIT="12e3c5d56a0249d0f2eea6ae795b86a7154b4c7c"
SRC_URI="https://github.com/aircrack-ng/rtl8812au/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/rtl8812au-${COMMIT}"
fi

0 comments on commit 066c559

Please sign in to comment.
You can’t perform that action at this time.