diff options
-rw-r--r-- | LEGAL | 1 | ||||
-rw-r--r-- | net/Makefile | 1 | ||||
-rw-r--r-- | net/malo-firmware-kmod/Makefile | 55 | ||||
-rw-r--r-- | net/malo-firmware-kmod/distinfo | 2 | ||||
-rw-r--r-- | net/malo-firmware-kmod/pkg-descr | 7 | ||||
-rw-r--r-- | net/malo-firmware-kmod/pkg-plist | 2 |
6 files changed, 68 insertions, 0 deletions
@@ -165,6 +165,7 @@ l_fc_p*_*.*.*.tar.gz lang/ifc Intel forbids any redistribution macopix-*.tar.gz games/macopix Contains commercial character data madfufw-* audio/madfufw No redistribution of firmware files majesty_demo* games/linux-majesty-demo Redistribution is limited, see license +malo-fw-*.tar.gz net/malo-firmware-kmod Marvell refuses to grant distribution rights mb339pan_* games/flightgear-mb339-pan Redistribution prohibited mikachan-ttfonts/ver*.* japanese/mikachan-ttfonts Do not sell distfile mindfocus-* games/mindfocus Contains commercial character data diff --git a/net/Makefile b/net/Makefile index 1419e0cac3df..3a7c4c8e4d6c 100644 --- a/net/Makefile +++ b/net/Makefile @@ -351,6 +351,7 @@ SUBDIR += mDNSResponder SUBDIR += macchanger SUBDIR += mad_fcl + SUBDIR += malo-firmware-kmod SUBDIR += mcast-tools SUBDIR += mediastreamer SUBDIR += mediatomb diff --git a/net/malo-firmware-kmod/Makefile b/net/malo-firmware-kmod/Makefile new file mode 100644 index 000000000000..6b050e667ae0 --- /dev/null +++ b/net/malo-firmware-kmod/Makefile @@ -0,0 +1,55 @@ +# Created by: cpm <cpm@fbsd.es> +# $FreeBSD$ + +PORTNAME= malo-firmware +PORTVERSION= ${FWVERSION} +CATEGORIES= net +MASTER_SITES= http://fbsd.es/~cpm/freebsd/project/malo/ +PKGNAMESUFFIX= -kmod +DISTNAME= ${FWNAME} + +MAINTAINER= cpm@fbsd.es +COMMENT= Marvell Libertas 88W8335 IEEE 802.11b/g Firmware Kernel Module + +LICENSE= BSD3CLAUSE + +FWNAME= malo-fw-${FWVERSION} +FWVERSION= 3.0.0.39 + +USES= kmod +DRIVERNAME= malofw +FIRMS= malo8335-h:malo8335-m +WRKSRC= ${WRKDIR} +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} + ${MV} ${WRKSRC}/${FIRMS:C/:.*//} \ + ${WRKSRC}/${DRIVERNAME}/${FIRMS:C/:.*//} + ${MV} ${WRKSRC}/${FIRMS:C/.*://} \ + ${WRKSRC}/${DRIVERNAME}/${FIRMS:C/.*://} + ${ECHO_CMD} "KMOD= ${DRIVERNAME}" > ${WRKSRC}/${DRIVERNAME}/Makefile + ${ECHO_CMD} "FIRMWS= ${FIRMS:C/:.*//}:${FIRMS:C/:.*//}:${KMODVERSION} \\" >> \ + ${WRKSRC}/${DRIVERNAME}/Makefile + ${ECHO_CMD} " ${FIRMS:C/.*://}:${FIRMS:C/.*://}:${KMODVERSION}" >> \ + ${WRKSRC}/${DRIVERNAME}/Makefile + ${ECHO_CMD} ".include <bsd.kmod.mk>" >> \ + ${WRKSRC}/${DRIVERNAME}/Makefile + +do-build: + (cd ${WRKSRC}/${DRIVERNAME} && \ + ${SETENV} KMODDIR="${KMODDIR}" ${MAKE_CMD} all) + +do-install: + ${MKDIR} ${STAGEDIR}${KMODDIR} + cd ${WRKSRC}/${DRIVERNAME}; ${SETENV} KMODDIR="${STAGEDIR}${KMODDIR}" make ${INSTALL} + ${STRIP_CMD} --strip-unneeded ${STAGEDIR}${KMODDIR}/${DRIVERNAME}.ko + +.include <bsd.port.post.mk> diff --git a/net/malo-firmware-kmod/distinfo b/net/malo-firmware-kmod/distinfo new file mode 100644 index 000000000000..d815520c69d5 --- /dev/null +++ b/net/malo-firmware-kmod/distinfo @@ -0,0 +1,2 @@ +SHA256 (malo-fw-3.0.0.39.tar.gz) = fdb70aa628250922bb3f2a912b5dc7c54304a8120cb72191b49f497b4653954a +SIZE (malo-fw-3.0.0.39.tar.gz) = 31796 diff --git a/net/malo-firmware-kmod/pkg-descr b/net/malo-firmware-kmod/pkg-descr new file mode 100644 index 000000000000..8ec18d3221fb --- /dev/null +++ b/net/malo-firmware-kmod/pkg-descr @@ -0,0 +1,7 @@ +Marvell Libertas 88W8335 firmware files are not free because Marvell +refuses to grant distribution rights. As a result, we need to build the +firmware using ports. + +This firmware files are comed from OpenBSD malo driver. + +WWW: http://www.nazgul.ch/malo/ diff --git a/net/malo-firmware-kmod/pkg-plist b/net/malo-firmware-kmod/pkg-plist new file mode 100644 index 000000000000..211b61b97745 --- /dev/null +++ b/net/malo-firmware-kmod/pkg-plist @@ -0,0 +1,2 @@ +%%KMODDIR%%/linker.hints +%%KMODDIR%%/%%DRIVERNAME%%.ko |