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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (hide annotations) (download)
Mon Feb 14 14:20:15 2005 UTC (15 years, 5 months ago) by brix
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Version bump.
(Portage version: 2.0.51-r15)

1 brix 1.2 # Copyright 1999-2005 Gentoo Foundation
2 brix 1.1 # Distributed under the terms of the GNU General Public License v2
3 brix 1.4 # $Header: /var/cvsroot/gentoo-x86/net-wireless/wpa_supplicant/wpa_supplicant-0.2.6.ebuild,v 1.3 2005/01/14 17:24:30 brix Exp $
4 brix 1.1
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 brix 1.3 KEYWORDS="x86 ~ppc ~amd64"
17 brix 1.1 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 authentication methods
31     echo "CONFIG_EAP_GTC=y" >> ${CONFIG}
32     echo "CONFIG_EAP_MD5=y" >> ${CONFIG}
33     echo "CONFIG_EAP_OTP=y" >> ${CONFIG}
34     echo "CONFIG_EAP_PSK=y" >> ${CONFIG}
35     echo "CONFIG_IEEE8021X_EAPOL=y" >> ${CONFIG}
36    
37     if use ssl; then
38     # SSL authentication methods
39     echo "CONFIG_EAP_LEAP=y" >> ${CONFIG}
40     echo "CONFIG_EAP_MSCHAPV2=y" >> ${CONFIG}
41     echo "CONFIG_EAP_PEAP=y" >> ${CONFIG}
42     echo "CONFIG_EAP_TLS=y" >> ${CONFIG}
43     echo "CONFIG_EAP_TTLS=y" >> ${CONFIG}
44     fi
45    
46     if use gsm; then
47     # Smart card authentication
48     echo "CONFIG_EAP_SIM=y" >> ${CONFIG}
49     echo "CONFIG_PCSC=y" >> ${CONFIG}
50     echo "CFLAGS += -I/usr/include/PCSC" >> ${CONFIG}
51     fi
52    
53     # Linux specific drivers
54     echo "CONFIG_WIRELESS_EXTENSION=y" >> ${CONFIG}
55     echo "CONFIG_DRIVER_ATMEL=y" >> ${CONFIG}
56     echo "CONFIG_DRIVER_HOSTAP=y" >> ${CONFIG}
57     echo "CONFIG_DRIVER_IPW2100=y" >> ${CONFIG}
58     echo "CONFIG_DRIVER_NDISWRAPPER=y" >> ${CONFIG}
59     echo "CONFIG_DRIVER_PRISM54=y" >> ${CONFIG}
60     echo "CONFIG_DRIVER_WEXT=y" >> ${CONFIG}
61    
62     # Add include path for madwifi-driver headers
63     echo "CFLAGS += -I${WORKDIR}" >> ${CONFIG}
64     echo "CONFIG_DRIVER_MADWIFI=y" >> ${CONFIG}
65     }
66    
67     src_compile() {
68     emake || die "emake failed"
69     }
70    
71     src_install() {
72     dosbin wpa_supplicant
73     dobin wpa_cli wpa_passphrase
74    
75     dodoc ChangeLog COPYING developer.txt eap_testing.txt README todo.txt
76     dodoc doc/wpa_supplicant.fig
77    
78     insinto /etc
79     newins wpa_supplicant.conf wpa_supplicant.conf.example
80    
81     exeinto /etc/init.d
82     newexe ${FILESDIR}/${P}-init.d wpa_supplicant || die
83    
84     insinto /etc/conf.d
85     newins ${FILESDIR}/${P}-conf.d wpa_supplicant || die
86     }
87    
88     pkg_postinst() {
89     einfo
90     einfo "To use ${P} you must create the configuration file"
91     einfo "/etc/wpa_supplicant.conf"
92     einfo
93     einfo "An example configuration file has been installed as"
94     einfo "/etc/wpa_supplicant.conf.example"
95     einfo
96     }

  ViewVC Help
Powered by ViewVC 1.1.20