summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatsuu Takuto <matsuu@gentoo.org>2009-07-16 20:27:39 +0000
committerMatsuu Takuto <matsuu@gentoo.org>2009-07-16 20:27:39 +0000
commit661f41ef54aa210759201d124a8849038fa1bd50 (patch)
treee79e0a25e02f2ab49eeb57e23b9cd69abe996fbf /net-wireless/broadcom-sta
parentThank Harald van Dijk also in ChangeLog. (diff)
downloadgentoo-2-661f41ef54aa210759201d124a8849038fa1bd50.tar.gz
gentoo-2-661f41ef54aa210759201d124a8849038fa1bd50.tar.bz2
gentoo-2-661f41ef54aa210759201d124a8849038fa1bd50.zip
Added linux-2.6.30 patch.
(Portage version: 2.1.6.13/cvs/Linux x86_64)
Diffstat (limited to 'net-wireless/broadcom-sta')
-rw-r--r--net-wireless/broadcom-sta/ChangeLog9
-rw-r--r--net-wireless/broadcom-sta/broadcom-sta-5.10.91.9-r4.ebuild54
-rw-r--r--net-wireless/broadcom-sta/files/broadcom-sta-5.10.91.9-linux-2.6.30.patch13
3 files changed, 75 insertions, 1 deletions
diff --git a/net-wireless/broadcom-sta/ChangeLog b/net-wireless/broadcom-sta/ChangeLog
index e00b4b5422de..b94daf52da5e 100644
--- a/net-wireless/broadcom-sta/ChangeLog
+++ b/net-wireless/broadcom-sta/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for net-wireless/broadcom-sta
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-wireless/broadcom-sta/ChangeLog,v 1.10 2009/07/14 23:09:40 matsuu Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/broadcom-sta/ChangeLog,v 1.11 2009/07/16 20:27:39 matsuu Exp $
+
+*broadcom-sta-5.10.91.9-r4 (16 Jul 2009)
+
+ 16 Jul 2009; MATSUU Takuto <matsuu@gentoo.org>
+ +broadcom-sta-5.10.91.9-r4.ebuild,
+ +files/broadcom-sta-5.10.91.9-linux-2.6.30.patch:
+ Added linux-2.6.30 patch.
14 Jul 2009; MATSUU Takuto <matsuu@gentoo.org>
broadcom-sta-5.10.91.9-r3.ebuild:
diff --git a/net-wireless/broadcom-sta/broadcom-sta-5.10.91.9-r4.ebuild b/net-wireless/broadcom-sta/broadcom-sta-5.10.91.9-r4.ebuild
new file mode 100644
index 000000000000..c5c5eb4d899b
--- /dev/null
+++ b/net-wireless/broadcom-sta/broadcom-sta-5.10.91.9-r4.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/broadcom-sta/broadcom-sta-5.10.91.9-r4.ebuild,v 1.1 2009/07/16 20:27:39 matsuu Exp $
+
+inherit eutils linux-mod versionator
+
+MY_PV="$(replace_all_version_separators _)"
+DESCRIPTION="Broadcom's IEEE 802.11a/b/g/n hybrid Linux device driver."
+HOMEPAGE="http://www.broadcom.com/support/802.11/linux_sta.php"
+SRC_BASE="http://www.broadcom.com/docs/linux_sta/hybrid-portsrc-x86_"
+SRC_URI="x86? ( ${SRC_BASE}32-v${MY_PV}.tar.gz )
+ amd64? ( ${SRC_BASE}64-v${MY_PV}.tar.gz )
+ http://www.broadcom.com/docs/linux_sta/${MY_PV}_patch_2_6_29_kernel.zip"
+
+LICENSE="Broadcom"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RESTRICT="mirror"
+
+DEPEND=">=virtual/linux-sources-2.6.22"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}"
+
+MODULE_NAMES="wl(net/wireless)"
+MODULESD_WL_ALIASES=("wlan0 wl")
+
+pkg_setup() {
+ check_license
+
+ if kernel_is ge 2 6 31; then
+ CONFIG_CHECK="LIB80211"
+ elif kernel_is ge 2 6 29; then
+ # bug #276057
+ CONFIG_CHECK="LIB80211 COMPAT_NET_DEV_OPS"
+ else
+ CONFIG_CHECK="IEEE80211 IEEE80211_CRYPT_TKIP"
+ fi
+ linux-mod_pkg_setup
+ BUILD_PARAMS="-C ${KV_DIR} M=${S}"
+ BUILD_TARGETS="wl.ko"
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch \
+ "${FILESDIR}/${PN}-5.10.79.10-hidden-essid.patch" \
+ "${WORKDIR}/patch_2.6.29_kernels" \
+ "${FILESDIR}/${P}-license.patch" \
+ "${FILESDIR}/${P}-linux-2.6.30.patch"
+ "${FILESDIR}/${P}-linux-2.6.31.patch"
+}
diff --git a/net-wireless/broadcom-sta/files/broadcom-sta-5.10.91.9-linux-2.6.30.patch b/net-wireless/broadcom-sta/files/broadcom-sta-5.10.91.9-linux-2.6.30.patch
new file mode 100644
index 000000000000..dc98b6be3851
--- /dev/null
+++ b/net-wireless/broadcom-sta/files/broadcom-sta-5.10.91.9-linux-2.6.30.patch
@@ -0,0 +1,13 @@
+diff -Naur broadcom-sta-5.10.91.9.orig/src/wl/sys/wl_linux.c broadcom-sta-5.10.91.9/src/wl/sys/wl_linux.c
+--- broadcom-sta-5.10.91.9.orig/src/wl/sys/wl_linux.c 2009-07-17 05:13:13.000000000 +0900
++++ broadcom-sta-5.10.91.9/src/wl/sys/wl_linux.c 2009-07-17 05:17:34.000000000 +0900
+@@ -56,6 +56,9 @@
+ #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 14)
+ #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 29)
+ #include <net/lib80211.h>
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 30)
++#include <linux/ieee80211.h>
++#endif
+ #else
+ #include <net/ieee80211.h>
+ #endif