# HG changeset patch # User holger@hoho.dyndns.org # Date 1211739731 -7200 # Node ID d371aa5e3d6c3a2b5729d703c4c8f75d3a184ff9 # Parent 975c363b58cfc00b0467ea40855ac2862a10b594 new e1000e PCI-Express driver diff -r 975c363b58cf -r d371aa5e3d6c net-misc/e1000e/Manifest --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/net-misc/e1000e/Manifest Sun May 25 20:22:11 2008 +0200 @@ -0,0 +1,2 @@ +DIST e1000e-0.2.9.5.tar.gz 175390 RMD160 0234455b22b4cb61e2956d4729503a68a178db7c SHA1 e050692d0854b1308b9eb5042f166d34e33a75fa SHA256 051861bc49a759a519f77b10a7835059f270c280423c10f8da00a835430c62a9 +EBUILD e1000e-0.2.9.5.ebuild 1378 RMD160 d68c952a49dea8f7b106e722a3331efa46860de7 SHA1 d981ac0074d619f2f16587913870f5add26f53cb SHA256 6e60ea889bb86a8e1570a9a4afa653acfe927b8c3effbd3e3983dd8963024bc6 diff -r 975c363b58cf -r d371aa5e3d6c net-misc/e1000e/e1000e-0.2.9.5.ebuild --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/net-misc/e1000e/e1000e-0.2.9.5.ebuild Sun May 25 20:22:11 2008 +0200 @@ -0,0 +1,49 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +DESCRIPTION="Kernel driver for Intel Pro/1000 ethernet adapters." +HOMEPAGE="http://support.intel.com/support/network/adapter/1000/index.htm" +LICENSE="GPL-2" +DEPEND="virtual/linux-sources" + +SRC_URI="mirror://sourceforge/e1000/${P}.tar.gz" +SLOT="0" +KEYWORDS="x86" +IUSE="" + + +src_unpack() { + unpack ${A} + cd ${S}/src + # rem out the DEPVER line, since it would cause a sandbox violation and + # since it is only needed by RPM ;-) + sed -i "/^DEPVER :=/ d" Makefile +} + + +src_compile() { + check_KV + cd "${S}/src" + + # workaround needed for some ethernet controllers to work with low end switches + if [[ ${USE_INCOMPATIBLE_SWITCH} ]] + then CFLAGS_EXTRA="CFLAGS_EXTRA=-DE_1000_MASTER_SLAVE=1" + else CFLAGS_EXTRA="" + fi + + make ${CFLAGS_EXTRA} KSRC=/usr/src/linux +} + + +src_install() { + insinto "/lib/modules/${KV}/kernel/drivers/net/e1000" + doins "${S}/src/e1000.ko" + doman e1000.7 + dodoc LICENSE README SUMS e1000.spec ldistrib.txt ${FILESDIR}/README.Gentoo + einfo "" + einfo "In case you have problems when loading the module, try to run depmod -A" + einfo "" + einfo "If you experience problems with low-end switches, read" + einfo "/usr/share/doc/${PF}/README.Gentoo.gz for a possible workaround" + einfo "" +}