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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Jan 25 18:43:14 2005 UTC (15 years, 5 months ago) by brix
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Pruned old versions.
(Portage version: 2.0.51-r15)

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

  ViewVC Help
Powered by ViewVC 1.1.20