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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Fri Feb 3 10:23:46 2006 UTC (14 years, 6 months ago) by brix
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Pruned old ebuilds.
(Portage version: 2.0.54)

1 brix 1.1 # Copyright 1999-2005 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 brix 1.3 # $Header: /var/cvsroot/gentoo-x86/net-wireless/wpa_supplicant/wpa_supplicant-0.4.5.ebuild,v 1.2 2005/11/25 13:26:07 brix Exp $
4 brix 1.1
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 brix 1.2 IUSE="gsm madwifi qt readline ssl"
18 brix 1.1
19     DEPEND="gsm? ( sys-apps/pcsc-lite )
20     qt? ( =x11-libs/qt-3* )
21     readline? ( sys-libs/ncurses
22     sys-libs/readline )
23     ssl? ( dev-libs/openssl )
24     madwifi? ( >=net-wireless/madwifi-driver-0.1_pre20050420-r1 )
25     >=sys-apps/baselayout-1.11.13"
26    
27     src_unpack() {
28     local CONFIG=${S}/.config
29    
30     unpack ${A}
31    
32     # toolchain setup
33     echo "CC = $(tc-getCC)" > ${CONFIG}
34    
35     # basic setup
36     echo "CONFIG_CTRL_IFACE=y" >> ${CONFIG}
37     echo "CONFIG_BACKEND=file" >> ${CONFIG}
38    
39     # basic authentication methods
40     echo "CONFIG_EAP_GTC=y" >> ${CONFIG}
41     echo "CONFIG_EAP_MD5=y" >> ${CONFIG}
42     echo "CONFIG_EAP_OTP=y" >> ${CONFIG}
43     echo "CONFIG_EAP_PSK=y" >> ${CONFIG}
44     echo "CONFIG_IEEE8021X_EAPOL=y" >> ${CONFIG}
45     echo "CONFIG_PKCS12=y" >> ${CONFIG}
46    
47     if use gsm; then
48     # smart card authentication
49     echo "CONFIG_EAP_SIM=y" >> ${CONFIG}
50     echo "CONFIG_EAP_AKA=y" >> ${CONFIG}
51     echo "CONFIG_PCSC=y" >> ${CONFIG}
52     fi
53    
54     if use readline; then
55     # readline/history support for wpa_cli
56     echo "CONFIG_READLINE=y" >> ${CONFIG}
57     fi
58    
59     if use ssl; then
60     # SSL authentication methods
61     echo "CONFIG_EAP_LEAP=y" >> ${CONFIG}
62     echo "CONFIG_EAP_MSCHAPV2=y" >> ${CONFIG}
63     echo "CONFIG_EAP_PEAP=y" >> ${CONFIG}
64     echo "CONFIG_EAP_TLS=y" >> ${CONFIG}
65     echo "CONFIG_EAP_TTLS=y" >> ${CONFIG}
66     echo "CONFIG_SMARTCARD=y" >> ${CONFIG}
67     fi
68    
69     # Linux specific drivers
70     echo "CONFIG_WIRELESS_EXTENSION=y" >> ${CONFIG}
71     echo "CONFIG_DRIVER_ATMEL=y" >> ${CONFIG}
72     echo "CONFIG_DRIVER_HOSTAP=y" >> ${CONFIG}
73     echo "CONFIG_DRIVER_IPW=y" >> ${CONFIG}
74     echo "CONFIG_DRIVER_NDISWRAPPER=y" >> ${CONFIG}
75     echo "CONFIG_DRIVER_PRISM54=y" >> ${CONFIG}
76     echo "CONFIG_DRIVER_WEXT=y" >> ${CONFIG}
77     echo "CONFIG_DRIVER_WIRED=y" >> ${CONFIG}
78    
79     if use madwifi; then
80     # Add include path for madwifi-driver headers
81     echo "CFLAGS += -I/usr/include/madwifi" >> ${CONFIG}
82     echo "CONFIG_DRIVER_MADWIFI=y" >> ${CONFIG}
83     fi
84     }
85    
86     src_compile() {
87     emake || die "emake failed"
88    
89     if use qt; then
90     [[ -d ${QTDIR}/etc/settings ]] && addwrite ${QTDIR}/etc/settings
91     emake wpa_gui || die "emake wpa_gui failed"
92     fi
93     }
94    
95     src_install() {
96     into /
97    
98     dosbin wpa_supplicant
99     dobin wpa_cli wpa_passphrase
100    
101     newsbin ${FILESDIR}/${MY_P}-wpa_cli.action wpa_cli.action
102    
103     if use qt; then
104     into /usr
105     dobin wpa_gui/wpa_gui
106     fi
107    
108     dodoc ChangeLog COPYING 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     doman doc/docbook/*.8
115     doman doc/docbook/*.5
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     if use madwifi; then
127     einfo "This package now compiles against the headers installed by"
128     einfo "net-wireless/madwifi-driver. You should remerge ${PN} after"
129     einfo "upgrading net-wireless/madwifi-driver."
130     einfo
131     fi
132     }

  ViewVC Help
Powered by ViewVC 1.1.20