Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=46ce0530d60179a0608484f560d23d101077f1a4

commit 46ce0530d60179a0608484f560d23d101077f1a4
Author: Miklos Vajna <vmik...@frugalware.org>
Date:   Sun Jan 17 02:55:25 2010 +0100

bcmwl-5.10.91.9.3-1-i686

- new package

diff --git a/source/network-extra/bcmwl/FrugalBuild 
b/source/network-extra/bcmwl/FrugalBuild
new file mode 100644
index 0000000..3a475fb
--- /dev/null
+++ b/source/network-extra/bcmwl/FrugalBuild
@@ -0,0 +1,29 @@
+# Compiling Time: 0.02 SBU
+# Maintainer: Miklos Vajna <vmik...@frugalware.org>
+
+pkgname=bcmwl
+pkgver=5.10.91.9.3
+pkgrel=1
+pkgdesc="Broadcom 802.11 Linux STA wireless driver"
+url="http://www.broadcom.com/support/802.11/linux_sta.php";
+Finclude kernel-module
+groups=('network-extra')
+archs=('i686' 'x86_64')
+_arch=$CARCH
+[ "$CARCH" == "i686" ] && _arch=x86_32
+_F_archive_name="hybrid-portsrc-x86_64-v"
+Fpkgversep=""
+up2date="Flasttar $url"
+_F_cd_path="."
+source=(http://www.broadcom.com/docs/linux_sta/hybrid-portsrc-$_arch-v$pkgver.tar.gz
 \
+       kernel-2.6.32.patch)
+sha1sums=('80b413d810cbb3dbc8e2e7dfff9364656d042198' \
+          '12871e3c01cda0ed5fa809cb48e0ae432c39094c')
+
+build()
+{
+       Fpatchall
+       KBUILD_NOPEDANTIC=1 make -C /lib/modules/$_F_kernelmod_uname/build 
M=`pwd` || Fdie
+       Ffilerel 
/lib/modules/$_F_kernelmod_uname/kernel/drivers/net/wireless/wl.ko
+       Fbuild_kernelmod_scriptlet
+}
diff --git a/source/network-extra/bcmwl/README.Frugalware 
b/source/network-extra/bcmwl/README.Frugalware
new file mode 100644
index 0000000..a869c82
--- /dev/null
+++ b/source/network-extra/bcmwl/README.Frugalware
@@ -0,0 +1,17 @@
+This package is an alternative to the in-tree `b43` driver. Use it only
+in case the `b43` one does not work for you!
+
+To use it, add the followings to `/etc/sysconfig/blacklist`:
+
+----
+blacklist b43
+blacklist ssb
+blacklist lib80211
+----
+
+and add the followings to `/etc/sysconfig/modules`:
+
+----
+lib80211_crypt_tkip
+wl
+----
diff --git a/source/network-extra/bcmwl/kernel-2.6.32.patch 
b/source/network-extra/bcmwl/kernel-2.6.32.patch
new file mode 100644
index 0000000..ece6514
--- /dev/null
+++ b/source/network-extra/bcmwl/kernel-2.6.32.patch
@@ -0,0 +1,35 @@
+diff --git a/src/include/linuxver.h b/src/include/linuxver.h
+index c30d374..3eed21d 100644
+--- a/src/include/linuxver.h
++++ b/src/include/linuxver.h
+@@ -19,8 +19,6 @@
+ #include <linux/version.h>
+ #if (LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 0))
+ #include <linux/config.h>
+-#else
+-#include <linux/autoconf.h>
+ #endif
+ #include <linux/module.h>
+
+diff --git a/src/wl/sys/wl_linux.c b/src/wl/sys/wl_linux.c
+index 3626b80..fbec8e8 100644
+--- a/src/wl/sys/wl_linux.c
++++ b/src/wl/sys/wl_linux.c
+@@ -40,6 +40,9 @@
+ #include <linux/pci_ids.h>
+ #define WLC_MAXBSSCFG         1
+
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 32)
++#include <linux/sched.h>
++#endif
+ #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 29)
+ #include <net/lib80211.h>
+ #endif
+@@ -187,6 +190,7 @@ static struct pci_device_id wl_id_table[] = {
+       { 0 }
+ };
+ MODULE_DEVICE_TABLE(pci, wl_id_table);
++MODULE_LICENSE("Mixed/Proprietary");
+
+ #ifdef BCMDBG
+ static int msglevel = 0xdeadbeef;
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to