Diff r8152-2.16.3 with a r8152-2.16.3-r1

/usr/portage/net-misc/r8152/r8152-2.16.3-r1.ebuild 2023-10-09 14:52:34.676368481 +0300
3 3

  
4 4
EAPI=8
5 5

  
6
inherit udev linux-info linux-mod
6
inherit linux-mod-r1 udev
7 7

  
8 8
DESCRIPTION="r8152 driver for Realtek USB FE / GBE / 2.5G Gaming Ethernet Family Controller"
9 9
HOMEPAGE="https://www.realtek.com/en/component/zoo/category/network-interface-controllers-10-100-1000m-gigabit-ethernet-usb-3-0-software"
10

  
11 10
SRC_URI="http://rtitwww.realtek.com/rtdrivers/cn/nic1/${P}.tar.bz2"
11

  
12 12
LICENSE="GPL-2"
13 13
SLOT="0"
14
KEYWORDS="amd64 ~x86"
14
KEYWORDS="~amd64 ~x86"
15 15

  
16 16
RDEPEND="virtual/udev"
17 17
DEPEND="${RDEPEND}"
18 18

  
19
MODULE_NAMES="r8152(net/usb:${S})"
20
BUILD_TARGETS="modules"
21 19
IUSE="+center-tap-short"
22 20

  
23 21
# https://github.com/wget/realtek-r8152-linux/ keeps reasonably up to date
......
26 24
	"${FILESDIR}"/${PN}-2.16.3-kernel-5.19-fix.patch
27 25
	"${FILESDIR}"/${PN}-2.16.3-kernel-6.1-fix.patch
28 26
	"${FILESDIR}"/${PN}-2.16.3-kernel-6.4.10-fix.patch
27
	"${FILESDIR}"/${PN}-2.16.3-asus-c5000-support.patch
29 28
)
30 29

  
31
pkg_setup() {
32
	linux-mod_pkg_setup
33
	BUILD_PARAMS="KERNELDIR=${KV_DIR}"
34
	BUILD_PARAMS+=" CONFIG_CTAP_SHORT=$(usex center-tap-short on off)"
30
src_compile() {
31
	local modlist=( ${PN}=kernel/net/usb:. )
32
	local modargs=(
33
		KERNELDIR="${KV_OUT_DIR}"
34
		CONFIG_CTAP_SHORT="$(usex center-tap-short on off)"
35
	)
36

  
37
	linux-mod-r1_src_compile
35 38
}
36 39

  
37 40
src_install() {
38
	linux-mod_src_install
39
	einstalldocs
41
	linux-mod-r1_src_install
40 42
	udev_dorules 50-usb-realtek-net.rules
41 43
}
42 44

  
43 45
pkg_postinst() {
44
	linux-mod_pkg_postinst
46
	linux-mod-r1_pkg_postinst
45 47
	udev_reload
46 48
}
47 49

  
48 50
pkg_postrm() {
49
	linux-mod_pkg_postrm
51
	linux-mod-r1_pkg_postrm
50 52
	udev_reload
51 53
}
Thank you!