summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2016-07-01 19:17:39 +0100
committerJames Le Cuirot <chewi@gentoo.org>2016-07-01 22:33:03 +0100
commit4bd05e22623dcda115dafaa7490eb8e4bc11ab7d (patch)
tree95ea89b51ce534224e347774c9b066bf30e7a007 /net-misc/r8168
parentnet-analyzer/netdata: add ebuilds for versions 1.2.0 and 9999 (diff)
downloadgentoo-4bd05e22623dcda115dafaa7490eb8e4bc11ab7d.tar.gz
gentoo-4bd05e22623dcda115dafaa7490eb8e4bc11ab7d.tar.bz2
gentoo-4bd05e22623dcda115dafaa7490eb8e4bc11ab7d.zip
net-misc/r8168: Version bump to 8.042.00
I have included fixes for Linux 4.7. Package-Manager: portage-2.3.0
Diffstat (limited to 'net-misc/r8168')
-rw-r--r--net-misc/r8168/Manifest1
-rw-r--r--net-misc/r8168/r8168-8.042.00.ebuild41
2 files changed, 42 insertions, 0 deletions
diff --git a/net-misc/r8168/Manifest b/net-misc/r8168/Manifest
index 00195d69ded..333471d2ed3 100644
--- a/net-misc/r8168/Manifest
+++ b/net-misc/r8168/Manifest
@@ -1,2 +1,3 @@
DIST r8168-8.040.00.tar.bz2 87770 SHA256 da0444fcd7aabb7762310cdf2047fd0aeb7a9ed97a3d6b80d62a0fc71e0730bf SHA512 58ec8c1ff8742ad1ee0e2a0fa1141a8ace26cac954542b16325c0d9eba6113a2baaf4de2c61025a6fc6532eb17aa2e7645daee0fef539b219f863355c731d6d8 WHIRLPOOL 80ca19d49e03ca6d1b9524710511a3b632a13ec8045515c3264663a73394cede1e04d4cad2f8f1ea5d7a8b3ab9554c1bfaec7ae356bcdf397ba6d045123d314c
DIST r8168-8.041.00.tar.bz2 88154 SHA256 13fca576fac856510e8eb70645c84954bdcfed68cd26cf4773138915690ba36e SHA512 56816b8a98bd81c93aeff31ee111de95a827a4da96ef8832d735483abe412e1df9f1de097f5e0c1cce4d9d94932e0747630e94f2869368c4ea06a9e145ad542b WHIRLPOOL 83b70a21ce3d2e29b249f0c6305425348405c64aa9741f32bfb7cd27abbdf314f1bad1207d696296a5f24dcbc99c357280be6b7687aed1e234f41b51af5cba41
+DIST r8168-8.042.00.tar.bz2 91472 SHA256 fddf7f3af575a60207cebe95a8d2993b3730f3c5594cd9d6a55999fc1e843605 SHA512 d8c3ae44838dcdc57045b79d566f279e7d9273a77c78dcf054d799663355ea1535ba75d0d72202d5dd1e233f760e58c7f36c0bddc13e9b1d3fd129f994f4cd5b WHIRLPOOL a236614c3b3acca70dfc33aacaf7b04cba8712918c9e8a5b85ed3a08a6a3379d24d019754f6731283a4c3a15c04d744ef052ec89500d29de83d7adbdbf5a9d5f
diff --git a/net-misc/r8168/r8168-8.042.00.ebuild b/net-misc/r8168/r8168-8.042.00.ebuild
new file mode 100644
index 00000000000..c646233adb7
--- /dev/null
+++ b/net-misc/r8168/r8168-8.042.00.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit linux-info linux-mod eutils
+
+DESCRIPTION="r8168 driver for Realtek 8111/8168 PCI-E NICs"
+HOMEPAGE="http://www.realtek.com.tw"
+SRC_URI="http://12244.wpc.azureedge.net/8012244/drivers/rtdrivers/cn/nic/0005-${P}.tar.bz2 -> ${P}.tar.bz2"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+MODULE_NAMES="r8168(net:${S}/src)"
+BUILD_TARGETS="modules"
+CONFIG_CHECK="!R8169"
+
+ERROR_R8169="${P} requires Realtek 8169 PCI Gigabit Ethernet adapter (CONFIG_R8169) to be DISABLED"
+
+pkg_setup() {
+ linux-mod_pkg_setup
+ BUILD_PARAMS="KERNELDIR=${KV_DIR}"
+}
+
+src_prepare() {
+ default
+
+ if kernel_is -ge 4 7; then
+ sed -i \
+ -e '/gso_min_segs/d' \
+ -e 's/dev->trans_start = jiffies/netif_trans_update(dev)/g' \
+ src/r8168_n.c || die
+ fi
+}
+
+src_install() {
+ linux-mod_src_install
+ dodoc README
+}