diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-05-04 22:28:33 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-05-04 22:28:33 +0100 |
commit | a978c074e4272bb901fbe4a10de0a7b2af574f17 (patch) | |
tree | 8c764c1cc0576389ce22abd317bceba71ea5732d /net-misc/realtek-r8152 | |
parent | 40aaaa64e86ba6710bbeb31c4615a6ce80e75e11 (diff) |
gentoo resync : 04.05.2021
Diffstat (limited to 'net-misc/realtek-r8152')
-rw-r--r-- | net-misc/realtek-r8152/Manifest | 4 | ||||
-rw-r--r-- | net-misc/realtek-r8152/realtek-r8152-2.14.0.ebuild | 2 | ||||
-rw-r--r-- | net-misc/realtek-r8152/realtek-r8152-2.15.0.ebuild | 59 |
3 files changed, 63 insertions, 2 deletions
diff --git a/net-misc/realtek-r8152/Manifest b/net-misc/realtek-r8152/Manifest index cc99a71b0ec1..ec673c77f786 100644 --- a/net-misc/realtek-r8152/Manifest +++ b/net-misc/realtek-r8152/Manifest @@ -1,3 +1,5 @@ DIST realtek-r8152-2.14.0.tar.gz 88356 BLAKE2B c530080cab5e6f7433aa6452e3c5f1f19f14c2ac473751958d85efa5553d2b2889d80cc47c2ad4064ad5673008df97dce197254f445c5fc7ae3905c7833e1641 SHA512 2908e9963b6bec9d638514e6a54ab8bca0b56c4866245f476889e4c8462c36f2bece86abac2e5ece9aee1776f00f7d4a67fd5561d830a67e02e386d79aba07dd -EBUILD realtek-r8152-2.14.0.ebuild 1608 BLAKE2B d3e3d51c689e73b230936b46dd01ec582fffec9855b377e51e656ea385b171a088d35a004cf76fb2b99af5b10df6479707310db5205e9a91eb6eb95dede29780 SHA512 7fb49e147edd47989c3680bee50c51d76e17bb8c29bcd1d7abae1ef8b16f1ee38e2206b5e43a4d4508587fd2b9a12ae3b331b5c3bf831ec2db02987ca3539a7d +DIST realtek-r8152-2.15.0.tar.gz 93420 BLAKE2B 24b7a71adfddde3ff2ecc8c0b92d51f50202dada31a2f86a19d518f37814dd52d7ca5ffb5f81f07c7a92436f4fef53c8538a64d6bc5afbb0b6b7ccbace0a7923 SHA512 b46012d6e9c48ebb0eb0b7387933977bc56df7a9e010f0707907719e833a8f409d5af55ef84ebb0d54de89239e69697b6995c75e194ef7d0fa2c371d5fc362ba +EBUILD realtek-r8152-2.14.0.ebuild 1606 BLAKE2B f93f03a5a24aa816ef0f06ed33edfe3190c7d9e7745f19774e898c4286b5b93911cd078e88f3078f8332ea7af9f6e4684828466a829dcfd66646fca45d88672b SHA512 8d71c10ec640cd395c5a779e9214e339860f81f7b8c4974710c92316ed36a8dd1dbc2f570e0542f83830fa18f43cf5c20ab07f3b53d4a6dd83296db6e500ad2a +EBUILD realtek-r8152-2.15.0.ebuild 1608 BLAKE2B d3e3d51c689e73b230936b46dd01ec582fffec9855b377e51e656ea385b171a088d35a004cf76fb2b99af5b10df6479707310db5205e9a91eb6eb95dede29780 SHA512 7fb49e147edd47989c3680bee50c51d76e17bb8c29bcd1d7abae1ef8b16f1ee38e2206b5e43a4d4508587fd2b9a12ae3b331b5c3bf831ec2db02987ca3539a7d MISC metadata.xml 252 BLAKE2B c64921f238c2751f1f0746df3d109951ebf79c5e1ed5a2fa6d9c33f5420a6ff87c52a5387048a35c148e8cdd29beb406001a9aca3f6cc0f396a78ccb37ae2e3e SHA512 39fbe572d744f1a6f2a23b85a7d62706c478d05f2c74c30e48ccfca5ffd8f26d968fe0869fb9eed4b6494c655f950ab6445346da6eacf85d10da0c1a627cf59b diff --git a/net-misc/realtek-r8152/realtek-r8152-2.14.0.ebuild b/net-misc/realtek-r8152/realtek-r8152-2.14.0.ebuild index ac2d53b76ca1..1f3685ed7ba4 100644 --- a/net-misc/realtek-r8152/realtek-r8152-2.14.0.ebuild +++ b/net-misc/realtek-r8152/realtek-r8152-2.14.0.ebuild @@ -6,7 +6,7 @@ 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" +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" 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 000000000000..ac2d53b76ca1 --- /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 +} |