blob: c5c5eb4d899b2ad6e14d576ed82fd82ec7ddf896 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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"
}
|