From: "Jay Faulkner" <jayf@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/r8152/
Date: Mon, 02 Jun 2025 01:41:29 +0000 (UTC)	[thread overview]
Message-ID: <1748828457.6c81399c27d1eb09d94b9d4768bf82f41fa3f296.jayf@gentoo> (raw)
commit:     6c81399c27d1eb09d94b9d4768bf82f41fa3f296
Author:     Jay Faulkner <jayf <AT> gentoo <DOT> org>
AuthorDate: Mon Jun  2 01:40:57 2025 +0000
Commit:     Jay Faulkner <jayf <AT> gentoo <DOT> org>
CommitDate: Mon Jun  2 01:40:57 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6c81399c
net-misc/r8152: add 2.20.1
Signed-off-by: Jay Faulkner <jayf <AT> gentoo.org>
 net-misc/r8152/Manifest            |  1 +
 net-misc/r8152/r8152-2.20.1.ebuild | 54 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 55 insertions(+)
diff --git a/net-misc/r8152/Manifest b/net-misc/r8152/Manifest
index 1ac167efab67..438afb4a8cbc 100644
--- a/net-misc/r8152/Manifest
+++ b/net-misc/r8152/Manifest
@@ -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
diff --git a/net-misc/r8152/r8152-2.20.1.ebuild b/net-misc/r8152/r8152-2.20.1.ebuild
new file mode 100644
index 000000000000..d0a59f666be8
--- /dev/null
+++ b/net-misc/r8152/r8152-2.20.1.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
+}
next             reply	other threads:[~2025-06-02  1:41 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-06-02  1:41 Jay Faulkner [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-08-23  3:21 [gentoo-commits] repo/gentoo:master commit in: net-misc/r8152/ Jay Faulkner
2025-06-02  1:41 Jay Faulkner
2025-06-02  1:41 Jay Faulkner
2025-03-15 14:13 Arthur Zamarin
2025-03-14 22:03 Jay Faulkner
2025-03-12 19:14 Jay Faulkner
2024-06-26  0:35 Yixun Lan
2024-04-05 11:29 Joonas Niilola
2023-11-22 18:01 Sam James
2023-11-22 18:01 Sam James
2023-11-17  6:33 Joonas Niilola
2023-11-17  6:33 Joonas Niilola
2023-08-03 16:23 Sam James
2023-01-17  3:45 Joonas Niilola
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox
  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):
  git send-email \
    --in-reply-to=1748828457.6c81399c27d1eb09d94b9d4768bf82f41fa3f296.jayf@gentoo \
    --to=jayf@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY
  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
  Be sure your reply has a Subject: header at the top and a blank line
  before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox