aboutsummaryrefslogtreecommitdiff
path: root/sysutils/b43-fwcutter
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2009-05-09 20:04:27 +0000
committerRenato Botelho <garga@FreeBSD.org>2009-05-09 20:04:27 +0000
commit8e3b4dbb22e755056d5d545c4080748b860a17c7 (patch)
treec012990c9ce95f3c98d482d926cfdc0dd18fe532 /sysutils/b43-fwcutter
parent1475a09493508d08fe72393769d14468d7d0c2b7 (diff)
downloadports-8e3b4dbb22e755056d5d545c4080748b860a17c7.tar.gz
ports-8e3b4dbb22e755056d5d545c4080748b860a17c7.zip
Notes
Diffstat (limited to 'sysutils/b43-fwcutter')
-rw-r--r--sysutils/b43-fwcutter/Makefile21
-rw-r--r--sysutils/b43-fwcutter/distinfo3
-rw-r--r--sysutils/b43-fwcutter/files/patch-fwcutter.c20
-rw-r--r--sysutils/b43-fwcutter/files/patch-fwcutter.h11
-rw-r--r--sysutils/b43-fwcutter/pkg-descr3
5 files changed, 58 insertions, 0 deletions
diff --git a/sysutils/b43-fwcutter/Makefile b/sysutils/b43-fwcutter/Makefile
new file mode 100644
index 000000000000..d8d6fccd1e68
--- /dev/null
+++ b/sysutils/b43-fwcutter/Makefile
@@ -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>
diff --git a/sysutils/b43-fwcutter/distinfo b/sysutils/b43-fwcutter/distinfo
new file mode 100644
index 000000000000..a9dfcd22b806
--- /dev/null
+++ b/sysutils/b43-fwcutter/distinfo
@@ -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
diff --git a/sysutils/b43-fwcutter/files/patch-fwcutter.c b/sysutils/b43-fwcutter/files/patch-fwcutter.c
new file mode 100644
index 000000000000..1edf0f402c6f
--- /dev/null
+++ b/sysutils/b43-fwcutter/files/patch-fwcutter.c
@@ -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
diff --git a/sysutils/b43-fwcutter/files/patch-fwcutter.h b/sysutils/b43-fwcutter/files/patch-fwcutter.h
new file mode 100644
index 000000000000..34513467d1ee
--- /dev/null
+++ b/sysutils/b43-fwcutter/files/patch-fwcutter.h
@@ -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
diff --git a/sysutils/b43-fwcutter/pkg-descr b/sysutils/b43-fwcutter/pkg-descr
new file mode 100644
index 000000000000..31683423d0f7
--- /dev/null
+++ b/sysutils/b43-fwcutter/pkg-descr
@@ -0,0 +1,3 @@
+b43-fwcutter is a tool which can extract firmware from various BCM43xx drivers.
+
+WWW: http://bcm43xx.berlios.de/