/[gentoo-x86]/net-misc/e1000/e1000-5.2.39.ebuild
Gentoo

Contents of /net-misc/e1000/e1000-5.2.39.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (hide annotations) (download) (vendor branch)
Wed Nov 30 09:54:56 2005 UTC (14 years, 1 month ago) by chriswhite
Changes since 1.1: +3 -4 lines
*** empty log message ***

1 chriswhite 1.1.1.1 # Copyright 1999-2004 Gentoo Foundation
2 mholzer 1.1 # Distributed under the terms of the GNU General Public License v2
3 chriswhite 1.1.1.1 # $Header: /var/cvsroot/gentoo-x86/net-misc/e1000/e1000-5.2.39.ebuild,v 1.4 2004/07/15 02:45:39 agriffis Exp $
4 mholzer 1.1
5     DESCRIPTION="Kernel driver for Intel Pro/1000 ethernet adapters."
6     HOMEPAGE="http://support.intel.com/support/network/adapter/1000/index.htm"
7     LICENSE="GPL-2"
8     DEPEND="virtual/linux-sources"
9    
10     SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
11     SLOT="${KV}"
12     KEYWORDS="~x86"
13 chriswhite 1.1.1.1 IUSE=""
14 mholzer 1.1
15    
16     src_unpack() {
17     unpack ${A}
18     cd ${S}/src
19     # rem out the DEPVER line, since it would cause a sandbox violation and
20     # since it is only needed by RPM ;-)
21     sed -i "/^DEPVER :=/ d" Makefile
22     }
23    
24    
25     src_compile() {
26     check_KV
27     cd "${S}/src"
28    
29     # workaround needed for some ethernet controllers to work with low end switches
30     if [[ ${USE_INCOMPATIBLE_SWITCH} ]]
31     then CFLAGS_EXTRA="CFLAGS_EXTRA=-DE_1000_MASTER_SLAVE=1"
32     else CFLAGS_EXTRA=""
33     fi
34    
35     make ${CFLAGS_EXTRA} KSRC=/usr/src/linux clean e1000.o
36     }
37    
38    
39     src_install() {
40     insinto "/lib/modules/${KV}/kernel/drivers/net"
41     doins "${S}/src/e1000.o"
42     doman e1000.7
43     dodoc LICENSE README SUMS e1000.spec ldistrib.txt ${FILESDIR}/README.Gentoo
44     einfo ""
45     einfo "In case you have problems, loading the module, try to run depmod -A"
46     einfo ""
47     einfo "If you experience problems with low-end switches, read"
48     einfo "/usr/share/doc/${PF}/README.Gentoo.gz for a possible workaround"
49     einfo ""
50     }

  ViewVC Help
Powered by ViewVC 1.1.20