1 |
# Copyright 1999-2012 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/net-misc/r8168/r8168-8.028.00.ebuild,v 1.4 2012/04/05 21:12:07 phajdan.jr Exp $ |
4 |
|
5 |
EAPI=4 |
6 |
|
7 |
inherit linux-mod eutils |
8 |
|
9 |
DESCRIPTION="r8168 driver for Realtek 8111/8168 PCI-E NICs" |
10 |
HOMEPAGE="http://www.realtek.com.tw" |
11 |
SRC_URI="http://r8168.googlecode.com/files/${P}.tar.bz2" |
12 |
LICENSE="GPL-2" |
13 |
SLOT="0" |
14 |
IUSE="" |
15 |
|
16 |
KEYWORDS="amd64 x86" |
17 |
|
18 |
MODULE_NAMES="r8168(net:${S}/src)" |
19 |
BUILD_TARGETS="modules" |
20 |
CONFIG_CHECK="!R8169" |
21 |
|
22 |
ERROR_R8169="${P} requires Realtek 8169 PCI Gigabit Ethernet adapter (CONFIG_R8169) to be DISABLED" |
23 |
|
24 |
src_prepare() { |
25 |
epatch "${FILESDIR}/${P}-linux-3.3-compat.patch" |
26 |
} |
27 |
|
28 |
pkg_setup() { |
29 |
linux-mod_pkg_setup |
30 |
BUILD_PARAMS="KERNELDIR=${KV_DIR}" |
31 |
} |
32 |
|
33 |
src_install() { |
34 |
linux-mod_src_install |
35 |
dodoc README |
36 |
} |