# Copyright 1999-2008 Gentoo Foundation# Distributed under the terms of the GNU General Public License v2# $Header: $ EAPI=2inherit linux-modDESCRIPTION="Drivers for Realtek 8169 based PCI-E/PCI Ethernet Cards"HOMEPAGE="http://www.realtek.com.tw/"SRC_URI="${P}.tar.bz2"LICENSE="GPL-2"SLOT="0"KEYWORDS="~amd64 ~x86"IUSE=""RESTRICT="bindist fetch mirror"BUILD_TARGETS="modules"BUILD_TARGET_ARCH="${ARCH}"MODULE_NAMES="src/r8169(misc:${S})"pkg_nofetch() { elog "Please download source from:" elog "http://www.realtek.com.tw/downloads/" elog "Then put the file in ${DISTDIR}/${SRC_URI}"}pkg_setup() { linux-mod_pkg_setup ebegin "Checking for R8169 support" ! linux_chkconfig_present R8169 eend $? if [[ $? -ne 0 ]] ; then eerror eerror "Please disable R8169 support in your kernel config" eerror "and recompile your kernel ..." eerror die "Confilts with R8169 support detected!" fi}