net-misc/r8152: add 2.20.1

Signed-off-by: Jay Faulkner <jayf@gentoo.org>
This commit is contained in:
Jay Faulkner
2025-06-01 18:40:57 -07:00
parent 6c1eef0e65
commit 6c81399c27
2 changed files with 55 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST r8152-2.19.2.tar.gz 114855 BLAKE2B dfff65c8cf26d31be86d3a3a1cd761f248d40e67a64d42f355e0daf38f21213e0fdac8bb426ff86d761e3f47771662307426dcadee5b13863cac8ee082ba36a1 SHA512 d17ea523ad2cc8ad2dafd2b012cc134c492d79d878553681cf34c479ef063f6ff3a87ebeb02f29693f0a19e980b5bdb764d3bb79e8040bef6c18ae52ec9f15e7
DIST r8152-2.20.1.tar.gz 122073 BLAKE2B 81869bf543df2c12e24b78baffa38ba7a514807e108fef415f834b10670766bb05fc6e15fa0f0360958292ae6c832dd6d9ce430de7ef37a342aa95452d10f508 SHA512 dc22813e71414e74506dbc543b277f88bac3e983cf3dc7bb9b491a3150fc1ae47cb9ce8a0b544267d6e6059941330f19a8b08f09826411769909b08a75779275

View File

@@ -0,0 +1,54 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit linux-mod-r1 udev
DESCRIPTION="r8152 driver for Realtek USB FE / GBE / 2.5G Gaming Ethernet Family Controller"
# Using github readme as homepage as the realtek page has changed location twice in six months.
HOMEPAGE="https://github.com/jayofdoom/realtek-r8152-unchanged"
SRC_URI="https://github.com/jayofdoom/realtek-r8152-unchanged/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/realtek-r8152-unchanged-${PV}"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
RDEPEND="virtual/udev"
DEPEND="${RDEPEND}"
IUSE="+center-tap-short"
# Many of the patches are sourced from pull requests to
# https://github.com/wget/realtek-r8152-linux/ -- we do not use this repo
# as the official upstream as it does not keep a clear deliniation between
# shipped realtek code and patches. It is the source used by the AUR package.
PATCHES=(
"${FILESDIR}"/${PN}-2.16.3-kernel-6.4.10-fix.patch
"${FILESDIR}"/${PN}-2.16.3-asus-c5000-support.patch
)
src_compile() {
local modlist=( ${PN}=kernel/net/usb:. )
local modargs=(
KERNELDIR="${KV_OUT_DIR}"
CONFIG_CTAP_SHORT="$(usex center-tap-short on off)"
)
linux-mod-r1_src_compile
}
src_install() {
linux-mod-r1_src_install
udev_dorules 50-usb-realtek-net.rules
}
pkg_postinst() {
linux-mod-r1_pkg_postinst
udev_reload
}
pkg_postrm() {
udev_reload
}