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 994F413933E for ; Wed, 21 Jul 2021 21:51:40 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id F1BBCE0ABE; Wed, 21 Jul 2021 21:51:39 +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 D47D9E0ABE for ; Wed, 21 Jul 2021 21:51:39 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 C17F1342A69 for ; Wed, 21 Jul 2021 21:51:38 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1E4185C4 for ; Wed, 21 Jul 2021 21:51:37 +0000 (UTC) From: "Pacho Ramos" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Pacho Ramos" Message-ID: <1626904018.c11f89c54c7e2ba7d5ccf3bd4fb4c1dc29035779.pacho@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/r8168/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-misc/r8168/metadata.xml net-misc/r8168/r8168-8.049.02-r1.ebuild X-VCS-Directories: net-misc/r8168/ X-VCS-Committer: pacho X-VCS-Committer-Name: Pacho Ramos X-VCS-Revision: c11f89c54c7e2ba7d5ccf3bd4fb4c1dc29035779 X-VCS-Branch: master Date: Wed, 21 Jul 2021 21:51:37 +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: 05bf225e-3254-4083-9215-4dab614729ac X-Archives-Hash: 05fac4b2ed38362ca96230b96edfa7b9 commit: c11f89c54c7e2ba7d5ccf3bd4fb4c1dc29035779 Author: Karlson2k (Evgeny Grin) narod ru> AuthorDate: Fri Jul 2 20:30:28 2021 +0000 Commit: Pacho Ramos gentoo org> CommitDate: Wed Jul 21 21:46:58 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c11f89c5 net-misc/r8168: added USE flag * Added USE flag to enable firmware loading support * Demoted kernel config check from error to warning Signed-off-by: Karlson2k (Evgeny Grin) narod.ru> Closes: https://github.com/gentoo/gentoo/pull/21739 Signed-off-by: Pacho Ramos gentoo.org> net-misc/r8168/metadata.xml | 3 +++ net-misc/r8168/r8168-8.049.02-r1.ebuild | 36 +++++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+) diff --git a/net-misc/r8168/metadata.xml b/net-misc/r8168/metadata.xml index 1b220df0967..b8dfb31fc70 100644 --- a/net-misc/r8168/metadata.xml +++ b/net-misc/r8168/metadata.xml @@ -8,4 +8,7 @@ Official Realtek r8168 linux driver. The following cards are currently supported: RTL8111B RTL8168B RTL8111 RTL8168 RTL8111C RTL8111CP RTL8111D(L) RTL8168C RTL8111DP RTL8111E RTL8168E RTL8111F RTL8411 + + Enable support for automatic firmware loading + diff --git a/net-misc/r8168/r8168-8.049.02-r1.ebuild b/net-misc/r8168/r8168-8.049.02-r1.ebuild new file mode 100644 index 00000000000..f298adf1751 --- /dev/null +++ b/net-misc/r8168/r8168-8.049.02-r1.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit linux-info linux-mod + +DESCRIPTION="r8168 driver for Realtek 8111/8168 PCI-E NICs" +HOMEPAGE="https://www.realtek.com/en/component/zoo/category/network-interface-controllers-10-100-1000m-gigabit-ethernet-pci-express-software" + +# "GBE Ethernet LINUX driver r8168 for kernel up to 5.6" from above link, +# we need to mirror it to avoid users from needing to fill a captcha to +# download +SRC_URI="https://dev.gentoo.org/~pacho/${PN}/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +MODULE_NAMES="r8168(net:${S}/src)" +BUILD_TARGETS="modules" +IUSE="use-firmware" + +CONFIG_CHECK="~!R8169" +WARNING_R8169="CONFIG_R8169 is enabled. ${P} will not be loaded unless kernel driver Realtek 8169 PCI Gigabit Ethernet (CONFIG_R8169) is DISABLED." + +pkg_setup() { + linux-mod_pkg_setup + BUILD_PARAMS="KERNELDIR=${KV_DIR}" + BUILD_PARAMS+=" ENABLE_USE_FIRMWARE_FILE=$(usex use-firmware y n)" +} + +src_install() { + linux-mod_src_install + einstalldocs +}