blob: 56dc239fc9177f9c87821e3d751facdf92e86473 (
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-wireless/orinoco/orinoco-9999.ebuild,v 1.4 2005/12/12 16:31:19 brix Exp $
inherit linux-mod cvs
ECVS_SERVER="cvs.savannah.nongnu.org:/sources/orinoco"
ECVS_MODULE="orinoco"
ECVS_AUTH="pserver"
ECVS_USER="anonymous"
S=${WORKDIR}/${ECVS_MODULE}
DESCRIPTION="ORiNOCO IEEE 802.11 wireless LAN driver"
HOMEPAGE="http://www.nongnu.org/orinoco/"
SRC_URI=""
LICENSE="GPL-2 MPL-1.1"
SLOT="0"
KEYWORDS="-*"
IUSE="pcmcia usb"
RDEPEND="net-wireless/wireless-tools"
BUILD_TARGETS="all"
MODULESD_ORINOCO_DOCS="README.orinoco"
CONFIG_CHECK="~FW_LOADER !HERMES NET_RADIO ~PCI ~PCMCIA ~USB"
ERROR_HERMES="${P} requires Hermes chipset 802.11b support (Orinoco/Prism2/Symbol) (CONFIG_HERMES) to be DISABLED."
ERROR_NET_RADIO="${P} requires support for Wireless LAN drivers (non-hamradio) & Wireless Extensions (CONFIG_NET_RADIO)."
MODULESD_ORINOCO_NORTEL_ENABLED="no"
MODULESD_ORINOCO_PCI_ENABLED="no"
MODULESD_ORINOCO_PLX_ENABLED="no"
MODULESD_ORINOCO_TMD_ENABLED="no"
MODULESD_PRISM_USB_ENABLED="no"
pkg_setup() {
linux-mod_pkg_setup
if kernel_is lt 2 6 11; then
eerror
eerror "${P} requires kernel 2.6.11 or above."
eerror
die "Kernel version too old."
fi
BUILD_PARAMS="KERNEL_PATH=${KV_DIR}"
MODULE_NAMES="hermes(net/wireless:)
orinoco(net/wireless:)"
if linux_chkconfig_present PCI; then
MODULE_NAMES="${MODULE_NAMES}
orinoco_nortel(net/wireless:)
orinoco_pci(net/wireless:)
orinoco_plx(net/wireless:)
orinoco_tmd(net/wireless:)"
fi
if linux_chkconfig_present PPC_PMAC; then
MODULE_NAMES="${MODULE_NAMES} airport(net/wireless:)"
fi
if use pcmcia && linux_chkconfig_present PCMCIA; then
MODULE_NAMES="${MODULE_NAMES} orinoco_cs(net/wireless:)"
if linux_chkconfig_present FW_LOADER; then
MODULE_NAMES="${MODULE_NAMES} spectrum_cs(net/wireless:)"
fi
fi
if use usb && linux_chkconfig_present USB; then
MODULE_NAMES="${MODULE_NAMES}
orinoco_usb(net/wireless:)
prism_usb(net/wireless:)"
fi
}
src_compile() {
linux-mod_src_compile
if use pcmcia; then
emake hermes.conf
fi
}
src_install() {
linux-mod_src_install
dodoc NEWS TODO
if use pcmcia; then
insinto /etc/pcmcia
doins hermes.conf
fi
}
pkg_postinst() {
linux-mod_pkg_postinst
if [[ -e ${ROOT}/lib/modules/${KV_FULL}/pcmcia/orinoco.${KV_OBJ} ]]; then
ewarn
ewarn "The modules from this package conflicts with the modules installed"
ewarn "by the pcmcia-cs package. You will have to manually delete the"
ewarn "duplicate modules from the"
ewarn " ${ROOT}lib/modules/${KV_FULL}/pcmcia/"
ewarn "directory and manually run '/sbin/depmod -ae'"
ewarn
fi
}
|