1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-01 10:59:55 +00:00

b43-fwcutter is a tool which can extract firmware from various BCM43xx drivers.

WWW: http://bcm43xx.berlios.de/

PR:		ports/134372
Submitted by:	swhetzel at gmail.com
This commit is contained in:
Renato Botelho 2009-05-09 20:04:27 +00:00
parent 1475a09493
commit 8e3b4dbb22
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=233554
6 changed files with 59 additions and 0 deletions

View File

@ -44,6 +44,7 @@
SUBDIR += automounter
SUBDIR += autopsy
SUBDIR += avfs
SUBDIR += b43-fwcutter
SUBDIR += bacula-bat
SUBDIR += bacula-client
SUBDIR += bacula-client-devel

View File

@ -0,0 +1,21 @@
# New ports collection makefile for: b43-fwcutter
# Date created: 7 May 2009
# Whom: swhetzel@gmail.com
#
# $FreeBSD$
#
PORTNAME= b43-fwcutter
PORTVERSION= 011
CATEGORIES= sysutils
MASTER_SITES= http://bu3sch.de/b43/fwcutter/
MAINTAINER= swhetzel@gmail.com
COMMENT= Extracts firmware for Broadcom Wireless adapters
USE_BZIP2= yes
MAN1= b43-fwcutter.1
PLIST_FILES= bin/b43-fwcutter
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
MD5 (b43-fwcutter-011.tar.bz2) = 3db2f4de85a459451f5b391cf67a8d44
SHA256 (b43-fwcutter-011.tar.bz2) = 2cd6937b476f62bee5a7b932120e9a64aefd18cf6842f837375b7419db2f4358
SIZE (b43-fwcutter-011.tar.bz2) = 12538

View File

@ -0,0 +1,20 @@
--- ./fwcutter.c.orig 2008-02-13 11:46:26.000000000 -0600
+++ ./fwcutter.c 2009-05-07 01:24:22.345157339 -0500
@@ -38,7 +38,7 @@
#include <sys/stat.h>
#include <sys/types.h>
-#ifdef __DragonFly__
+#if defined(__DragonFly__) || defined(__FreeBSD__)
#include <sys/endian.h>
#else
#include <byteswap.h>
@@ -48,7 +48,7 @@
#include "fwcutter.h"
#include "fwcutter_list.h"
-#ifdef __DragonFly__
+#if defined(__DragonFly__) || defined(__FreeBSD__)
#define V3_FW_DIRNAME "v3"
#define V4_FW_DIRNAME "v4"
#else

View File

@ -0,0 +1,11 @@
--- ./fwcutter.h.orig 2008-02-13 11:46:26.000000000 -0600
+++ ./fwcutter.h 2009-05-07 01:28:47.979870488 -0500
@@ -12,7 +12,7 @@
typedef uint16_t be16_t; /* Big-endian 16bit */
typedef uint32_t be32_t; /* Big-endian 32bit */
-#ifdef __DragonFly__
+#if defined(__DragonFly__) || defined(__FreeBSD__)
#define bswap_16 bswap16
#define bswap_32 bswap32
#endif

View File

@ -0,0 +1,3 @@
b43-fwcutter is a tool which can extract firmware from various BCM43xx drivers.
WWW: http://bcm43xx.berlios.de/