blob: 058d67d08e47b65a8d5abc4a9847eb618d9e45f1 (
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-wireless/madwifi-driver/madwifi-driver-0.1_pre20040212.ebuild,v 1.1 2004/02/12 06:27:40 sediener Exp $
DESCRIPTION="Wireless driver for Atheros chipset a/b/g cards"
HOMEPAGE="http://madwifi.sourceforge.net/"
# Point to any required sources; these will be automatically downloaded by
# Portage.
SRC_URI="mirror://gentoo/$P.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE=""
DEPEND=""
S=${WORKDIR}
pkg_setup() {
if [[ "${KV}" > "2.5" ]] ; then
cd /usr/src/linux
./scripts/modpost ./vmlinux
fi
}
src_unpack() {
check_KV
unpack ${A}
einfo "${KV}"
cd ${S}
mv Makefile.inc ${T}
sed -e "s:\$(shell uname -r):${KV}:" \
-e "s:\${DEPTH\}/../:/usr/src/:" \
${T}/Makefile.inc > Makefile.inc
}
src_compile() {
make clean
make || die
}
src_install() {
dodir /lib/modules/${KV}/net
insinto /lib/modules/${KV}/net
# dealing with 2.6.0 kernel modules .ko naming
if [[ "${KV}" > "2.5" ]] ; then
# ewarn "Kernel Version 2.5 or higher"
doins ${S}/wlan/wlan.ko ${S}/ath_hal/ath_hal.ko ${S}/driver/ath_pci.ko
else
# ewarn "Kernel Version under 2.5"
doins ${S}/wlan/wlan.o ${S}/ath_hal/ath_hal.o ${S}/driver/ath_pci.o
fi
dodoc README
}
pkg_postinst() {
depmod -a
einfo ""
einfo "The madwifi drivers create an interface named 'athX'"
einfo "Create /etc/init.d/net.ath0 and add a line for athX"
einfo "in /etc/conf.d/net like 'iface_ath0=\"dhcp\"'"
einfo ""
}
|