Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 38537 Details for
Bug 60321
nVidia nForce Driver 1.0-0283 is out
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
nforce-net-1.0-0283.ebuild
nforce-net-1.0-0283.ebuild (text/plain), 2.81 KB, created by
Marek Wiecek
on 2004-08-30 14:31:23 UTC
(
hide
)
Description:
nforce-net-1.0-0283.ebuild
Filename:
MIME Type:
Creator:
Marek Wiecek
Created:
2004-08-30 14:31:23 UTC
Size:
2.81 KB
patch
obsolete
># Copyright 1999-2004 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: /var/cvsroot/gentoo-x86/net-misc/nforce-net/nforce-net-1.0.0268.ebuild,v 1.0 2004/08/30 23:23:47 szczech Exp $ > >inherit gcc kernel-mod eutils > >NV_V="${PV/1.0./1.0-}" >X86_NV_PACKAGE="NFORCE-Linux-x86-${NV_V}" >NV_PACKAGE="${X86_NV_PACKAGE}" > >DESCRIPTION="Linux kernel module for the NVIDIA's nForce network chip" >HOMEPAGE="http://www.nvidia.com/" >SRC_URI="x86? (http://download.nvidia.com/XFree86/nforce/${NV_V}/${X86_NV_PACKAGE}-${X86_PKG_V}pkg1.run)" > > ># The SLOT needs to be set to $KV to prevent unmerges of modules for other kernels >LICENSE="NVIDIA" >SLOT="${KV}" >KEYWORDS="-* ~x86" >IUSE="" >RESTRICT="nostrip" > >DEPEND="virtual/linux-sources" > >src_unpack() { > cd ${WORKDIR} > bash ${DISTDIR}/${X86_NV_PACKAGE}-${X86_PKG_V}pkg1.run --extract-only >} > >src_compile() { > > cd ${WORKDIR}/${X86_NV_PACKAGE}-${X86_PKG_V}pkg1/nvnet > unset ARCH > make KERNSRC="/usr/src/linux" || die >} > >src_install() { > cd ${WORKDIR}/${X86_NV_PACKAGE}-${X86_PKG_V}pkg1/nvnet > # The driver goes into the standard modules location > insinto /lib/modules/${KV}/kernel/drivers/net > doins nvnet.ko > > # Docs > dodir /etc/modules.d > cat > ${D}/etc/modules.d/nvnet << EOF ># The nForce network driver supports two optimization modes: ># optimization=0 ; Throughput optimization ># optimization=1 ; CPU optimization ># CPU optimization mode ruduces the CPU utilization by using ># interrupt moderation. Throughput optimization mode maximizes ># the throughput. This mode has higher CPU consumption. ># By default, the driver runs in throughput optimization mode. > ># The "speed" module parameter can be used set the interface ># speed of the ethernet controller. By default the controller ># will autosense the interface speed, but also supports the ># following values: ># speed=0 ; auto ># speed=1 ; 10Mbps ># speed=2 ; 100Mpbs > ># The "duplex" module parameter can be used to specify the ># interface duplex. By default the controller will autoselect ># duplex, but also supports the following values: ># duplex=0 ; auto ># duplex=1 ; half duplex ># duplex=2 ; full duplex > >options nvnet optimization="1" speed="0" duplex="0" >EOF >} > >pkg_postinst() { > if [ "${ROOT}" = "/" ] > then > # Update module dependency > [ -x /usr/sbin/update-modules ] && /usr/sbin/update-modules > fi > > echo > einfo "You need to add \"nvnet\" to your /etc/modules.autoload to load" > einfo "this module when the system is started. Alternatively, you can" > einfo "use the 'hotplug' package ('emerge hotplug' then 'rc-update add" > einfo "hotplug default') to auto-detect and load \"nvnet\" on startup." > echo > einfo "Edit /etc/modules.d/nvnet and run \"update-modules\" to configure" > einfo "the \"nvnet\" driver for throughput optimization the next time it" > einfo "is loaded." >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 60321
: 38537