mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-01-17 05:35:26 +01:00
rtl8812au_aircrack-ng: finally cleaned this ebuild up a little bit and it works right
This commit is contained in:
parent
d17c05caaf
commit
0db3f7ebe8
3 changed files with 6 additions and 57 deletions
|
|
@ -1,41 +0,0 @@
|
|||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit linux-mod git-r3
|
||||
|
||||
DESCRIPTION="RTL8812AU/21AU and RTL8814AU driver with monitor mode and frame injection"
|
||||
HOMEPAGE="https://github.com/aircrack-ng/rtl8812au"
|
||||
EGIT_REPO_URI="https://github.com/aircrack-ng/rtl8812au.git"
|
||||
EGIT_BRANCH="v5.1.5"
|
||||
|
||||
if [[ ${PV} == "9999" ]] ; then
|
||||
KEYWORDS=""
|
||||
else
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
EGIT_COMMIT="ccea00c35699e2414fa8564d7d0c43e4662061df"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="!!net-wireless/rtl8812au_astsam
|
||||
!!net-wireless/rtl8812au
|
||||
!!net-wireless/rtl8812au_asus"
|
||||
|
||||
MODULE_NAMES="8812au(net/wireless:) 8814au(net/wireless:)"
|
||||
|
||||
#compile against selected (not running) target
|
||||
pkg_setup() {
|
||||
linux-mod_pkg_setup
|
||||
BUILD_PARAMS="KVER=${KV_FULL}"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
set_arch_to_kernel
|
||||
KVER="${KV_FULL}" emake clean
|
||||
KVER="${KV_FULL}" emake
|
||||
KVER="${KV_FULL}" emake RTL8814=1
|
||||
}
|
||||
|
|
@ -22,27 +22,22 @@ fi
|
|||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
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}"
|
||||
BUILD_PARAMS="KVER=${KV_FULL} KSRC=${KERNEL_DIR} RTL8814=1"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
sed -i 's#CONFIG_80211W = n#CONFIG_80211W = y#' Makefile
|
||||
default
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
set_arch_to_kernel
|
||||
KVER="${KV_FULL}" emake V=1 clean
|
||||
KVER="${KV_FULL}" emake V=1 RTL8814=1
|
||||
}
|
||||
|
|
|
|||
|
|
@ -22,27 +22,22 @@ fi
|
|||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
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}"
|
||||
BUILD_PARAMS="KVER=${KV_FULL} KSRC=${KERNEL_DIR} RTL8814=1"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
sed -i 's#CONFIG_80211W = n#CONFIG_80211W = y#' Makefile
|
||||
default
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
set_arch_to_kernel
|
||||
KVER="${KV_FULL}" emake V=1 clean
|
||||
KVER="${KV_FULL}" emake V=1 RTL8814=1
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue