mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-20 05:41:12 +02:00
nrc7292: add not-buildable S1G driver
This commit is contained in:
parent
b95c132ce9
commit
2db5e55919
3 changed files with 93 additions and 0 deletions
1
net-wireless/nrc7292/Manifest
Normal file
1
net-wireless/nrc7292/Manifest
Normal file
|
|
@ -0,0 +1 @@
|
|||
DIST nrc7292-1.3.4.tar.gz 195995034 BLAKE2B f9a5d6478066a89ebcfaf8100e7316adc60374bfc17e1bffa626f5687e2fcdd76229f57535784dcdc64f81f49b10874e755dd80a46ae429923cb089f13b8d657 SHA512 3e23082515c46b7c65e79d6951e379badfc3d3b3ebb9faf47edce860276a446a3a4d4dafa8e3523a08c7027a69d3601d22c30619ad9d22d5b0994add79a02493
|
||||
46
net-wireless/nrc7292/nrc7292-1.3.4.ebuild
Normal file
46
net-wireless/nrc7292/nrc7292-1.3.4.ebuild
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
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/Gateworks/nrc7292.git"
|
||||
#S="${WORKDIR}/${P}/package/host/nrc_driver/source/nrc_driver/nrc"
|
||||
EGIT_REPO_URI="https://github.com/newracom/nrc7292_sw_pkg.git"
|
||||
S="${WORKDIR}/${P}/package/host/src/nrc"
|
||||
else
|
||||
SRC_URI="https://github.com/newracom/nrc7292_sw_pkg/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
#KEYWORDS="~amd64 ~x86"
|
||||
S="${WORKDIR}/nrc7292_sw_pkg-${PV}/package/host/nrc_driver/source/nrc_driver/nrc"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE="kernel_linux"
|
||||
|
||||
DEPEND=""
|
||||
|
||||
# compile against selected (not running) target
|
||||
pkg_setup() {
|
||||
if use kernel_linux; then
|
||||
BUILD_TARGETS="clean modules"
|
||||
MODULE_NAMES="nrc7292(misc:)"
|
||||
BUILD_PARAMS="KVER=${KV_FULL} KSRC=${KERNEL_DIR} V=1"
|
||||
|
||||
linux-mod_pkg_setup
|
||||
else
|
||||
die "Could not determine proper ${PN} package"
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
sed -i 's# -Werror##' Makefile || die
|
||||
|
||||
default
|
||||
}
|
||||
46
net-wireless/nrc7292/nrc7292-9999.ebuild
Normal file
46
net-wireless/nrc7292/nrc7292-9999.ebuild
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
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/Gateworks/nrc7292.git"
|
||||
#S="${WORKDIR}/${P}/package/host/nrc_driver/source/nrc_driver/nrc"
|
||||
EGIT_REPO_URI="https://github.com/newracom/nrc7292_sw_pkg.git"
|
||||
S="${WORKDIR}/${P}/package/host/src/nrc"
|
||||
else
|
||||
SRC_URI="https://github.com/newracom/nrc7292_sw_pkg/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
#KEYWORDS="~amd64 ~x86"
|
||||
S="${WORKDIR}/nrc7292_sw_pkg-${PV}/package/host/nrc_driver/source/nrc_driver/nrc"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE="kernel_linux"
|
||||
|
||||
DEPEND=""
|
||||
|
||||
# compile against selected (not running) target
|
||||
pkg_setup() {
|
||||
if use kernel_linux; then
|
||||
BUILD_TARGETS="clean modules"
|
||||
MODULE_NAMES="nrc7292(misc:)"
|
||||
BUILD_PARAMS="KVER=${KV_FULL} KSRC=${KERNEL_DIR} V=1"
|
||||
|
||||
linux-mod_pkg_setup
|
||||
else
|
||||
die "Could not determine proper ${PN} package"
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
sed -i 's# -Werror##' Makefile || die
|
||||
|
||||
default
|
||||
}
|
||||
Loading…
Reference in a new issue