svn commit: r426773 - in head/net: . bnxt-kmod

Stephen Hurd shurd at FreeBSD.org
Tue Nov 22 00:12:10 UTC 2016


Author: shurd
Date: Tue Nov 22 00:12:09 2016
New Revision: 426773
URL: https://svnweb.freebsd.org/changeset/ports/426773

Log:
  Add bnxt-kmod, driver for Broadcom NetXtreme-C/NetXtreme-E devices.
  
  This is simply the driver from 12-CURRENT wrapped in a port for
  FreeBSD versions that have iflib but don't have the driver
  included.

Added:
  head/net/bnxt-kmod/
  head/net/bnxt-kmod/Makefile   (contents, props changed)
  head/net/bnxt-kmod/distinfo   (contents, props changed)
  head/net/bnxt-kmod/pkg-descr   (contents, props changed)
Modified:
  head/net/Makefile

Modified: head/net/Makefile
==============================================================================
--- head/net/Makefile	Tue Nov 22 00:10:41 2016	(r426772)
+++ head/net/Makefile	Tue Nov 22 00:12:09 2016	(r426773)
@@ -53,6 +53,7 @@
     SUBDIR += bird6
     SUBDIR += bittwist
     SUBDIR += bmon
+    SUBDIR += bnxt-kmod
     SUBDIR += boclient
     SUBDIR += boinc-client
     SUBDIR += boinc_curses

Added: head/net/bnxt-kmod/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/bnxt-kmod/Makefile	Tue Nov 22 00:12:09 2016	(r426773)
@@ -0,0 +1,62 @@
+# $FreeBSD$
+
+PORTNAME=	bnxt-kmod
+PORTVERSION=	308813
+CATEGORIES=	net
+MASTER_SITES=	LOCAL/shurd
+
+MAINTAINER=	shurd at freebsd.org
+COMMENT=	Driver for Broadcom NetXtreme-C/NetXtreme-E devices
+
+LICENSE=	BSD2CLAUSE
+
+USES=		kmod
+BUILD_WRKSRC=	${WRKSRC}/sys/modules/bnxt
+
+PLIST_FILES=	${KMODDIR}/if_bnxt.ko \
+		man/man4/bnxt.4.gz \
+		man/man4/if_bnxt.4.gz
+
+create-tarball:
+	${MKDIR} ${WRKDIR}
+	svnlite checkout -r ${PORTVERSION} --depth empty https://svn.freebsd.org/base/head ${WRKSRC}
+	svnlite update -r ${PORTVERSION} --set-depth empty ${WRKSRC}/sys
+	svnlite update -r ${PORTVERSION} --set-depth empty ${WRKSRC}/sys/dev
+	svnlite update -r ${PORTVERSION} --set-depth infinity ${WRKSRC}/sys/dev/bnxt
+	svnlite update -r ${PORTVERSION} --set-depth empty ${WRKSRC}/sys/modules
+	svnlite update -r ${PORTVERSION} --set-depth infinity ${WRKSRC}/sys/modules/bnxt
+	svnlite update -r ${PORTVERSION} --set-depth empty ${WRKSRC}/share
+	svnlite update -r ${PORTVERSION} --set-depth empty ${WRKSRC}/share/man
+	svnlite update -r ${PORTVERSION} --set-depth empty ${WRKSRC}/share/man/man4
+	svnlite update -r ${PORTVERSION} ${WRKSRC}/share/man/man4/bnxt.4
+	tar czf ${DISTNAME}${EXTRACT_SUFX} -C ${WRKDIR} --exclude=.svn ${DISTNAME}
+	scp ${DISTNAME}${EXTRACT_SUFX} freefall:public_distfiles/
+
+do-install:
+	${INSTALL_KLD} ${WRKSRC}/sys/modules/bnxt/if_bnxt.ko ${STAGEDIR}${KMODDIR}/if_bnxt.ko
+	${INSTALL_MAN} ${WRKSRC}/share/man/man4/bnxt.4 ${STAGEDIR}${MAN4PREFIX}/man/man4/
+	${LN} -f ${STAGEDIR}${MAN4PREFIX}/man/man4/bnxt.4 ${STAGEDIR}${MAN4PREFIX}/man/man4/if_bnxt.4
+
+.include <bsd.port.pre.mk>
+
+SUPPORTED=	no
+.if ${OSVERSION} >= 1100122
+.if ${OSVERSION} < 1100500
+SUPPORTED=	yes
+.endif
+.endif
+.if ${OSVERSION} >= 1100501
+.if ${OSVERSION} < 1101000
+SUPPORTED=	yes
+.endif
+.endif
+.if ${OSVERSION} >= 1200002
+.if ${OSVERSION} <= 1200014
+SUPPORTED=	yes
+.endif
+.endif
+.if ${SUPPORTED} == no
+IGNORE=		not supported on this version of FreeBSD
+.endif
+
+.include <bsd.port.post.mk>

Added: head/net/bnxt-kmod/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/bnxt-kmod/distinfo	Tue Nov 22 00:12:09 2016	(r426773)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1479550854
+SHA256 (bnxt-kmod-308813.tar.gz) = f840cb4ed2290f18aac7d61fb1ae6c3ab0b7a9a1712b6b08edef0f6114b463cc
+SIZE (bnxt-kmod-308813.tar.gz) = 113745

Added: head/net/bnxt-kmod/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/bnxt-kmod/pkg-descr	Tue Nov 22 00:12:09 2016	(r426773)
@@ -0,0 +1,5 @@
+This is the Broadcom bnxt driver for the NetXtreme-C and NetXtreme-E iflib
+driver from -CURRENT.
+
+Is only supported for FreeBSD versions which have iflib, but do not already
+include the driver (currently 11.0-STABLE and 12-CURRENT before r308696).


More information about the svn-ports-all mailing list