diff options
-rw-r--r-- | LEGAL | 1 | ||||
-rw-r--r-- | net/Makefile | 1 | ||||
-rw-r--r-- | net/urtwn-firmware-kmod/Makefile | 46 | ||||
-rw-r--r-- | net/urtwn-firmware-kmod/distinfo | 2 | ||||
-rw-r--r-- | net/urtwn-firmware-kmod/pkg-descr | 1 | ||||
-rw-r--r-- | net/urtwn-firmware-kmod/pkg-plist | 2 |
6 files changed, 53 insertions, 0 deletions
@@ -266,6 +266,7 @@ uDrawGraph-* graphics/uDrawGraph Binary under GNU LGPL without accompanying sou ue*dev.zip editors/uemacs Resale allowed for media cost only uplink-demo games/linux-uplink-demo Redistribution limited uppaal-*.zip devel/uppaal Downloading requires completion of a license agreement +urtwn-firmware-kmod* net/urtwn-firmware-kmod This is a modified version of a restricted firmware ut2004-lnx-* games/linux-ut2004-demo Redistribution limited ut_linux_mgr_* sysutils/linux-megamgr Redistribution prohibited uzap.tar.gz editors/uzap Restrictive copyright diff --git a/net/Makefile b/net/Makefile index 31b4027b036a..0a8fa9d8ff1d 100644 --- a/net/Makefile +++ b/net/Makefile @@ -1210,6 +1210,7 @@ SUBDIR += urelay SUBDIR += uriparser SUBDIR += urlendec + SUBDIR += urtwn-firmware-kmod SUBDIR += usbredir SUBDIR += userfw SUBDIR += ushare diff --git a/net/urtwn-firmware-kmod/Makefile b/net/urtwn-firmware-kmod/Makefile new file mode 100644 index 000000000000..c3bca8480f55 --- /dev/null +++ b/net/urtwn-firmware-kmod/Makefile @@ -0,0 +1,46 @@ +# $FreeBSD$ + +PORTNAME= urtwn-firmware +PORTVERSION= ${FWVERSION} +CATEGORIES= net kld +MASTER_SITES= http://firmware.openbsd.org/firmware-dist/ +PKGNAMESUFFIX= -kmod +DISTNAME= ${FWNAME} +EXTRACT_SUFX= .tgz + +MAINTAINER= kevlo@FreeBSD.org +COMMENT= Realtek RTL8188CU/RTL8192CU firmware kernel module + +DRIVERNAME= urtwn +FWVERSION?= 1.1 +FWNAME= ${DRIVERNAME}-${FWVERSION} + +WRKSRC= ${WRKDIR} +KMODDIR= /boot/modules +KMODVERSION= ${FWVERSION:C/^(...)$/\1.0/:S/.//g} +PLIST_SUB= DRIVERNAME="${DRIVERNAME}" \ + KMODDIR="${KMODDIR}" +CFLAGS+= -D_KERNEL + +NO_PACKAGE= This is a modified version of a restricted firmware + +.include <bsd.port.pre.mk> + +post-patch: + @${MKDIR} ${WRKSRC}/${DRIVERNAME} + @${ECHO_CMD} "KMOD= ${DRIVERNAME}" > ${WRKSRC}/${DRIVERNAME}/Makefile +.for firms in urtwn-rtl8192cfwT urtwn-rtl8192cfwU + @${MV} ${WRKSRC}/${firms} ${WRKSRC}/${DRIVERNAME}/${firms} + @${ECHO_CMD} "FIRMWS+= ${firms}:${firms}:${KMODVERSION}" >> \ + ${WRKSRC}/${DRIVERNAME}/Makefile +.endfor + @${ECHO_CMD} ".include <bsd.kmod.mk>" >> \ + ${WRKSRC}/${DRIVERNAME}/Makefile + +do-build: + @cd ${WRKSRC}/${DRIVERNAME}; ${SETENV} KMODDIR="${KMODDIR}" make all + +do-install: + @cd ${WRKSRC}/${DRIVERNAME}; ${SETENV} KMODDIR="${KMODDIR}" make install + +.include <bsd.port.post.mk> diff --git a/net/urtwn-firmware-kmod/distinfo b/net/urtwn-firmware-kmod/distinfo new file mode 100644 index 000000000000..b34f97be65cf --- /dev/null +++ b/net/urtwn-firmware-kmod/distinfo @@ -0,0 +1,2 @@ +SHA256 (urtwn-1.1.tgz) = bae578e5a95b0d194e28c69527352c0d8fb427f2e441af47ccdf3db0d2ca2d5b +SIZE (urtwn-1.1.tgz) = 14856 diff --git a/net/urtwn-firmware-kmod/pkg-descr b/net/urtwn-firmware-kmod/pkg-descr new file mode 100644 index 000000000000..cab82a237700 --- /dev/null +++ b/net/urtwn-firmware-kmod/pkg-descr @@ -0,0 +1 @@ +Firmware for the Realtek Wireless FreeBSD driver urtwn(4). diff --git a/net/urtwn-firmware-kmod/pkg-plist b/net/urtwn-firmware-kmod/pkg-plist new file mode 100644 index 000000000000..e8247d3cc489 --- /dev/null +++ b/net/urtwn-firmware-kmod/pkg-plist @@ -0,0 +1,2 @@ +@cwd %%KMODDIR%% +%%DRIVERNAME%%.ko |