summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDean Bailey <alron@gentoo.org>2003-06-13 00:09:12 +0000
committerDean Bailey <alron@gentoo.org>2003-06-13 00:09:12 +0000
commit0663626b2988a2fe6f491fe0bb21434158d16d87 (patch)
treee0fe5c36d2adf4a08eba2172c624caa909f417bd /net-misc/nforce-net
parentfix for nForce1 issues that may crop up due to default optimization for thour... (diff)
downloadgentoo-2-0663626b2988a2fe6f491fe0bb21434158d16d87.tar.gz
gentoo-2-0663626b2988a2fe6f491fe0bb21434158d16d87.tar.bz2
gentoo-2-0663626b2988a2fe6f491fe0bb21434158d16d87.zip
fix for nForce1 issues that may crop up due to default optimization for thouroughput
Diffstat (limited to 'net-misc/nforce-net')
-rw-r--r--net-misc/nforce-net/ChangeLog8
-rw-r--r--net-misc/nforce-net/Manifest4
-rw-r--r--net-misc/nforce-net/files/digest-nforce-net-1.0.0261-r11
-rw-r--r--net-misc/nforce-net/nforce-net-1.0.0261-r1.ebuild88
4 files changed, 98 insertions, 3 deletions
diff --git a/net-misc/nforce-net/ChangeLog b/net-misc/nforce-net/ChangeLog
index 71b0aa8c7dfa..3dd9b384cda3 100644
--- a/net-misc/nforce-net/ChangeLog
+++ b/net-misc/nforce-net/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-misc/nforce-net
# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/nforce-net/ChangeLog,v 1.7 2003/06/12 10:07:03 seemant Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/nforce-net/ChangeLog,v 1.8 2003/06/13 00:09:09 alron Exp $
+
+*nforce-net-1.0.261-r1 (12 Jun 2003)
+
+ 12 Jun 2003; Dean Bailey <alron@gentoo.org> nforce-net-1.0.0261-r1.ebuild :
+ Fis for isues with some nForce1 boards and the Thouroughput optimization
+ that the driver defaults to. Unmasked.
*nforce-net-1.0.0261 (12 Jun 2003)
diff --git a/net-misc/nforce-net/Manifest b/net-misc/nforce-net/Manifest
index f9f59eabe1f0..0b511e03fd52 100644
--- a/net-misc/nforce-net/Manifest
+++ b/net-misc/nforce-net/Manifest
@@ -1,9 +1,9 @@
-MD5 22eac18990e24b5af89e6cfdb2fb8791 ChangeLog 1285
+MD5 b7b14b4d9d6c0e0c1957677ff5b89759 ChangeLog 1283
MD5 a4c8585c337d2d53b9d51afe72f88d36 nforce-net-1.0.0248-r2.ebuild 1989
MD5 54cc6c20f2bf3f2dd1b35dc7d673cbe7 nforce-net-1.0.0248.ebuild 1737
MD5 9fbda1f91d8185805534106f5b92d1e8 nforce-net-1.0.0256.ebuild 1601
MD5 e81f077867a744f807aa48d8347a763d nforce-net-1.0.0261.ebuild 1601
-MD5 03767eb8aeb7c4d4d53a5518acbfe7e7 nforce-net-1.0.0261-r1.ebuild 2827
+MD5 4bbc132922844fd6f373dd91ef99120f nforce-net-1.0.0261-r1.ebuild 2830
MD5 5759391de3247b16f6a8eb2ed1ee9940 files/digest-nforce-net-1.0.0248 73
MD5 5759391de3247b16f6a8eb2ed1ee9940 files/digest-nforce-net-1.0.0248-r2 73
MD5 03580a26c5b10797541c68e7473510bf files/digest-nforce-net-1.0.0256 73
diff --git a/net-misc/nforce-net/files/digest-nforce-net-1.0.0261-r1 b/net-misc/nforce-net/files/digest-nforce-net-1.0.0261-r1
new file mode 100644
index 000000000000..be8c8c18ae9c
--- /dev/null
+++ b/net-misc/nforce-net/files/digest-nforce-net-1.0.0261-r1
@@ -0,0 +1 @@
+MD5 19e9c6592e8db6ba55c08d42dc49163f NVIDIA_nforce-1.0-0261.tar.gz 87301
diff --git a/net-misc/nforce-net/nforce-net-1.0.0261-r1.ebuild b/net-misc/nforce-net/nforce-net-1.0.0261-r1.ebuild
new file mode 100644
index 000000000000..a01c7ec4936a
--- /dev/null
+++ b/net-misc/nforce-net/nforce-net-1.0.0261-r1.ebuild
@@ -0,0 +1,88 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/nforce-net/nforce-net-1.0.0261-r1.ebuild,v 1.1 2003/06/13 00:09:09 alron Exp $
+
+inherit gcc
+
+# Make sure Portage does _NOT_ strip symbols. Need both lines for
+# Portage 1.8.9+
+DEBUG="yes"
+RESTRICT="nostrip"
+
+NV_V="${PV/1.0./1.0-}"
+NV_PACKAGE="NVIDIA_nforce-${NV_V}"
+S="${WORKDIR}/nforce"
+DESCRIPTION="Linux kernel module for the NVIDIA's nForce network chip"
+SRC_URI="http://download.nvidia.com/XFree86/nforce/${NV_V}/${NV_PACKAGE}.tar.gz"
+HOMEPAGE="http://www.nvidia.com/"
+
+# The slow needs to be set to $KV to prevent unmerges of
+# modules for other kernels.
+LICENSE="NVIDIA"
+SLOT="${KV}"
+KEYWORDS="-* x86"
+
+DEPEND="virtual/linux-sources >=sys-apps/portage-1.9.10"
+
+src_compile() {
+ # Portage should determine the version of the kernel sources
+ check_KV
+ cd ${S}/nvnet
+ make KERNSRC="/usr/src/linux" || die
+}
+
+src_install() {
+ # The driver goes into the standard modules location
+ insinto /lib/modules/${KV}/kernel/drivers/net
+ doins nvnet/nvnet.o
+
+ # Docs
+ dohtml ${S}/ReleaseNotes.html
+
+ dodir /etc/modules.d
+ cat > ${D}/etc/modules.d/nvnet << EOF
+# The nForce network driver supports two optimization modes:
+# optimization=1 ; CPU optimization
+# optimization=2 ; Throughput 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-mmodules\" to configure"
+ einfo "the \"nvnet\" driver to Throughput optimization the next time it"
+ einfo "is loaded."
+}
+