Add if_nv(4) -- Ethernet driver for nForce motherboards.

Submitted by:	Quinton Dolan <q@onthenet.com.au>
Obtained from:	http://www.onthenet.com.au/~q/nvnet/
This commit is contained in:
David E. O'Brien 2003-12-07 05:34:23 +00:00
parent 390f3adbe8
commit 8912357fcf
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=95246
7 changed files with 85 additions and 0 deletions

View File

@ -389,6 +389,7 @@
SUBDIR += ntp
SUBDIR += ntp-devel
SUBDIR += nttcp
SUBDIR += nvnet
SUBDIR += nylon
SUBDIR += obnc
SUBDIR += ocaml-jabbr

BIN
net/nvnet/.Makefile.swp Normal file

Binary file not shown.

60
net/nvnet/Makefile Normal file
View File

@ -0,0 +1,60 @@
# Ports collection makefile for: nvnet
#
# Date created: 1 Oct 2003
# Whom: Quinton Dolan <q@onthenet.com.au>
#
# $FreeBSD$
#
PORTNAME= nvnet
PORTVERSION= 1.0.${NVVERSION}
PORTREVISION?= 0
CATEGORIES= net
MASTER_SITES= http://download.nvidia.com/XFree86/nforce/1.0-${NVVERSION}/:nvidia \
ftp://download.nvidia.com/XFree86/nforce/1.0-${NVVERSION}/:nvidia \
http://download1.nvidia.com/XFree86/nforce/1.0-${NVVERSION}/:nvidia \
ftp://download1.nvidia.com/XFree86/nforce/1.0-${NVVERSION}/:nvidia \
http://www.onthenet.com.au/~q/nvnet/:nvnet
DISTFILES= NVIDIA_nforce-1.0-${NVVERSION}${EXTRACT_SUFX}:nvidia \
nvnet-src-${NVNETVERSION}${EXTRACT_SUFX}:nvnet
MAINTAINER= q@onthenet.com.au
COMMENT= Driver for NVIDIA MCP Ethernet adapter
NVVERSION= 0261
NVNETVERSION= 20031108
ONLY_FOR_ARCHS= i386
WRKSRC= ${WRKDIR}/nvnet
MAN4= nvnet.4
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 480100 || ${OSVERSION} >= 500000 && ${OSVERSION} < 501000
BROKEN= "Systems prior to FreeBSD 4.9 & 5.1 are not supported"
.endif
.if ${OSVERSION} < 500000
PLIST_SUB+= FREEBSD5="@comment " FREEBSD4=""
.else
PLIST_SUB+= FREEBSD5="" FREEBSD4="@comment "
.endif
pre-fetch:
.if !exists(${SRC_BASE}/sys/Makefile)
@${ECHO} "*************************************************"; \
${ECHO} "This port requires the kernel source be available"; \
${ECHO} "*************************************************"; \
exit 1
.endif
port-install:
.if !defined(NOPORTSDOCS)
${MKDIR} ${DOCSDIR}
${INSTALLMAN} ${WRKSRC}/doc/README ${WRKSRC}/doc/nvidia_pci.c.diff \
${DOCSDIR}
.endif
${INSTALLMAN} ${WRKSRC}/man/nvnet.4 ${PREFIX}/man/man4
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>

2
net/nvnet/distinfo Normal file
View File

@ -0,0 +1,2 @@
MD5 (NVIDIA_nforce-1.0-0261.tar.gz) = 19e9c6592e8db6ba55c08d42dc49163f
MD5 (nvnet-src-20031108.tar.gz) = 7d404d47cbbd5a4fb9fba9fab121dbc6

7
net/nvnet/pkg-descr Normal file
View File

@ -0,0 +1,7 @@
This port contains a driver for the NVIDIA nForce MCP Ethernet adapter.
It contains a wrapper that replaces the Linux nvnet.c, and links against
the Linux binary only object file (nvnetlib.o) included in the NVIDIA
driver source distribution.
This should work on all nForce and nForce2 based motherboards that have
the onboard MCP MAC enabled.

7
net/nvnet/pkg-message Normal file
View File

@ -0,0 +1,7 @@
*******************************************************************************
* This port contains a prebuilt kernel module. Due to the ever changing *
* nature of FreeBSD it may be necessary to rebuild the module after a kernel *
* source update. To do this reinstall the port. *
*******************************************************************************

8
net/nvnet/pkg-plist Normal file
View File

@ -0,0 +1,8 @@
@comment $FreeBSD$
@comment We just copy the file in the kernel module dir.
%%PORTDOCS%%%%DOCSDIR%%/README
%%PORTDOCS%%%%DOCSDIR%%/nvidia_pci.c.diff
%%PORTDOCS%%@dirrm %%DOCSDIR%%
%%FREEBSD4%%@cwd /modules
%%FREEBSD5%%@cwd /boot/kernel
if_nv.ko