Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 32737 | Differences between
and this patch

Collapse All | Expand All

(-)hostap-driver-0.1.3.ebuild (-11 / +32 lines)
Lines 3-13 Link Here
3
# $Header: /home/cvsroot/gentoo-x86/net-wireless/hostap-driver/hostap-driver-0.1.3.ebuild,v 1.1 2004/02/09 00:25:42 wschlich Exp $
3
# $Header: /home/cvsroot/gentoo-x86/net-wireless/hostap-driver/hostap-driver-0.1.3.ebuild,v 1.1 2004/02/09 00:25:42 wschlich Exp $
4
4
5
# pcmcia eclass inherits eutils
5
# pcmcia eclass inherits eutils
6
inherit pcmcia
6
inherit kernel-mod pcmcia 
7
7
8
DESCRIPTION="HostAP wireless drivers"
8
DESCRIPTION="HostAP wireless drivers"
9
HOMEPAGE="http://hostap.epitest.fi/"
9
HOMEPAGE="http://hostap.epitest.fi/"
10
SRC_URI="${SRC_URI} http://hostap.epitest.fi/releases/${P}.tar.gz"
10
SRC_URI="${SRC_URI} http://hostap.epitest.fi/releases/${P}.tar.gz
11
		http://dev.gentoo.org/~latexer/files/patches/${P}-koutput.diff.gz"
11
LICENSE="GPL-2"
12
LICENSE="GPL-2"
12
SLOT="${KV}"
13
SLOT="${KV}"
13
KEYWORDS="~x86"
14
KEYWORDS="~x86"
Lines 17-25 Link Here
17
18
18
KMOD_PATH="/lib/modules/${KV}"
19
KMOD_PATH="/lib/modules/${KV}"
19
20
21
KERNEL_MOD_SOURCES="${P}.tar.gz"
22
KERNEL_MOD_KOUTPUT_PATCH="${DISTDIR}/${P}-koutput.diff.gz"
23
20
src_unpack() {
24
src_unpack() {
21
	check_KV
25
	# Unpack and set some variables
22
	unpack ${A}
26
	kernel-mod_src_unpack
23
27
24
	## unpack the pcmcia-cs sources if needed
28
	## unpack the pcmcia-cs sources if needed
25
	pcmcia_src_unpack
29
	pcmcia_src_unpack
Lines 38-43 Link Here
38
	if [ -n "${PCMCIA_VERSION}" ]; then
42
	if [ -n "${PCMCIA_VERSION}" ]; then
39
		sed -i -e "s:^PCMCIA_PATH=:PCMCIA_PATH=${PCMCIA_SOURCE_DIR}:" ${S}/Makefile
43
		sed -i -e "s:^PCMCIA_PATH=:PCMCIA_PATH=${PCMCIA_SOURCE_DIR}:" ${S}/Makefile
40
	fi
44
	fi
45
46
	# If on 2.5 or 2.6, set the kernel output stuff
47
	if [ "${KV_MINOR}" -gt "4" ]
48
	then
49
		sed -i -e \
50
		"s:^# KERNEL_OUTPUT_PATH=.*:KERNEL_OUTPUT_PATH=${KV_OUTPUT}:" \
51
		${S}/Makefile
52
	fi
53
41
}
54
}
42
55
43
src_compile() {
56
src_compile() {
Lines 47-54 Link Here
47
	cd ${S}
60
	cd ${S}
48
61
49
	einfo "Building hostap-driver for kernel version: ${KV}"
62
	einfo "Building hostap-driver for kernel version: ${KV}"
50
	case ${KV} in
63
	case ${KV_MINOR} in
51
		2.[34].*)
64
		[34])
52
			local mydrivers
65
			local mydrivers
53
66
54
			use pcmcia && mydrivers="${mydrivers} pccard"
67
			use pcmcia && mydrivers="${mydrivers} pccard"
Lines 58-64 Link Here
58
			einfo "Building the following drivers: ${mydrivers}"
71
			einfo "Building the following drivers: ${mydrivers}"
59
			emake EXTRA_CFLAGS="-DPRISM2_DOWNLOAD_SUPPORT" ${mydrivers} || die "make failed"
72
			emake EXTRA_CFLAGS="-DPRISM2_DOWNLOAD_SUPPORT" ${mydrivers} || die "make failed"
60
			;;
73
			;;
61
		2.[56].*)
74
		[56])
62
			unset ARCH
75
			unset ARCH
63
			emake EXTRA_CFLAGS="-DPRISM2_DOWNLOAD_SUPPORT" all || die "make failed"
76
			emake EXTRA_CFLAGS="-DPRISM2_DOWNLOAD_SUPPORT" all || die "make failed"
64
			;;
77
			;;
Lines 71-81 Link Here
71
84
72
src_install() {
85
src_install() {
73
	## kernel 2.6 has a different module file name suffix
86
	## kernel 2.6 has a different module file name suffix
74
	case ${KV} in
87
	case ${KV_MINOR} in
75
		2.[34].*)
88
		[34])
76
			kobj=o
89
			kobj=o
77
			;;
90
			;;
78
		2.[56].*)
91
		[56])
79
			kobj=ko
92
			kobj=ko
80
	esac
93
	esac
81
94
Lines 109-113 Link Here
109
122
110
pkg_postinst(){
123
pkg_postinst(){
111
	einfo "Checking kernel module dependancies"
124
	einfo "Checking kernel module dependancies"
112
	cd /usr/src/linux && make _modinst_post ## depmod
125
	# 2.6 completely re-installs modules when doing _modinst_post
126
	case ${KV_MINOR} in
127
		[34])
128
			cd /usr/src/linux && make _modinst_post ## depmod
129
			;;
130
		[56])
131
			depmod -a
132
			;;
133
	esac
113
}
134
}

Return to bug 32737