blob: 17dc8049f897759e9e47d750bb1f0cefca6f2eb8 (
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
55
56
57
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-wireless/adm8211/adm8211-20060111.ebuild,v 1.3 2007/11/14 03:38:32 robbat2 Exp $
inherit linux-mod
S=${WORKDIR}/${PN}
DESCRIPTION="IEEE 802.11 wireless LAN driver for adm8211 based cards"
HOMEPAGE="http://aluminum.sourmilk.net/adm8211/"
SRC_URI="http://aluminum.sourmilk.net/adm8211/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND="net-wireless/wireless-tools"
BUILD_TARGETS="all"
MODULE_NAMES="adm8211(net:)"
CONFIG_CHECK="WIRELESS_EXT CRYPTO_ARC4"
ERROR_WIRELESS_EXT="${P} requires support for Wireless LAN drivers (non-hamradio) & Wireless Extensions"
ERROR_CRYPTO_ARC4="${P} requires support for ARC4 cipher algorithm (CONFIG_CRYPTO_ARC4)."
pkg_setup() {
linux-mod_pkg_setup
if kernel_is lt 2 6 10; then
eerror "${P} requires linux-2.6.9 or later."
die "${P} requires linux-2.6.9 or later"
fi
BUILD_PARAMS="KDIR=${KV_DIR}"
}
src_unpack() {
unpack ${A}
cd ${S}
epatch ${FILESDIR}/01-fix-up-build-breaks-from-2.6.19.patch
epatch ${FILESDIR}/02-Use-ieee80211_generic_get_stats.patch
epatch ${FILESDIR}/03-fix-work_struct-build-breakage.patch
epatch ${FILESDIR}/04-fix-set-essid-for-WE-21.patch
epatch ${FILESDIR}/05-update-email-address-from-jkmaline-cc.hut.fi-to.patch
kernel_is ge 2 6 22 && epatch ${FILESDIR}/06-adm8211-fix-build-breakage-from-skb-mac.raw.patch
convert_to_m ${S}/Makefile
}
src_install() {
linux-mod_src_install
dodoc Changelog NOTES TODO
}
|