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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Wed Jul 13 10:20:12 2005 UTC (14 years, 11 months ago) by brix
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Pruned old ebuilds.
(Portage version: 2.0.51.22-r1)

1 # Copyright 1999-2005 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.1.ebuild,v 1.1 2005/05/23 11:49:48 brix Exp $
4
5 inherit toolchain-funcs
6
7 MY_P=${PN}-${PV/_/-}
8 S=${WORKDIR}/${MY_P}
9
10 MADWIFI_VERSION="2005-04-20"
11
12 DESCRIPTION="IEEE 802.1X/WPA supplicant for secure wireless transfers"
13 HOMEPAGE="http://hostap.epitest.fi/wpa_supplicant/"
14 SRC_URI="http://hostap.epitest.fi/releases/${MY_P}.tar.gz
15 mirror://gentoo/madwifi-cvs-snapshot-${MADWIFI_VERSION}.tar.bz2"
16 LICENSE="|| ( GPL-2 BSD )"
17
18 SLOT="0"
19 KEYWORDS="~x86 ~ppc ~amd64"
20 IUSE="debug gsm qt readline ssl"
21
22 DEPEND="gsm? ( sys-apps/pcsc-lite )
23 qt? ( x11-libs/qt )
24 readline? ( sys-libs/ncurses
25 sys-libs/readline )
26 ssl? ( dev-libs/openssl )"
27
28 src_unpack() {
29 local CONFIG=${S}/.config
30
31 unpack ${A}
32
33 # toolchain setup
34 echo "CC = $(tc-getCC)" > ${CONFIG}
35
36 # basic setup
37 echo "CONFIG_CTRL_IFACE=y" >> ${CONFIG}
38 echo "CONFIG_XSUPPLICANT_IFACE=y" >> ${CONFIG}
39
40 # basic authentication methods
41 echo "CONFIG_EAP_GTC=y" >> ${CONFIG}
42 echo "CONFIG_EAP_MD5=y" >> ${CONFIG}
43 echo "CONFIG_EAP_OTP=y" >> ${CONFIG}
44 echo "CONFIG_EAP_PSK=y" >> ${CONFIG}
45 echo "CONFIG_IEEE8021X_EAPOL=y" >> ${CONFIG}
46 echo "CONFIG_PKCS12=y" >> ${CONFIG}
47
48 if ! use debug; then
49 echo "CONFIG_NO_STDOUT_DEBUG=y" >> ${CONFIG}
50 fi
51
52 if use gsm; then
53 # smart card authentication
54 echo "CONFIG_EAP_SIM=y" >> ${CONFIG}
55 echo "CONFIG_EAP_AKA=y" >> ${CONFIG}
56 echo "CONFIG_PCSC=y" >> ${CONFIG}
57 fi
58
59 if use readline; then
60 # readline/history support for wpa_cli
61 echo "CONFIG_READLINE=y" >> ${CONFIG}
62 fi
63
64 if use ssl; then
65 # SSL authentication methods
66 echo "CONFIG_EAP_LEAP=y" >> ${CONFIG}
67 echo "CONFIG_EAP_MSCHAPV2=y" >> ${CONFIG}
68 echo "CONFIG_EAP_PEAP=y" >> ${CONFIG}
69 echo "CONFIG_EAP_TLS=y" >> ${CONFIG}
70 echo "CONFIG_EAP_TTLS=y" >> ${CONFIG}
71 echo "CONFIG_SMARTCARD=y" >> ${CONFIG}
72 fi
73
74 # Linux specific drivers
75 echo "CONFIG_WIRELESS_EXTENSION=y" >> ${CONFIG}
76 echo "CONFIG_DRIVER_ATMEL=y" >> ${CONFIG}
77 echo "CONFIG_DRIVER_HOSTAP=y" >> ${CONFIG}
78 echo "CONFIG_DRIVER_IPW=y" >> ${CONFIG}
79 echo "CONFIG_DRIVER_NDISWRAPPER=y" >> ${CONFIG}
80 echo "CONFIG_DRIVER_PRISM54=y" >> ${CONFIG}
81 echo "CONFIG_DRIVER_WEXT=y" >> ${CONFIG}
82 echo "CONFIG_DRIVER_WIRED=y" >> ${CONFIG}
83
84 # Add include path for madwifi-driver headers
85 echo "CFLAGS += -I${WORKDIR}/madwifi" >> ${CONFIG}
86 echo "CONFIG_DRIVER_MADWIFI=y" >> ${CONFIG}
87 }
88
89 src_compile() {
90 emake || die "emake failed"
91
92 if use qt; then
93 [[ -d ${QTDIR}/etc/settings ]] && addwrite ${QTDIR}/etc/settings
94 emake wpa_gui || die "emake wpa_gui failed"
95 fi
96 }
97
98 src_install() {
99 dosbin wpa_supplicant
100 dobin wpa_cli wpa_passphrase
101
102 if use qt; then
103 dobin wpa_gui/wpa_gui
104 fi
105
106 newsbin ${FILESDIR}/${MY_P}-wpa_cli.action wpa_cli.action
107
108 dodoc ChangeLog COPYING developer.txt eap_testing.txt README todo.txt
109 dodoc doc/wpa_supplicant.fig
110
111 insinto /etc
112 newins wpa_supplicant.conf wpa_supplicant.conf.example
113
114 newinitd ${FILESDIR}/${MY_P}-init.d wpa_supplicant || die
115 newconfd ${FILESDIR}/${MY_P}-conf.d wpa_supplicant || die
116 }
117
118 pkg_postinst() {
119 einfo
120 einfo "To use ${MY_P} you must create the configuration file"
121 einfo "/etc/wpa_supplicant.conf"
122 einfo
123 einfo "An example configuration file has been installed as"
124 einfo "/etc/wpa_supplicant.conf.example"
125 einfo
126 }

  ViewVC Help
Powered by ViewVC 1.1.20