From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 358B51388C0 for ; Sun, 21 Feb 2016 14:19:39 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8DD0A21C013; Sun, 21 Feb 2016 14:19:37 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 198A621C013 for ; Sun, 21 Feb 2016 14:19:36 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A7407340B7F for ; Sun, 21 Feb 2016 14:19:35 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 351AF8E9 for ; Sun, 21 Feb 2016 14:19:32 +0000 (UTC) From: "James Le Cuirot" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "James Le Cuirot" Message-ID: <1456064329.c8905a00654e1e7c9f0a109875519a753696cec8.chewi@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/r8168/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-misc/r8168/r8168-8.041.00-r1.ebuild net-misc/r8168/r8168-8.041.00.ebuild X-VCS-Directories: net-misc/r8168/ X-VCS-Committer: chewi X-VCS-Committer-Name: James Le Cuirot X-VCS-Revision: c8905a00654e1e7c9f0a109875519a753696cec8 X-VCS-Branch: master Date: Sun, 21 Feb 2016 14:19:32 +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-Archives-Salt: b330ba57-37cf-4044-beac-b4e66e772d1d X-Archives-Hash: d88365613ed31d61317345f24ae46446 commit: c8905a00654e1e7c9f0a109875519a753696cec8 Author: James Le Cuirot gentoo org> AuthorDate: Sun Feb 21 14:18:27 2016 +0000 Commit: James Le Cuirot gentoo org> CommitDate: Sun Feb 21 14:18:49 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c8905a00 net-misc/r8168: Linux 4.5 fix and EAPI bump Package-Manager: portage-2.2.27 .../{r8168-8.041.00.ebuild => r8168-8.041.00-r1.ebuild} | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/net-misc/r8168/r8168-8.041.00.ebuild b/net-misc/r8168/r8168-8.041.00-r1.ebuild similarity index 75% rename from net-misc/r8168/r8168-8.041.00.ebuild rename to net-misc/r8168/r8168-8.041.00-r1.ebuild index 382e7b0..b32b2e2 100644 --- a/net-misc/r8168/r8168-8.041.00.ebuild +++ b/net-misc/r8168/r8168-8.041.00-r1.ebuild @@ -1,18 +1,16 @@ -# Copyright 1999-2015 Gentoo Foundation +# Copyright 1999-2016 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ -EAPI=5 +EAPI=6 -inherit linux-mod eutils +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/0003-${P}.tar.bz2 -> ${P}.tar.bz2" LICENSE="GPL-2" SLOT="0" -IUSE="" - KEYWORDS="~amd64 ~x86" MODULE_NAMES="r8168(net:${S}/src)" @@ -26,6 +24,14 @@ pkg_setup() { BUILD_PARAMS="KERNELDIR=${KV_DIR}" } +src_prepare() { + default + + if kernel_is -ge 4 5; then + sed -i 's/NETIF_F_ALL_CSUM/NETIF_F_CSUM_MASK/g' src/r8168_n.c || die + fi +} + src_install() { linux-mod_src_install dodoc README