Date: Fri, 8 May 2009 17:01:51 GMT From: "Scot W. Hetzel" <swhetzel@gmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/134372: New port - sysutils/b43-fwcutter Message-ID: <200905081701.n48H1pfF051001@www.freebsd.org> Resent-Message-ID: <200905081710.n48HA1wJ081582@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 134372 >Category: ports >Synopsis: New port - sysutils/b43-fwcutter >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri May 08 17:10:00 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Scot W. Hetzel >Release: FreeBSD 8.0-CURRENT >Organization: >Environment: FreeBSD hp010.hetzel.org 8.0-CURRENT FreeBSD 8.0-CURRENT #16: Tue May 5 21:12:32 CDT 2009 swhetzel@hp010.hetzel.org:/usr/obj/usr/src/8x-zfs/sys/DV8135NR amd64 >Description: b43-fwcutter is used to extract the firmware from various Broadcom BCM43xx drivers. It is capable of extracting the v3 and v4 firmware files. It can be used to extract firmware files for use by the Broadcom Wireless (bwi) driver. >How-To-Repeat: >Fix: extract the port from the attached shar archive. Patch attached with submission follows: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # b43-fwcutter # b43-fwcutter/pkg-descr # b43-fwcutter/files # b43-fwcutter/files/patch-fwcutter.c # b43-fwcutter/files/patch-fwcutter.h # b43-fwcutter/distinfo # b43-fwcutter/Makefile # b43-fwcutter/pkg-plist # echo c - b43-fwcutter mkdir -p b43-fwcutter > /dev/null 2>&1 echo x - b43-fwcutter/pkg-descr sed 's/^X//' >b43-fwcutter/pkg-descr << '4106bc9629969b4c5bf151375b383341' Xb43-fwcutter is a tool which can extract firmware from various BCM43xx drivers. X XWWW: http://bcm43xx.berlios.de/ 4106bc9629969b4c5bf151375b383341 echo c - b43-fwcutter/files mkdir -p b43-fwcutter/files > /dev/null 2>&1 echo x - b43-fwcutter/files/patch-fwcutter.c sed 's/^X//' >b43-fwcutter/files/patch-fwcutter.c << '54e5ab47192f37e5b07297d35eba630b' X--- ./fwcutter.c.orig 2008-02-13 11:46:26.000000000 -0600 X+++ ./fwcutter.c 2009-05-07 01:24:22.345157339 -0500 X@@ -38,7 +38,7 @@ X #include <sys/stat.h> X #include <sys/types.h> X X-#ifdef __DragonFly__ X+#if defined(__DragonFly__) || defined(__FreeBSD__) X #include <sys/endian.h> X #else X #include <byteswap.h> X@@ -48,7 +48,7 @@ X #include "fwcutter.h" X #include "fwcutter_list.h" X X-#ifdef __DragonFly__ X+#if defined(__DragonFly__) || defined(__FreeBSD__) X #define V3_FW_DIRNAME "v3" X #define V4_FW_DIRNAME "v4" X #else 54e5ab47192f37e5b07297d35eba630b echo x - b43-fwcutter/files/patch-fwcutter.h sed 's/^X//' >b43-fwcutter/files/patch-fwcutter.h << 'cbc8d227e7c70441d5f7c9b0b9693fa6' X--- ./fwcutter.h.orig 2008-02-13 11:46:26.000000000 -0600 X+++ ./fwcutter.h 2009-05-07 01:28:47.979870488 -0500 X@@ -12,7 +12,7 @@ X typedef uint16_t be16_t; /* Big-endian 16bit */ X typedef uint32_t be32_t; /* Big-endian 32bit */ X X-#ifdef __DragonFly__ X+#if defined(__DragonFly__) || defined(__FreeBSD__) X #define bswap_16 bswap16 X #define bswap_32 bswap32 X #endif cbc8d227e7c70441d5f7c9b0b9693fa6 echo x - b43-fwcutter/distinfo sed 's/^X//' >b43-fwcutter/distinfo << '0c5b89a167287eb52b89aa2f56c79ecd' XMD5 (b43-fwcutter-011.tar.bz2) = 3db2f4de85a459451f5b391cf67a8d44 XSHA256 (b43-fwcutter-011.tar.bz2) = 2cd6937b476f62bee5a7b932120e9a64aefd18cf6842f837375b7419db2f4358 XSIZE (b43-fwcutter-011.tar.bz2) = 12538 0c5b89a167287eb52b89aa2f56c79ecd echo x - b43-fwcutter/Makefile sed 's/^X//' >b43-fwcutter/Makefile << 'ca7651e30c7946ca381f843610c55d14' X# New ports collection makefile for: b43-fwcutter X# Date created: 7 May 2009 X# Whom: swhetzel@gmail.com X# X# $FreeBSD$ X# X XPORTNAME= b43-fwcutter XPORTVERSION= 011 XCATEGORIES= sysutils XMASTER_SITES= http://bu3sch.de/b43/fwcutter/ X XMAINTAINER= swhetzel@gmail.com XCOMMENT= Extracts firmware for Broadcom Wireless adapters X XUSE_BZIP2= yes X XMAN1= b43-fwcutter.1 X X.include <bsd.port.mk> ca7651e30c7946ca381f843610c55d14 echo x - b43-fwcutter/pkg-plist sed 's/^X//' >b43-fwcutter/pkg-plist << '9be4d412a4c9cb9b7b8f35dfc8595d24' 9be4d412a4c9cb9b7b8f35dfc8595d24 exit >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905081701.n48H1pfF051001>