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

Collapse All | Expand All

(-)/usr/portage/net-wireless/wpa_supplicant/wpa_supplicant-0.4.6.ebuild (-3 / +19 lines)
Lines 1-6 Link Here
1
# Copyright 1999-2005 Gentoo Foundation
1
# Copyright 1999-2005 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/net-wireless/wpa_supplicant/wpa_supplicant-0.4.6.ebuild,v 1.2 2005/11/10 09:56:50 brix Exp $
3
# $Header:  $
4
4
5
inherit eutils toolchain-funcs
5
inherit eutils toolchain-funcs
6
6
Lines 14-26 Link Here
14
14
15
SLOT="0"
15
SLOT="0"
16
KEYWORDS="~amd64 ~ppc ~x86"
16
KEYWORDS="~amd64 ~ppc ~x86"
17
IUSE="debug gsm qt readline ssl"
17
IUSE="debug gsm madwifi qt readline ssl"
18
18
19
DEPEND="gsm? ( sys-apps/pcsc-lite )
19
DEPEND="gsm? ( sys-apps/pcsc-lite )
20
		qt? ( =x11-libs/qt-3* )
20
		qt? ( =x11-libs/qt-3* )
21
		readline? ( sys-libs/ncurses
21
		readline? ( sys-libs/ncurses
22
					sys-libs/readline )
22
					sys-libs/readline )
23
		ssl? ( dev-libs/openssl )"
23
		ssl? ( dev-libs/openssl )
24
		madwifi? ( >=net-wireless/madwifi-driver-0.1_pre20050420-r1 )"
24
25
25
src_unpack() {
26
src_unpack() {
26
	local CONFIG=${S}/.config
27
	local CONFIG=${S}/.config
Lines 77-82 Link Here
77
	echo "CONFIG_DRIVER_PRISM54=y"     >> ${CONFIG}
78
	echo "CONFIG_DRIVER_PRISM54=y"     >> ${CONFIG}
78
	echo "CONFIG_DRIVER_WEXT=y"        >> ${CONFIG}
79
	echo "CONFIG_DRIVER_WEXT=y"        >> ${CONFIG}
79
	echo "CONFIG_DRIVER_WIRED=y"       >> ${CONFIG}
80
	echo "CONFIG_DRIVER_WIRED=y"       >> ${CONFIG}
81
82
	if use madwifi; then
83
		# Add include path for madwifi-driver headers
84
		echo "CFLAGS += -I/usr/include/madwifi/" >> ${CONFIG}
85
		echo "CONFIG_DRIVER_MADWIFI=y"           >> ${CONFIG}
86
87
		cd ${S}
88
		epatch ${FILESDIR}/driver_madwifi.c.patch
89
	fi
80
}
90
}
81
91
82
src_compile() {
92
src_compile() {
Lines 122-125 Link Here
122
	einfo "An example configuration file has been installed as"
132
	einfo "An example configuration file has been installed as"
123
	einfo "/etc/wpa_supplicant.conf.example"
133
	einfo "/etc/wpa_supplicant.conf.example"
124
	einfo
134
	einfo
135
	if use madwifi; then
136
		einfo "This package now compiles against the headers installed by"
137
		einfo "net-wireless/madwifi-driver. You should remerge ${PN} after"
138
		einfo "upgrading net-wireless/madwifi-driver."
139
		einfo
140
	fi
125
}
141
}

Return to bug 112549