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

Contents of /net-wireless/wpa_supplicant/wpa_supplicant-0.4.7.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Sun Aug 13 11:17:00 2006 UTC (13 years, 10 months ago) by uberlord
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +1 -1 lines
FILE REMOVED
Recomment out openct stuff
(Portage version: 2.1.1_pre4-r4)
 (Unsigned Manifest commit)

1 # Copyright 1999-2006 Gentoo Foundation
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.7.ebuild,v 1.8 2006/06/24 16:35:52 brix Exp $
4
5 inherit eutils toolchain-funcs
6
7 MY_P=${PN}-${PV/_/-}
8 S=${WORKDIR}/${MY_P}
9
10 DESCRIPTION="IEEE 802.1X/WPA supplicant for secure wireless transfers"
11 HOMEPAGE="http://hostap.epitest.fi/wpa_supplicant/"
12 SRC_URI="http://hostap.epitest.fi/releases/${MY_P}.tar.gz"
13 LICENSE="|| ( GPL-2 BSD )"
14
15 SLOT="0"
16 KEYWORDS="~amd64 ppc x86"
17 IUSE="gsm qt3 qt4 readline ssl"
18
19 DEPEND="gsm? ( sys-apps/pcsc-lite )
20 qt4? ( =x11-libs/qt-4* )
21 !qt4? ( qt3? ( =x11-libs/qt-3* ) )
22 readline? ( sys-libs/ncurses
23 sys-libs/readline )
24 ssl? ( dev-libs/openssl )"
25
26 pkg_setup() {
27 if use qt3 && use qt4; then
28 einfo
29 einfo "You have USE=\"qt3 qt4\" selected, defaulting to USE=\"qt4\""
30 einfo
31 fi
32 }
33
34 src_unpack() {
35 local CONFIG=${S}/.config
36
37 unpack ${A}
38
39 # toolchain setup
40 echo "CC = $(tc-getCC)" > ${CONFIG}
41
42 # basic setup
43 echo "CONFIG_CTRL_IFACE=y" >> ${CONFIG}
44 echo "CONFIG_BACKEND=file" >> ${CONFIG}
45
46 # basic authentication methods
47 echo "CONFIG_EAP_GTC=y" >> ${CONFIG}
48 echo "CONFIG_EAP_MD5=y" >> ${CONFIG}
49 echo "CONFIG_EAP_OTP=y" >> ${CONFIG}
50 echo "CONFIG_EAP_PSK=y" >> ${CONFIG}
51 echo "CONFIG_IEEE8021X_EAPOL=y" >> ${CONFIG}
52 echo "CONFIG_PKCS12=y" >> ${CONFIG}
53
54 if use gsm; then
55 # smart card authentication
56 echo "CONFIG_EAP_SIM=y" >> ${CONFIG}
57 echo "CONFIG_EAP_AKA=y" >> ${CONFIG}
58 echo "CONFIG_PCSC=y" >> ${CONFIG}
59 fi
60
61 if use readline; then
62 # readline/history support for wpa_cli
63 echo "CONFIG_READLINE=y" >> ${CONFIG}
64 fi
65
66 if use ssl; then
67 # SSL authentication methods
68 echo "CONFIG_EAP_LEAP=y" >> ${CONFIG}
69 echo "CONFIG_EAP_MSCHAPV2=y" >> ${CONFIG}
70 echo "CONFIG_EAP_PEAP=y" >> ${CONFIG}
71 echo "CONFIG_EAP_TLS=y" >> ${CONFIG}
72 echo "CONFIG_EAP_TTLS=y" >> ${CONFIG}
73 echo "CONFIG_SMARTCARD=y" >> ${CONFIG}
74 fi
75
76 # Linux specific drivers
77 echo "CONFIG_WIRELESS_EXTENSION=y" >> ${CONFIG}
78 echo "CONFIG_DRIVER_ATMEL=y" >> ${CONFIG}
79 echo "CONFIG_DRIVER_HOSTAP=y" >> ${CONFIG}
80 echo "CONFIG_DRIVER_IPW=y" >> ${CONFIG}
81 echo "CONFIG_DRIVER_NDISWRAPPER=y" >> ${CONFIG}
82 echo "CONFIG_DRIVER_PRISM54=y" >> ${CONFIG}
83 echo "CONFIG_DRIVER_WEXT=y" >> ${CONFIG}
84 echo "CONFIG_DRIVER_WIRED=y" >> ${CONFIG}
85 }
86
87 src_compile() {
88 emake || die "emake failed"
89
90 if use qt4; then
91 qmake -o "${S}"/wpa_gui-qt4/Makefile "${S}"/wpa_gui-qt4/wpa_gui.pro
92 cd "${S}"/wpa_gui-qt4
93 emake || die "emake wpa_gui-qt4 failed"
94 elif use qt3; then
95 [[ -d ${QTDIR}/etc/settings ]] && addwrite ${QTDIR}/etc/settings
96 /usr/qt/3/bin/qmake -o "${S}"/wpa_gui/Makefile "${S}"/wpa_gui/wpa_gui.pro
97 cd "${S}"/wpa_gui
98 emake || die "emake wpa_gui failed"
99 fi
100 }
101
102 src_install() {
103 into /
104
105 dosbin wpa_supplicant
106 dobin wpa_cli wpa_passphrase
107
108 newsbin ${FILESDIR}/${MY_P}-wpa_cli.action wpa_cli.action
109
110 if use qt4; then
111 into /usr
112 dobin wpa_gui-qt4/wpa_gui
113 elif use qt3; then
114 into /usr
115 dobin wpa_gui/wpa_gui
116 fi
117
118 dodoc ChangeLog COPYING eap_testing.txt README todo.txt
119 dodoc doc/wpa_supplicant.fig
120
121 insinto /etc
122 newins wpa_supplicant.conf wpa_supplicant.conf.example
123
124 doman doc/docbook/*.8
125 doman doc/docbook/*.5
126 }
127
128 pkg_postinst() {
129 einfo
130 einfo "To use ${MY_P} you must create the configuration file"
131 einfo "/etc/wpa_supplicant.conf"
132 einfo
133 einfo "An example configuration file has been installed as"
134 einfo "/etc/wpa_supplicant.conf.example"
135 einfo
136 einfo "Please notice that madwifi support was removed in this version"
137 einfo "of the ebuild. It will return once madwifi is stable again."
138 einfo
139 }

  ViewVC Help
Powered by ViewVC 1.1.20