mirror of
https://git.freebsd.org/ports.git
synced 2025-05-13 07:41:50 -04:00
net/malo-firmware-kmod: NEW PORT - Marvell Libertas 88W8335 firmware
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/ PR: 193588 Submitted by: Juan Ramon Molina Menor <info@juanmolina.eu>
This commit is contained in:
parent
77db042737
commit
a1830e824a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=373524
6 changed files with 68 additions and 0 deletions
1
LEGAL
1
LEGAL
|
@ -165,6 +165,7 @@ l_fc_p*_*.*.*.tar.gz lang/ifc Intel forbids any redistribution
|
||||||
macopix-*.tar.gz games/macopix Contains commercial character data
|
macopix-*.tar.gz games/macopix Contains commercial character data
|
||||||
madfufw-* audio/madfufw No redistribution of firmware files
|
madfufw-* audio/madfufw No redistribution of firmware files
|
||||||
majesty_demo* games/linux-majesty-demo Redistribution is limited, see license
|
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
|
mb339pan_* games/flightgear-mb339-pan Redistribution prohibited
|
||||||
mikachan-ttfonts/ver*.* japanese/mikachan-ttfonts Do not sell distfile
|
mikachan-ttfonts/ver*.* japanese/mikachan-ttfonts Do not sell distfile
|
||||||
mindfocus-* games/mindfocus Contains commercial character data
|
mindfocus-* games/mindfocus Contains commercial character data
|
||||||
|
|
|
@ -351,6 +351,7 @@
|
||||||
SUBDIR += mDNSResponder
|
SUBDIR += mDNSResponder
|
||||||
SUBDIR += macchanger
|
SUBDIR += macchanger
|
||||||
SUBDIR += mad_fcl
|
SUBDIR += mad_fcl
|
||||||
|
SUBDIR += malo-firmware-kmod
|
||||||
SUBDIR += mcast-tools
|
SUBDIR += mcast-tools
|
||||||
SUBDIR += mediastreamer
|
SUBDIR += mediastreamer
|
||||||
SUBDIR += mediatomb
|
SUBDIR += mediatomb
|
||||||
|
|
55
net/malo-firmware-kmod/Makefile
Normal file
55
net/malo-firmware-kmod/Makefile
Normal file
|
@ -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>
|
2
net/malo-firmware-kmod/distinfo
Normal file
2
net/malo-firmware-kmod/distinfo
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
SHA256 (malo-fw-3.0.0.39.tar.gz) = fdb70aa628250922bb3f2a912b5dc7c54304a8120cb72191b49f497b4653954a
|
||||||
|
SIZE (malo-fw-3.0.0.39.tar.gz) = 31796
|
7
net/malo-firmware-kmod/pkg-descr
Normal file
7
net/malo-firmware-kmod/pkg-descr
Normal file
|
@ -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/
|
2
net/malo-firmware-kmod/pkg-plist
Normal file
2
net/malo-firmware-kmod/pkg-plist
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
%%KMODDIR%%/linker.hints
|
||||||
|
%%KMODDIR%%/%%DRIVERNAME%%.ko
|
Loading…
Add table
Reference in a new issue