aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/Makefile1
-rw-r--r--net/bnxt-kmod/Makefile62
-rw-r--r--net/bnxt-kmod/distinfo3
-rw-r--r--net/bnxt-kmod/pkg-descr5
4 files changed, 71 insertions, 0 deletions
diff --git a/net/Makefile b/net/Makefile
index 5d60140fee0a..422fd2c75935 100644
--- a/net/Makefile
+++ b/net/Makefile
@@ -53,6 +53,7 @@
SUBDIR += bird6
SUBDIR += bittwist
SUBDIR += bmon
+ SUBDIR += bnxt-kmod
SUBDIR += boclient
SUBDIR += boinc-client
SUBDIR += boinc_curses
diff --git a/net/bnxt-kmod/Makefile b/net/bnxt-kmod/Makefile
new file mode 100644
index 000000000000..9bcfda2a611a
--- /dev/null
+++ b/net/bnxt-kmod/Makefile
@@ -0,0 +1,62 @@
+# $FreeBSD$
+
+PORTNAME= bnxt-kmod
+PORTVERSION= 308813
+CATEGORIES= net
+MASTER_SITES= LOCAL/shurd
+
+MAINTAINER= shurd@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>
diff --git a/net/bnxt-kmod/distinfo b/net/bnxt-kmod/distinfo
new file mode 100644
index 000000000000..a62c73ee0ec8
--- /dev/null
+++ b/net/bnxt-kmod/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1479550854
+SHA256 (bnxt-kmod-308813.tar.gz) = f840cb4ed2290f18aac7d61fb1ae6c3ab0b7a9a1712b6b08edef0f6114b463cc
+SIZE (bnxt-kmod-308813.tar.gz) = 113745
diff --git a/net/bnxt-kmod/pkg-descr b/net/bnxt-kmod/pkg-descr
new file mode 100644
index 000000000000..455899407be4
--- /dev/null
+++ b/net/bnxt-kmod/pkg-descr
@@ -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).