/[gentoo-x86]/net-misc/nforce-net/nforce-net-1.0.0261.ebuild
Gentoo

Contents of /net-misc/nforce-net/nforce-net-1.0.0261.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sun Aug 3 03:57:32 2003 UTC (16 years, 4 months ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
remove deprecated $DEBUG

1 # Copyright 1999-2003 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /home/cvsroot/gentoo-x86/net-misc/nforce-net/nforce-net-1.0.0261.ebuild,v 1.3 2003/07/13 14:31:36 aliz Exp $
4
5 inherit gcc
6
7 # Make sure Portage does _NOT_ strip symbols. Need both lines for
8 # Portage 1.8.9+
9 DEBUG="yes"
10 RESTRICT="nostrip"
11
12 NV_V="${PV/1.0./1.0-}"
13 NV_PACKAGE="NVIDIA_nforce-${NV_V}"
14 S="${WORKDIR}/nforce"
15 DESCRIPTION="Linux kernel module for the NVIDIA's nForce network chip"
16 SRC_URI="http://download.nvidia.com/XFree86/nforce/${NV_V}/${NV_PACKAGE}.tar.gz"
17 HOMEPAGE="http://www.nvidia.com/"
18
19 # The slow needs to be set to $KV to prevent unmerges of
20 # modules for other kernels.
21 LICENSE="NVIDIA"
22 SLOT="${KV}"
23 KEYWORDS="-* x86"
24
25 DEPEND="virtual/linux-sources >=sys-apps/portage-1.9.10"
26
27 src_compile() {
28 # Portage should determine the version of the kernel sources
29 check_KV
30 cd ${S}/nvnet
31 make KERNSRC="/usr/src/linux" || die
32 }
33
34 src_install() {
35 # The driver goes into the standard modules location
36 insinto /lib/modules/${KV}/kernel/drivers/net
37 doins nvnet/nvnet.o
38
39 # Docs
40 dohtml ${S}/ReleaseNotes.html
41 }
42
43 pkg_postinst() {
44 if [ "${ROOT}" = "/" ]
45 then
46 # Update module dependency
47 [ -x /usr/sbin/update-modules ] && /usr/sbin/update-modules
48 fi
49
50 echo
51 einfo "You need to add \"nvnet\" to your /etc/modules.autoload to load"
52 einfo "this module when the system is started. Alternatively, you can"
53 einfo "use the 'hotplug' package ('emerge hotplug' then 'rc-update add"
54 einfo "hotplug default') to auto-detect and load \"nvnet\" on startup."
55 }
56

  ViewVC Help
Powered by ViewVC 1.1.20