commit:     a41d1f11cddb8c7dca3934daa766d98f96b8b3b9
Author:     Jay Faulkner <jay <AT> jvf <DOT> cc>
AuthorDate: Sat Nov 11 16:24:17 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Nov 22 18:01:10 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a41d1f11

net-misc/r8152: add 2.17.1

Signed-off-by: Jay Faulkner <jay <AT> jvf.cc>
Closes: https://github.com/gentoo/gentoo/pull/33769
Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-misc/r8152/Manifest            |  1 +
 net-misc/r8152/r8152-2.17.1.ebuild | 50 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 51 insertions(+)

diff --git a/net-misc/r8152/Manifest b/net-misc/r8152/Manifest
index 1ea2813cb410..f03e2096515f 100644
--- a/net-misc/r8152/Manifest
+++ b/net-misc/r8152/Manifest
@@ -1 +1,2 @@
 DIST r8152-2.16.3.tar.bz2 73331 BLAKE2B 
9e22ee6d9d0197def782f77bfd0c88a2d8827d4f8cc0bbb1a6583ab67533cd07ba79a16cd9350272ed18c733fe809ea1ff70596627abdc65d452bdf817628bc8
 SHA512 
c37bf5199d3a857c9a7a12f3aa4ecfe9c04b49413aea862a053ebee24c137cd35769e5d5cc7e2bb7dd3bf9057f51ffada0b4e0c53cb3d417e05c8e3fc830705c
+DIST r8152-2.17.1.tar.bz2 75156 BLAKE2B 
05b55ea17a579add9a9abee89db490685086bfe29aeea6cbfbdbb63a81dbee4d1cac151822c178e52febe4bee14a3b5deb20737f671fcdbc6dd6d01938b1d18c
 SHA512 
e465b524ee8aaed12da8258195fb8a4c9fea0862812c1ab268e31ad6ec61444c4f4332d643124063b389fd1df7a271c6c057537d4cbe67188a1a2262b4793f42

diff --git a/net-misc/r8152/r8152-2.17.1.ebuild 
b/net-misc/r8152/r8152-2.17.1.ebuild
new file mode 100644
index 000000000000..7d3f7b0a6e6e
--- /dev/null
+++ b/net-misc/r8152/r8152-2.17.1.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2023 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"
+HOMEPAGE="https://www.realtek.com/en/component/zoo/category/network-interface-controllers-10-100-1000m-gigabit-ethernet-usb-3-0-software";
+SRC_URI="http://rtitwww.realtek.com/rtdrivers/cn/nic1/${P}.tar.bz2";
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="virtual/udev"
+DEPEND="${RDEPEND}"
+
+IUSE="+center-tap-short"
+
+# https://github.com/wget/realtek-r8152-linux/ keeps reasonably up to date
+# with kernel support patches. It appears to be used by the AUR maintainer.
+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