annotate net-misc/e1000/e1000-8.0.1.ebuild @ 28:442a7e018127

remove pgadmin3-1.8.2 ebuild and dist from Manifest
author Dirk Olmes <dirk.olmes@googlemail.com>
date Mon, 02 Jun 2008 12:04:53 +0200
parents bbf2357b3c0d
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
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
9 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
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() {
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
39 insinto "/lib/modules/${KV}/kernel/drivers/net/e1000"
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
40 doins "${S}/src/e1000.ko"
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
41 doman e1000.7
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
42 dodoc LICENSE README SUMS e1000.spec ldistrib.txt ${FILESDIR}/README.Gentoo
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 einfo "If you experience problems with low-end switches, read"
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
47 einfo "/usr/share/doc/${PF}/README.Gentoo.gz for a possible workaround"
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
48 einfo ""
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
49 }