Diff r8168-8.051.02 with a r8168-8.051.02-r1
/usr/portage/net-misc/r8168/r8168-8.051.02-r1.ebuild 2023-10-09 14:52:34.676368481 +0300 | ||
---|---|---|
3 | 3 | |
4 | 4 |
EAPI=8 |
5 | 5 | |
6 |
inherit linux-info linux-mod |
|
6 |
inherit linux-mod-r1 |
|
7 | 7 | |
8 | 8 |
DESCRIPTION="r8168 driver for Realtek 8111/8168 PCI-E NICs" |
9 | 9 |
HOMEPAGE="https://www.realtek.com/en/component/zoo/category/network-interface-controllers-10-100-1000m-gigabit-ethernet-pci-express-software" |
10 | 10 | |
11 |
# "GBE Ethernet LINUX driver r8168 for kernel up to 5.19" from above link, |
|
12 |
# we need to mirror it to avoid users from needing to fill a captcha to |
|
13 |
# download |
|
14 |
SRC_URI="https://dev.gentoo.org/~pacho/${PN}/${P}.tar.bz2" |
|
11 |
SRC_URI="http://rtitwww.realtek.com/rtdrivers/cn/nic1/${P}.tar.bz2" |
|
15 | 12 | |
16 | 13 |
LICENSE="GPL-2" |
17 | 14 |
SLOT="0" |
18 | 15 |
KEYWORDS="amd64 x86" |
19 | 16 | |
20 |
MODULE_NAMES="r8168(net:${S}/src)" |
|
21 |
BUILD_TARGETS="modules" |
|
22 | 17 |
IUSE="use-firmware" |
23 | 18 | |
24 | 19 |
CONFIG_CHECK="~!R8169" |
25 | 20 |
WARNING_R8169="CONFIG_R8169 is enabled. ${P} will not be loaded unless kernel driver Realtek 8169 PCI Gigabit Ethernet (CONFIG_R8169) is DISABLED." |
26 | 21 | |
27 | 22 |
PATCHES=( |
28 |
"${FILESDIR}/${PN}-8.051.02-6.1-fix.patch" |
|
23 |
"${FILESDIR}/${P}-6.1-fix.patch" |
|
29 | 24 |
"${FILESDIR}/${P}-6.4.10-fix.patch" # bug 912242 |
30 | 25 |
) |
31 | 26 | |
32 |
pkg_setup() { |
|
33 |
linux-mod_pkg_setup |
|
34 |
BUILD_PARAMS="KERNELDIR=${KV_DIR}" |
|
35 |
BUILD_PARAMS+=" ENABLE_USE_FIRMWARE_FILE=$(usex use-firmware y n)" |
|
36 |
} |
|
27 |
src_compile() { |
|
28 |
local modlist=( ${PN}=kernel/drivers/net/ethernet/realtek:src ) |
|
29 |
local modargs=( |
|
30 |
# Build parameters |
|
31 |
KERNELDIR="${KV_OUT_DIR}" |
|
32 |
# Configuration settings |
|
33 |
ENABLE_USE_FIRMWARE_FILE=$(usex use-firmware y n) |
|
34 |
) |
|
37 | 35 | |
38 |
src_install() { |
|
39 |
linux-mod_src_install |
|
40 |
einstalldocs |
|
36 |
linux-mod-r1_src_compile |
|
41 | 37 |
} |