/[gentoo-x86]/net-wireless/wpa_supplicant/wpa_supplicant-0.4.8.ebuild
Gentoo

Diff of /net-wireless/wpa_supplicant/wpa_supplicant-0.4.8.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.5 Revision 1.8
1# Copyright 1999-2006 Gentoo Foundation 1# Copyright 1999-2006 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/Attic/wpa_supplicant-0.4.8.ebuild,v 1.5 2006/04/14 14:07:58 brix Exp $ 3# $Header: /var/cvsroot/gentoo-x86/net-wireless/wpa_supplicant/Attic/wpa_supplicant-0.4.8.ebuild,v 1.8 2006/06/24 16:35:52 brix Exp $
4 4
5inherit eutils toolchain-funcs 5inherit eutils toolchain-funcs
6 6
7MY_P=${PN}-${PV/_/-} 7MY_P=${PN}-${PV/_/-}
8S=${WORKDIR}/${MY_P} 8S=${WORKDIR}/${MY_P}
11HOMEPAGE="http://hostap.epitest.fi/wpa_supplicant/" 11HOMEPAGE="http://hostap.epitest.fi/wpa_supplicant/"
12SRC_URI="http://hostap.epitest.fi/releases/${MY_P}.tar.gz" 12SRC_URI="http://hostap.epitest.fi/releases/${MY_P}.tar.gz"
13LICENSE="|| ( GPL-2 BSD )" 13LICENSE="|| ( GPL-2 BSD )"
14 14
15SLOT="0" 15SLOT="0"
16KEYWORDS="~amd64 ~ppc x86" 16KEYWORDS="amd64 ~ppc x86"
17IUSE="gsm madwifi qt readline ssl" 17IUSE="gsm madwifi qt3 qt4 readline ssl"
18 18
19DEPEND="gsm? ( sys-apps/pcsc-lite ) 19DEPEND="gsm? ( sys-apps/pcsc-lite )
20 qt? ( || ( =x11-libs/qt-3* =x11-libs/qt-4* ) ) 20 qt4? ( =x11-libs/qt-4* )
21 !qt4? ( qt3? ( =x11-libs/qt-3* ) )
21 readline? ( sys-libs/ncurses 22 readline? ( sys-libs/ncurses
22 sys-libs/readline ) 23 sys-libs/readline )
23 ssl? ( dev-libs/openssl ) 24 ssl? ( dev-libs/openssl )
24 madwifi? ( || ( net-wireless/madwifi-ng net-wireless/madwifi-old ) )" 25 madwifi? ( || ( net-wireless/madwifi-ng net-wireless/madwifi-old ) )"
26
27pkg_setup() {
28 if use qt3 && use qt4; then
29 einfo
30 einfo "You have USE=\"qt3 qt4\" selected, defaulting to USE=\"qt4\""
31 einfo
32 fi
33}
25 34
26src_unpack() { 35src_unpack() {
27 local CONFIG=${S}/.config 36 local CONFIG=${S}/.config
28 37
29 unpack ${A} 38 unpack ${A}
83} 92}
84 93
85src_compile() { 94src_compile() {
86 emake || die "emake failed" 95 emake || die "emake failed"
87 96
88 if use qt; then 97 if use qt4; then
89 if has_version '=x11-libs/qt-4*'; then
90 qmake -o "${S}"/wpa_gui-qt4/Makefile "${S}"/wpa_gui-qt4/wpa_gui.pro 98 qmake -o "${S}"/wpa_gui-qt4/Makefile "${S}"/wpa_gui-qt4/wpa_gui.pro
91 cd "${S}"/wpa_gui-qt4 99 cd "${S}"/wpa_gui-qt4
92 emake || die "emake wpa_gui-qt4 failed" 100 emake || die "emake wpa_gui-qt4 failed"
93 else 101 elif use qt3; then
94 [[ -d ${QTDIR}/etc/settings ]] && addwrite ${QTDIR}/etc/settings 102 [[ -d ${QTDIR}/etc/settings ]] && addwrite ${QTDIR}/etc/settings
95 emake wpa_gui || die "emake wpa_gui failed" 103 /usr/qt/3/bin/qmake -o "${S}"/wpa_gui/Makefile "${S}"/wpa_gui/wpa_gui.pro
96 fi 104 cd "${S}"/wpa_gui
105 emake || die "emake wpa_gui failed"
97 fi 106 fi
98} 107}
99 108
100src_install() { 109src_install() {
101 into / 110 into /
103 dosbin wpa_supplicant 112 dosbin wpa_supplicant
104 dobin wpa_cli wpa_passphrase 113 dobin wpa_cli wpa_passphrase
105 114
106 newsbin ${FILESDIR}/${MY_P}-wpa_cli.action wpa_cli.action 115 newsbin ${FILESDIR}/${MY_P}-wpa_cli.action wpa_cli.action
107 116
108 if use qt; then 117 if use qt4; then
109 into /usr 118 into /usr
110
111 if has_version '=x11-libs/qt-4*'; then
112 dobin wpa_gui-qt4/wpa_gui 119 dobin wpa_gui-qt4/wpa_gui
113 else 120 elif use qt3; then
121 into /usr
114 dobin wpa_gui/wpa_gui 122 dobin wpa_gui/wpa_gui
115 fi
116 fi 123 fi
117 124
118 dodoc ChangeLog COPYING eap_testing.txt README todo.txt 125 dodoc ChangeLog COPYING eap_testing.txt README todo.txt
119 dodoc doc/wpa_supplicant.fig 126 dodoc doc/wpa_supplicant.fig
120 127

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.8

  ViewVC Help
Powered by ViewVC 1.1.20