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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Tue Jan 25 18:43:14 2005 UTC (15 years, 6 months ago) by brix
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +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.2.ebuild,v 1.2 2005/01/03 11:09:01 brix Exp $
4
5 inherit toolchain-funcs
6
7 MADWIFI_VERSION="0.1_pre20041019"
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-driver-${MADWIFI_VERSION}.tar.bz2"
13 LICENSE="GPL-2"
14
15 SLOT="0"
16 KEYWORDS="~x86 ~ppc ~amd64"
17 IUSE="gsm ssl"
18
19 DEPEND="ssl? ( dev-libs/openssl )
20 gsm? ( sys-apps/pcsc-lite )"
21
22 src_unpack() {
23 local CONFIG=${S}/.config
24
25 unpack ${A}
26
27 # toolchain setup
28 echo "CC = $(tc-getCC)" > ${CONFIG}
29
30 # basic setup
31 echo "CONFIG_CTRL_IFACE=y" >> ${CONFIG}
32 echo "CONFIG_XSUPPLICANT_IFACE=y" >> ${CONFIG}
33
34 # basic authentication methods
35 echo "CONFIG_EAP_GTC=y" >> ${CONFIG}
36 echo "CONFIG_EAP_MD5=y" >> ${CONFIG}
37 echo "CONFIG_EAP_OTP=y" >> ${CONFIG}
38 echo "CONFIG_EAP_PSK=y" >> ${CONFIG}
39 echo "CONFIG_IEEE8021X_EAPOL=y" >> ${CONFIG}
40 echo "CONFIG_PKCS12=y" >> ${CONFIG}
41
42 if use ssl; then
43 # SSL authentication methods
44 echo "CONFIG_EAP_LEAP=y" >> ${CONFIG}
45 echo "CONFIG_EAP_MSCHAPV2=y" >> ${CONFIG}
46 echo "CONFIG_EAP_PEAP=y" >> ${CONFIG}
47 echo "CONFIG_EAP_TLS=y" >> ${CONFIG}
48 echo "CONFIG_EAP_TTLS=y" >> ${CONFIG}
49 fi
50
51 if use gsm; then
52 # Smart card authentication
53 echo "CONFIG_EAP_SIM=y" >> ${CONFIG}
54 echo "CONFIG_EAP_AKA=y" >> ${CONFIG}
55 echo "CONFIG_PCSC=y" >> ${CONFIG}
56 fi
57
58 # Linux specific drivers
59 echo "CONFIG_WIRELESS_EXTENSION=y" >> ${CONFIG}
60 echo "CONFIG_DRIVER_ATMEL=y" >> ${CONFIG}
61 echo "CONFIG_DRIVER_HOSTAP=y" >> ${CONFIG}
62 echo "CONFIG_DRIVER_IPW2100=y" >> ${CONFIG}
63 echo "CONFIG_DRIVER_NDISWRAPPER=y" >> ${CONFIG}
64 echo "CONFIG_DRIVER_PRISM54=y" >> ${CONFIG}
65 echo "CONFIG_DRIVER_WEXT=y" >> ${CONFIG}
66
67 # Add include path for madwifi-driver headers
68 echo "CFLAGS += -I${WORKDIR}" >> ${CONFIG}
69 echo "CONFIG_DRIVER_MADWIFI=y" >> ${CONFIG}
70 }
71
72 src_compile() {
73 emake || die "emake failed"
74 }
75
76 src_install() {
77 dosbin wpa_supplicant
78 dobin wpa_cli wpa_passphrase
79
80 dodoc ChangeLog COPYING developer.txt eap_testing.txt README todo.txt
81 dodoc doc/wpa_supplicant.fig
82
83 insinto /etc
84 newins wpa_supplicant.conf wpa_supplicant.conf.example
85
86 exeinto /etc/init.d
87 newexe ${FILESDIR}/${P}-init.d wpa_supplicant || die
88
89 insinto /etc/conf.d
90 newins ${FILESDIR}/${P}-conf.d wpa_supplicant || die
91 }
92
93 pkg_postinst() {
94 einfo
95 einfo "To use ${P} you must create the configuration file"
96 einfo "/etc/wpa_supplicant.conf"
97 einfo
98 einfo "An example configuration file has been installed as"
99 einfo "/etc/wpa_supplicant.conf.example"
100 einfo
101 }

  ViewVC Help
Powered by ViewVC 1.1.20