aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrobak <robak@FreeBSD.org>2014-11-28 05:57:11 +0800
committerrobak <robak@FreeBSD.org>2014-11-28 05:57:11 +0800
commit5b91a88629bd625147173ac0c90c29a43a6849e5 (patch)
tree508f8bf3cc26743abec9ca0ca5d149685a2239c5
parent13888e32155471ddac32a7edec3a885d08b326e6 (diff)
downloadfreebsd-ports-gnome-5b91a88629bd625147173ac0c90c29a43a6849e5.tar.gz
freebsd-ports-gnome-5b91a88629bd625147173ac0c90c29a43a6849e5.tar.zst
freebsd-ports-gnome-5b91a88629bd625147173ac0c90c29a43a6849e5.zip
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>
-rw-r--r--LEGAL1
-rw-r--r--net/Makefile1
-rw-r--r--net/malo-firmware-kmod/Makefile55
-rw-r--r--net/malo-firmware-kmod/distinfo2
-rw-r--r--net/malo-firmware-kmod/pkg-descr7
-rw-r--r--net/malo-firmware-kmod/pkg-plist2
6 files changed, 68 insertions, 0 deletions
diff --git a/LEGAL b/LEGAL
index 0169c80f5152..b7416e497479 100644
--- a/LEGAL
+++ b/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
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