# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: inherit linux-mod DESCRIPTION="Drivers for the realtek 8168 gigabit ethernet chip" HOMEPAGE="http://www.realtek.com.tw/downloads/downloads1-3.aspx?keyword=8168" SRC_URI="http://www.spillkescht.lu/david/linux-${PN}-${PV}.zip" #SRC_URI="ftp://202.65.194.18/cn/nic/rtl8111brtl8168b/linux-${PN}\(${PV}\).zip" #ftp://152.104.238.194/cn/nic/rtl8111brtl8168b/linux-r1000\(103\).zip #ftp://210.51.181.211/cn/nic/rtl8111brtl8168b/linux-${PN}\(${V}\).zip" LICENSE="GPL" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND="<=sys-kernel/gentoo-sources-2.6.16-r12 app-arch/unzip" BUILD_TARGETS="modules" MODULE_NAMES="r1000(net:)" pkg_setup() { linux-mod_pkg_setup BUILD_PARAMS="KSRC=${KV_DIR}" } src_unpack() { unpack ${A} #S=${WORKDIR}/${PN}/ mkdir ${S} mv ${WORKDIR}/${PN}/* ${S}/ rmdir ${WORKDIR}/${PN} convert_to_m ${S}/Makefile } src_install() { #linux-mod_src_install insinto /lib/modules/${KV}/kernel/net/ doins ${S}/src/r1000.ko dodoc README }