From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 2933D1382C5 for ; Tue, 4 May 2021 20:46:17 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 80B7FE0855; Tue, 4 May 2021 20:46:16 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 314E9E0855 for ; Tue, 4 May 2021 20:46:16 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 42C0A335C06 for ; Tue, 4 May 2021 20:46:15 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D4B5959C for ; Tue, 4 May 2021 20:46:13 +0000 (UTC) From: "Piotr Karbowski" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Piotr Karbowski" Message-ID: <1620161171.f7616a54786c4e6034eee288d9b57c5c434d5410.slashbeast@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/realtek-r8152/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-misc/realtek-r8152/Manifest net-misc/realtek-r8152/realtek-r8152-2.15.0.ebuild X-VCS-Directories: net-misc/realtek-r8152/ X-VCS-Committer: slashbeast X-VCS-Committer-Name: Piotr Karbowski X-VCS-Revision: f7616a54786c4e6034eee288d9b57c5c434d5410 X-VCS-Branch: master Date: Tue, 4 May 2021 20:46:13 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: cb4abae2-cfc7-4a49-a1ae-75433e4d25fd X-Archives-Hash: 70a114d52511c78d22573447952a226b commit: f7616a54786c4e6034eee288d9b57c5c434d5410 Author: Piotr Karbowski gentoo org> AuthorDate: Tue May 4 20:44:47 2021 +0000 Commit: Piotr Karbowski gentoo org> CommitDate: Tue May 4 20:46:11 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f7616a54 net-misc/realtek-r8152: 2.15.0 version bump. Signed-off-by: Piotr Karbowski gentoo.org> net-misc/realtek-r8152/Manifest | 1 + net-misc/realtek-r8152/realtek-r8152-2.15.0.ebuild | 59 ++++++++++++++++++++++ 2 files changed, 60 insertions(+) diff --git a/net-misc/realtek-r8152/Manifest b/net-misc/realtek-r8152/Manifest index b29e20ede11..6827d73dcf8 100644 --- a/net-misc/realtek-r8152/Manifest +++ b/net-misc/realtek-r8152/Manifest @@ -1 +1,2 @@ DIST realtek-r8152-2.14.0.tar.gz 88356 BLAKE2B c530080cab5e6f7433aa6452e3c5f1f19f14c2ac473751958d85efa5553d2b2889d80cc47c2ad4064ad5673008df97dce197254f445c5fc7ae3905c7833e1641 SHA512 2908e9963b6bec9d638514e6a54ab8bca0b56c4866245f476889e4c8462c36f2bece86abac2e5ece9aee1776f00f7d4a67fd5561d830a67e02e386d79aba07dd +DIST realtek-r8152-2.15.0.tar.gz 93420 BLAKE2B 24b7a71adfddde3ff2ecc8c0b92d51f50202dada31a2f86a19d518f37814dd52d7ca5ffb5f81f07c7a92436f4fef53c8538a64d6bc5afbb0b6b7ccbace0a7923 SHA512 b46012d6e9c48ebb0eb0b7387933977bc56df7a9e010f0707907719e833a8f409d5af55ef84ebb0d54de89239e69697b6995c75e194ef7d0fa2c371d5fc362ba diff --git a/net-misc/realtek-r8152/realtek-r8152-2.15.0.ebuild b/net-misc/realtek-r8152/realtek-r8152-2.15.0.ebuild new file mode 100644 index 00000000000..ac2d53b76ca --- /dev/null +++ b/net-misc/realtek-r8152/realtek-r8152-2.15.0.ebuild @@ -0,0 +1,59 @@ +# Copyright 2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit linux-mod linux-info udev + +SRC_URI="https://github.com/slashbeast/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" +KEYWORDS="~amd64 ~x86" + +DESCRIPTION="Out-of-tree driver for Realtek's 2.5 GbE USB NICs." +HOMEPAGE="https://www.realtek.com/en/component/zoo/category/network-interface-controllers-10-100-1000m-gigabit-ethernet-usb-3-0-software" + +SLOT="0" +LICENSE="GPL-2" +IUSE="" + +DEPEND=" + virtual/linux-sources + sys-kernel/linux-headers +" +RDEPEND="" + +MODULE_NAMES="r8152(net/usb)" + +pkg_setup() { + linux_config_exists + + for module in USB_USBNET USB_NET_CDC_NCM USB_NET_CDCETHER; do + linux_chkconfig_module "${module}" || ewarn "CONFIG_${module} needs to be built as module (builtin doesn't work)" + done + + linux_chkconfig_present MII || ewarn "CONFIG_MII needs to be built as module or builtin into the kernel" + + linux_chkconfig_present USB_RTL8152 && ewarn "CONFIG_USB_RTL8152 must NOT be enabled in the kernel!" + + linux-mod_pkg_setup + + BUILD_TARGETS="modules" + BUILD_PARAMS="CC=$(tc-getBUILD_CC) KERNELDIR=${KERNEL_DIR}" +} + +src_install() { + linux-mod_src_install + + udev_newrules 50-usb-realtek-net.rules 50-usb-realtek-net.rules +} + +pkg_postinst() { + linux-mod_pkg_postinst + udev_reload + + echo + elog "If the cdc_ncm was loaded before this r8152 driver, one might get a flood" + elog "of 'usbN: network connection: disconnected' in kernel log." + elog "In that case one needs to unload r8152, cdc_ether and cdc_ncm modules and" + elog "let udev load them in right order or manually load r8152." + echo +}