Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 302080
Collapse All | Expand All

(-)a/wpa_supplicant-0.7.0.ebuild (-19 / +10 lines)
Lines 4-10 Link Here
4
4
5
EAPI="2"
5
EAPI="2"
6
6
7
inherit eutils toolchain-funcs qt3 qt4
7
inherit eutils toolchain-funcs qt4-r2
8
8
9
DESCRIPTION="IEEE 802.1X/WPA supplicant for secure wireless transfers"
9
DESCRIPTION="IEEE 802.1X/WPA supplicant for secure wireless transfers"
10
HOMEPAGE="http://hostap.epitest.fi/wpa_supplicant/"
10
HOMEPAGE="http://hostap.epitest.fi/wpa_supplicant/"
Lines 13-19 Link Here
13
13
14
SLOT="0"
14
SLOT="0"
15
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~x86-fbsd"
15
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~x86-fbsd"
16
IUSE="dbus debug gnutls eap-sim fasteap madwifi ps3 qt3 qt4 readline ssl wps kernel_linux kernel_FreeBSD"
16
IUSE="dbus debug gnutls eap-sim fasteap madwifi ps3 qt4 readline ssl wps kernel_linux kernel_FreeBSD"
17
17
18
DEPEND="dev-libs/libnl
18
DEPEND="dev-libs/libnl
19
	dbus? ( sys-apps/dbus )
19
	dbus? ( sys-apps/dbus )
Lines 27-33 Link Here
27
	!kernel_linux? ( net-libs/libpcap )
27
	!kernel_linux? ( net-libs/libpcap )
28
	qt4? ( x11-libs/qt-gui:4
28
	qt4? ( x11-libs/qt-gui:4
29
		x11-libs/qt-svg:4 )
29
		x11-libs/qt-svg:4 )
30
	!qt4? ( qt3? ( x11-libs/qt:3 ) )
31
	readline? ( sys-libs/ncurses sys-libs/readline )
30
	readline? ( sys-libs/ncurses sys-libs/readline )
32
	ssl? ( dev-libs/openssl )
31
	ssl? ( dev-libs/openssl )
33
	!ssl? ( gnutls? ( net-libs/gnutls ) )
32
	!ssl? ( gnutls? ( net-libs/gnutls ) )
Lines 44-53 Link Here
44
	if use gnutls && use ssl ; then
43
	if use gnutls && use ssl ; then
45
		einfo "You have both 'gnutls' and 'ssl' USE flags enabled: defaulting to USE=\"ssl\""
44
		einfo "You have both 'gnutls' and 'ssl' USE flags enabled: defaulting to USE=\"ssl\""
46
	fi
45
	fi
47
48
	if use qt3 && use qt4 ; then
49
		einfo "You have both 'qt3' and 'qt4' USE flags enabled: defaulting to USE=\"qt4\""
50
	fi
51
}
46
}
52
47
53
src_prepare() {
48
src_prepare() {
Lines 170-188 Link Here
170
165
171
	# Enable mitigation against certain attacks against TKIP
166
	# Enable mitigation against certain attacks against TKIP
172
	echo "CONFIG_DELAYED_MIC_ERROR_REPORT=y" >> .config
167
	echo "CONFIG_DELAYED_MIC_ERROR_REPORT=y" >> .config
168
169
	if use qt4 ; then
170
		cd "${S}"/wpa_gui-qt4
171
		eqmake4 wpa_gui.pro
172
	fi
173
}
173
}
174
174
175
src_compile() {
175
src_compile() {
176
	einfo "Building wpa_supplicant"
176
	emake || die "emake failed"
177
	emake || die "emake failed"
177
178
178
	if use qt4 ; then
179
	if use qt4 ; then
179
		cd "${S}"/wpa_gui-qt4
180
		cd "${S}"/wpa_gui-qt4
180
		eqmake4 wpa_gui.pro
181
		einfo "Building wpa_gui"
181
		emake || die "Qt4 wpa_gui compilation failed"
182
		emake || die "wpa_gui compilation failed"
182
	elif use qt3 ; then
183
		cd "${S}"/wpa_gui
184
		eqmake3 wpa_gui.pro
185
		emake || die "Qt3 wpa_gui compilation failed"
186
	fi
183
	fi
187
}
184
}
188
185
Lines 214-225 Link Here
214
	if use qt4 ; then
211
	if use qt4 ; then
215
		into /usr
212
		into /usr
216
		dobin wpa_gui-qt4/wpa_gui || die
213
		dobin wpa_gui-qt4/wpa_gui || die
217
	elif use qt3 ; then
218
		into /usr
219
		dobin wpa_gui/wpa_gui || die
220
	fi
221
222
	if use qt3 || use qt4 ; then
223
		doicon wpa_gui-qt4/icons/wpa_gui.svg || die "Icon not found"
214
		doicon wpa_gui-qt4/icons/wpa_gui.svg || die "Icon not found"
224
		make_desktop_entry wpa_gui "WPA Supplicant Administration GUI" "wpa_gui" "Qt;Network;"
215
		make_desktop_entry wpa_gui "WPA Supplicant Administration GUI" "wpa_gui" "Qt;Network;"
225
	fi
216
	fi

Return to bug 302080