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

Contents of /net-misc/nforce-net/nforce-net-1.0.0248-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (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.1: +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.0248-r2.ebuild,v 1.1 2003/02/19 15:08:54 alain 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_40/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 -ppc -sparc -alpha"
24
25 DEPEND="virtual/linux-sources >=sys-apps/portage-1.9.10"
26
27 src_unpack() {
28 unpack ${A}
29 if [ `gcc-major-version` -eq 2 ] ; then
30 einfo "Applying gcc2 compatability patch"
31 cp nforce/nvnet/Makefile{,.old}
32 sed -e "s/-falign-functions/-malign-functions/" nforce/nvnet/Makefile.old > nforce/nvnet/Makefile
33 fi
34 }
35
36 src_compile() {
37 # Portage should determine the version of the kernel sources
38 check_KV
39 #IGNORE_CC_MISMATCH disables a sanity check that's needed when gcc has been
40 #updated but the running kernel is still compiled with an older gcc. This is
41 #needed for chrooted building, where the sanity check detects the gcc of the
42 #kernel outside the chroot rather than within.
43 cd ${S}/nvnet
44 make KERNSRC="/usr/src/linux" || die
45 }
46
47 src_install() {
48 # The driver goes into the standard modules location
49 insinto /lib/modules/${KV}/kernel/drivers/net
50 doins nvnet/nvnet.o
51
52 # Docs
53 dodoc ${S}/README
54 }
55
56 pkg_postinst() {
57 if [ "${ROOT}" = "/" ]
58 then
59 # Update module dependency
60 [ -x /usr/sbin/update-modules ] && /usr/sbin/update-modules
61 fi
62
63 echo
64 einfo "You need to add \"nvnet\" to your /etc/modules.autoload to load"
65 einfo "this module when the system is started."
66 }
67

  ViewVC Help
Powered by ViewVC 1.1.20