| 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.029.00.ebuild,v 1.1 2012/05/05 19:10:34 joker 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 |
pkg_setup() {
|
| 25 |
linux-mod_pkg_setup
|
| 26 |
BUILD_PARAMS="KERNELDIR=${KV_DIR}"
|
| 27 |
}
|
| 28 |
|
| 29 |
src_install() {
|
| 30 |
linux-mod_src_install
|
| 31 |
dodoc README
|
| 32 |
}
|