/[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 - (hide annotations) (download)
Tue Apr 13 21:02:49 2004 UTC (15 years, 9 months ago) by mholzer
Branch: MAIN
Version bumped.

1 mholzer 1.1 # Copyright 1999-2004 Gentoo Technologies, Inc.
2     # Distributed under the terms of the GNU General Public License v2
3     # $Header: /home/cvsroot/gentoo-x86/net-misc/e1000/e1000-5.2.30.1.ebuild,v 1.2 2004/03/01 07:42:08 mholzer Exp $
4    
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     RESTRICT="nomirror"
12     SLOT="${KV}"
13     KEYWORDS="~x86"
14     S="${WORKDIR}/${P}"
15    
16    
17     src_unpack() {
18     unpack ${A}
19     cd ${S}/src
20     # rem out the DEPVER line, since it would cause a sandbox violation and
21     # since it is only needed by RPM ;-)
22     sed -i "/^DEPVER :=/ d" Makefile
23     }
24    
25    
26     src_compile() {
27     check_KV
28     cd "${S}/src"
29    
30     # workaround needed for some ethernet controllers to work with low end switches
31     if [[ ${USE_INCOMPATIBLE_SWITCH} ]]
32     then CFLAGS_EXTRA="CFLAGS_EXTRA=-DE_1000_MASTER_SLAVE=1"
33     else CFLAGS_EXTRA=""
34     fi
35    
36     make ${CFLAGS_EXTRA} KSRC=/usr/src/linux clean e1000.o
37     }
38    
39    
40     src_install() {
41     insinto "/lib/modules/${KV}/kernel/drivers/net"
42     doins "${S}/src/e1000.o"
43     doman e1000.7
44     dodoc LICENSE README SUMS e1000.spec ldistrib.txt ${FILESDIR}/README.Gentoo
45     einfo ""
46     einfo "In case you have problems, loading the module, try to run depmod -A"
47     einfo ""
48     einfo "If you experience problems with low-end switches, read"
49     einfo "/usr/share/doc/${PF}/README.Gentoo.gz for a possible workaround"
50     einfo ""
51     }

  ViewVC Help
Powered by ViewVC 1.1.20