annotate net-misc/e1000e/e1000e-0.4.1.7.ebuild @ 53:5f7d8fd4d921

revbumps for e1000/e1000e
author holger@hoho.dyndns.org
date Fri, 04 Jul 2008 14:37:06 +0200
parents net-misc/e1000e/e1000e-0.2.9.5.ebuild@5ecdf92ae1be
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
1 # Copyright 1999-2006 Gentoo Foundation
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
2 # Distributed under the terms of the GNU General Public License v2
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
3
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
4 DESCRIPTION="Kernel driver for Intel Pro/1000 ethernet adapters."
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
5 HOMEPAGE="http://support.intel.com/support/network/adapter/1000/index.htm"
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
6 LICENSE="GPL-2"
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
7 DEPEND="virtual/linux-sources"
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
8
21
d371aa5e3d6c new e1000e PCI-Express driver
holger@hoho.dyndns.org
parents: 18
diff changeset
9 SRC_URI="mirror://sourceforge/e1000/${P}.tar.gz"
0
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
10 SLOT="0"
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
11 KEYWORDS="x86"
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
12 IUSE=""
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
13
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
14
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
15 src_unpack() {
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
16 unpack ${A}
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
17 cd ${S}/src
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
18 # rem out the DEPVER line, since it would cause a sandbox violation and
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
19 # since it is only needed by RPM ;-)
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
20 sed -i "/^DEPVER :=/ d" Makefile
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
21 }
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
22
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
23
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
24 src_compile() {
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
25 check_KV
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
26 cd "${S}/src"
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
27
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
28 # workaround needed for some ethernet controllers to work with low end switches
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
29 if [[ ${USE_INCOMPATIBLE_SWITCH} ]]
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
30 then CFLAGS_EXTRA="CFLAGS_EXTRA=-DE_1000_MASTER_SLAVE=1"
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
31 else CFLAGS_EXTRA=""
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
32 fi
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
33
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
34 make ${CFLAGS_EXTRA} KSRC=/usr/src/linux
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
35 }
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
36
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
37
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
38 src_install() {
42
5ecdf92ae1be actually install the right files..
root@hho.wizards.de
parents: 21
diff changeset
39 insinto "/lib/modules/${KV}/kernel/drivers/net/e1000e"
5ecdf92ae1be actually install the right files..
root@hho.wizards.de
parents: 21
diff changeset
40 doins "${S}/src/e1000e.ko"
5ecdf92ae1be actually install the right files..
root@hho.wizards.de
parents: 21
diff changeset
41 doman e1000e.7
5ecdf92ae1be actually install the right files..
root@hho.wizards.de
parents: 21
diff changeset
42 dodoc COPYING README SUMS e1000e.spec
0
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
43 einfo ""
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
44 einfo "In case you have problems when loading the module, try to run depmod -A"
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
45 einfo ""
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
46 }