commit:     6ef6d9b7daa1ed322156a1c6d1322a75a0c26c49
Author:     Jay Faulkner <jayf <AT> gentoo <DOT> org>
AuthorDate: Fri Mar 14 22:02:42 2025 +0000
Commit:     Jay Faulkner <jayf <AT> gentoo <DOT> org>
CommitDate: Fri Mar 14 22:02:42 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6ef6d9b7

net-misc/r8152: add 2.19.2

Signed-off-by: Jay Faulkner <jayf <AT> gentoo.org>

 net-misc/r8152/Manifest            |  1 +
 net-misc/r8152/r8152-2.19.2.ebuild | 54 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 55 insertions(+)

diff --git a/net-misc/r8152/Manifest b/net-misc/r8152/Manifest
index 60c6ab7c9d0c..c4baa0d86c55 100644
--- a/net-misc/r8152/Manifest
+++ b/net-misc/r8152/Manifest
@@ -1,2 +1,3 @@
 DIST r8152-2.17.1.tar.bz2 75156 BLAKE2B 
05b55ea17a579add9a9abee89db490685086bfe29aeea6cbfbdbb63a81dbee4d1cac151822c178e52febe4bee14a3b5deb20737f671fcdbc6dd6d01938b1d18c
 SHA512 
e465b524ee8aaed12da8258195fb8a4c9fea0862812c1ab268e31ad6ec61444c4f4332d643124063b389fd1df7a271c6c057537d4cbe67188a1a2262b4793f42
 DIST r8152-2.18.1.tar.gz 109919 BLAKE2B 
59fa24b599a7378109e162689ef4ff305dc0d3a7f3bc77059d9e2f142e0b4fd01b38fcfdfe7bc1f3aa13805302522632e4305990133d53266d7c268e1f2284c0
 SHA512 
c99f482bd69b2263943bdb26a8fea40eed09ca21f8f42436937dc5c83239f0fe48a386ea4f2ddf90a193c808503a3709ea9637793d476774107c4757b56c4223
+DIST r8152-2.19.2.tar.gz 114855 BLAKE2B 
dfff65c8cf26d31be86d3a3a1cd761f248d40e67a64d42f355e0daf38f21213e0fdac8bb426ff86d761e3f47771662307426dcadee5b13863cac8ee082ba36a1
 SHA512 
d17ea523ad2cc8ad2dafd2b012cc134c492d79d878553681cf34c479ef063f6ff3a87ebeb02f29693f0a19e980b5bdb764d3bb79e8040bef6c18ae52ec9f15e7

diff --git a/net-misc/r8152/r8152-2.19.2.ebuild 
b/net-misc/r8152/r8152-2.19.2.ebuild
new file mode 100644
index 000000000000..d0a59f666be8
--- /dev/null
+++ b/net-misc/r8152/r8152-2.19.2.ebuild
@@ -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
+}

Reply via email to