View | Details | Raw Unified | Return to bug 193588 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/ports/net/malo-firmware-1.4/Makefile (-25 / +23 lines)
Lines 1-55 Link Here
1
# New ports collection makefile for:	malo-firmware-kmod
1
# Created by: Weongyo Jeong <weongyo@FreeBSD.org>
2
# Date created:				Mar 7 2006
3
# Whom:					Weongyo Jeong <weongyo@FreeBSD.org>
4
#
5
# $FreeBSD$
2
# $FreeBSD$
6
#
7
3
8
PORTNAME?=	malo-firmware
4
PORTNAME=	malo-firmware
9
PORTVERSION=	${FWVERSION}
5
PORTVERSION=	${FWVERSION}
10
PORTREVISION?=	1
6
PORTREVISION=	2
11
CATEGORIES=	net kld
7
CATEGORIES=	net
12
MASTER_SITES=	http://weongyo.org/project/malo/
8
MASTER_SITES=	http://weongyo.org/project/malo/
13
PKGNAMESUFFIX=	-kmod
9
PKGNAMESUFFIX=	-kmod
14
FWNAME?=	malo-fw-${FWVERSION}
10
DISTFILES=	${FWNAME}${EXTRACT_SUFX}
15
FWVERSION?=	3.0.0.39
16
DISTFILES=	${FWNAME}.tar.gz
17
11
18
MAINTAINER=	weongyo@FreeBSD.org
12
MAINTAINER=	weongyo@FreeBSD.org
19
COMMENT?=	Marvell Libertas 88W8335 IEEE 802.11b/g Firmware Kernel Module
13
COMMENT=	Marvell Libertas 88W8335 IEEE 802.11b/g Firmware Kernel Module
20
14
21
DRIVERNAME?=	malofw
15
FWNAME=		malo-fw-${FWVERSION}
22
FIRMS?=		malo8335-h:malo8335-m
16
FWVERSION=	3.0.0.39
23
17
18
USES=		kmod
19
DRIVERNAME=	malofw
20
FIRMS=		malo8335-h:malo8335-m
24
WRKSRC=		${WRKDIR}
21
WRKSRC=		${WRKDIR}
25
KMODDIR=	/boot/modules
26
KMODVERSION=	${FWVERSION:C/^(...)$/\1.0/:S/.//g}
22
KMODVERSION=	${FWVERSION:C/^(...)$/\1.0/:S/.//g}
27
PLIST_SUB=	DRIVERNAME="${DRIVERNAME}" \
23
PLIST_SUB=	DRIVERNAME="${DRIVERNAME}" \
28
		KMODDIR="${KMODDIR}"
24
		KMODDIR="${KMODDIR}"
29
CFLAGS+=	-D_KERNEL
25
CFLAGS+=	-D_KERNEL
30
26
31
NO_PACKAGE=	"this is a modified version of a restricted firmware"
27
NO_PACKAGE=	This is a modified version of a restricted firmware
32
28
33
.include <bsd.port.pre.mk>
29
.include <bsd.port.pre.mk>
34
30
35
post-patch:
31
post-patch:
36
	@${MKDIR} ${WRKSRC}/${DRIVERNAME}
32
	${MKDIR} ${WRKSRC}/${DRIVERNAME}
37
	@${MV} ${WRKSRC}/${FIRMS:C/:.*//} \
33
	${MV} ${WRKSRC}/${FIRMS:C/:.*//} \
38
		${WRKSRC}/${DRIVERNAME}/${FIRMS:C/:.*//}
34
		${WRKSRC}/${DRIVERNAME}/${FIRMS:C/:.*//}
39
	@${MV} ${WRKSRC}/${FIRMS:C/.*://} \
35
	${MV} ${WRKSRC}/${FIRMS:C/.*://} \
40
		${WRKSRC}/${DRIVERNAME}/${FIRMS:C/.*://}
36
		${WRKSRC}/${DRIVERNAME}/${FIRMS:C/.*://}
41
	@${ECHO_CMD} "KMOD= ${DRIVERNAME}" > ${WRKSRC}/${DRIVERNAME}/Makefile
37
	${ECHO_CMD} "KMOD= ${DRIVERNAME}" > ${WRKSRC}/${DRIVERNAME}/Makefile
42
	@${ECHO_CMD} "FIRMWS= ${FIRMS:C/:.*//}:${FIRMS:C/:.*//}:${KMODVERSION} \\" >> \
38
	${ECHO_CMD} "FIRMWS= ${FIRMS:C/:.*//}:${FIRMS:C/:.*//}:${KMODVERSION} \\" >> \
43
		${WRKSRC}/${DRIVERNAME}/Makefile
39
		${WRKSRC}/${DRIVERNAME}/Makefile
44
	@${ECHO_CMD} "	${FIRMS:C/.*://}:${FIRMS:C/.*://}:${KMODVERSION}" >> \
40
	${ECHO_CMD} "	${FIRMS:C/.*://}:${FIRMS:C/.*://}:${KMODVERSION}" >> \
45
		${WRKSRC}/${DRIVERNAME}/Makefile
41
		${WRKSRC}/${DRIVERNAME}/Makefile
46
	@${ECHO_CMD} ".include <bsd.kmod.mk>" >> \
42
	${ECHO_CMD} ".include <bsd.kmod.mk>" >> \
47
		${WRKSRC}/${DRIVERNAME}/Makefile
43
		${WRKSRC}/${DRIVERNAME}/Makefile
48
44
49
do-build:
45
do-build:
50
	@cd ${WRKSRC}/${DRIVERNAME}; ${SETENV} KMODDIR="${KMODDIR}" make all
46
	cd ${WRKSRC}/${DRIVERNAME}; ${SETENV} KMODDIR="${KMODDIR}" make all
51
47
52
do-install:
48
do-install:
53
	@cd ${WRKSRC}/${DRIVERNAME}; ${SETENV} KMODDIR="${KMODDIR}" make install
49
	${MKDIR} ${STAGEDIR}${KMODDIR}
50
	cd ${WRKSRC}/${DRIVERNAME}; ${SETENV} KMODDIR="${STAGEDIR}${KMODDIR}" make ${INSTALL}
51
	${STRIP_CMD} --strip-unneeded ${STAGEDIR}${KMODDIR}/${DRIVERNAME}.ko
54
52
55
.include <bsd.port.post.mk>
53
.include <bsd.port.post.mk>
(-)/usr/ports/net/malo-firmware-1.4/distinfo (-1 lines)
Lines 1-3 Link Here
1
MD5 (malo-fw-3.0.0.39.tar.gz) = 8f45836c8405a8ca096a33db002c93ea
2
SHA256 (malo-fw-3.0.0.39.tar.gz) = fdb70aa628250922bb3f2a912b5dc7c54304a8120cb72191b49f497b4653954a
1
SHA256 (malo-fw-3.0.0.39.tar.gz) = fdb70aa628250922bb3f2a912b5dc7c54304a8120cb72191b49f497b4653954a
3
SIZE (malo-fw-3.0.0.39.tar.gz) = 31796
2
SIZE (malo-fw-3.0.0.39.tar.gz) = 31796
(-)/usr/ports/net/malo-firmware-1.4/pkg-descr (-1 / +1 lines)
Lines 4-7 Link Here
4
4
5
This firmware files are comed from OpenBSD malo driver.
5
This firmware files are comed from OpenBSD malo driver.
6
6
7
	http://www.nazgul.ch/malo/malo-firmware-1.4.tgz
7
WWW: http://www.nazgul.ch/malo/
(-)/usr/ports/net/malo-firmware-1.4/pkg-plist (-2 / +2 lines)
Lines 1-2 Link Here
1
@cwd %%KMODDIR%%
1
%%KMODDIR%%/linker.hints
2
%%DRIVERNAME%%.ko
2
%%KMODDIR%%/%%DRIVERNAME%%.ko

Return to bug 193588