1 |
commit: c8905a00654e1e7c9f0a109875519a753696cec8 |
2 |
Author: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Feb 21 14:18:27 2016 +0000 |
4 |
Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Feb 21 14:18:49 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c8905a00 |
7 |
|
8 |
net-misc/r8168: Linux 4.5 fix and EAPI bump |
9 |
|
10 |
Package-Manager: portage-2.2.27 |
11 |
|
12 |
.../{r8168-8.041.00.ebuild => r8168-8.041.00-r1.ebuild} | 16 +++++++++++----- |
13 |
1 file changed, 11 insertions(+), 5 deletions(-) |
14 |
|
15 |
diff --git a/net-misc/r8168/r8168-8.041.00.ebuild b/net-misc/r8168/r8168-8.041.00-r1.ebuild |
16 |
similarity index 75% |
17 |
rename from net-misc/r8168/r8168-8.041.00.ebuild |
18 |
rename to net-misc/r8168/r8168-8.041.00-r1.ebuild |
19 |
index 382e7b0..b32b2e2 100644 |
20 |
--- a/net-misc/r8168/r8168-8.041.00.ebuild |
21 |
+++ b/net-misc/r8168/r8168-8.041.00-r1.ebuild |
22 |
@@ -1,18 +1,16 @@ |
23 |
-# Copyright 1999-2015 Gentoo Foundation |
24 |
+# Copyright 1999-2016 Gentoo Foundation |
25 |
# Distributed under the terms of the GNU General Public License v2 |
26 |
# $Id$ |
27 |
|
28 |
-EAPI=5 |
29 |
+EAPI=6 |
30 |
|
31 |
-inherit linux-mod eutils |
32 |
+inherit linux-info linux-mod eutils |
33 |
|
34 |
DESCRIPTION="r8168 driver for Realtek 8111/8168 PCI-E NICs" |
35 |
HOMEPAGE="http://www.realtek.com.tw" |
36 |
SRC_URI="http://12244.wpc.azureedge.net/8012244/drivers/rtdrivers/cn/nic/0003-${P}.tar.bz2 -> ${P}.tar.bz2" |
37 |
LICENSE="GPL-2" |
38 |
SLOT="0" |
39 |
-IUSE="" |
40 |
- |
41 |
KEYWORDS="~amd64 ~x86" |
42 |
|
43 |
MODULE_NAMES="r8168(net:${S}/src)" |
44 |
@@ -26,6 +24,14 @@ pkg_setup() { |
45 |
BUILD_PARAMS="KERNELDIR=${KV_DIR}" |
46 |
} |
47 |
|
48 |
+src_prepare() { |
49 |
+ default |
50 |
+ |
51 |
+ if kernel_is -ge 4 5; then |
52 |
+ sed -i 's/NETIF_F_ALL_CSUM/NETIF_F_CSUM_MASK/g' src/r8168_n.c || die |
53 |
+ fi |
54 |
+} |
55 |
+ |
56 |
src_install() { |
57 |
linux-mod_src_install |
58 |
dodoc README |