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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Sat Oct 22 10:52:52 2005 UTC (14 years, 9 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.22-r3)

1 brix 1.1 # Copyright 1999-2005 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 brix 1.2 # $Header: /var/cvsroot/gentoo-x86/net-wireless/wpa_supplicant/wpa_supplicant-0.4.4.ebuild,v 1.1 2005/08/22 12:53:24 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     IUSE="debug gsm madwifi qt readline ssl"
18    
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    
38     # basic authentication methods
39     echo "CONFIG_EAP_GTC=y" >> ${CONFIG}
40     echo "CONFIG_EAP_MD5=y" >> ${CONFIG}
41     echo "CONFIG_EAP_OTP=y" >> ${CONFIG}
42     echo "CONFIG_EAP_PSK=y" >> ${CONFIG}
43     echo "CONFIG_IEEE8021X_EAPOL=y" >> ${CONFIG}
44     echo "CONFIG_PKCS12=y" >> ${CONFIG}
45    
46     if ! use debug; then
47     echo "CONFIG_NO_STDOUT_DEBUG=y" >> ${CONFIG}
48     fi
49    
50     if use gsm; then
51     # smart card authentication
52     echo "CONFIG_EAP_SIM=y" >> ${CONFIG}
53     echo "CONFIG_EAP_AKA=y" >> ${CONFIG}
54     echo "CONFIG_PCSC=y" >> ${CONFIG}
55     fi
56    
57     if use readline; then
58     # readline/history support for wpa_cli
59     echo "CONFIG_READLINE=y" >> ${CONFIG}
60     fi
61    
62     if use ssl; then
63     # SSL authentication methods
64     echo "CONFIG_EAP_LEAP=y" >> ${CONFIG}
65     echo "CONFIG_EAP_MSCHAPV2=y" >> ${CONFIG}
66     echo "CONFIG_EAP_PEAP=y" >> ${CONFIG}
67     echo "CONFIG_EAP_TLS=y" >> ${CONFIG}
68     echo "CONFIG_EAP_TTLS=y" >> ${CONFIG}
69     echo "CONFIG_SMARTCARD=y" >> ${CONFIG}
70     fi
71    
72     # Linux specific drivers
73     echo "CONFIG_WIRELESS_EXTENSION=y" >> ${CONFIG}
74     echo "CONFIG_DRIVER_ATMEL=y" >> ${CONFIG}
75     echo "CONFIG_DRIVER_HOSTAP=y" >> ${CONFIG}
76     echo "CONFIG_DRIVER_IPW=y" >> ${CONFIG}
77     echo "CONFIG_DRIVER_NDISWRAPPER=y" >> ${CONFIG}
78     echo "CONFIG_DRIVER_PRISM54=y" >> ${CONFIG}
79     echo "CONFIG_DRIVER_WEXT=y" >> ${CONFIG}
80     echo "CONFIG_DRIVER_WIRED=y" >> ${CONFIG}
81    
82     if use madwifi; then
83     # Add include path for madwifi-driver headers
84     echo "CFLAGS += -I/usr/include/madwifi" >> ${CONFIG}
85     echo "CONFIG_DRIVER_MADWIFI=y" >> ${CONFIG}
86     fi
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     into /
100    
101     dosbin wpa_supplicant
102     dobin wpa_cli wpa_passphrase
103    
104     newsbin ${FILESDIR}/${MY_P}-wpa_cli.action wpa_cli.action
105    
106     if use qt; then
107     into /usr
108     dobin wpa_gui/wpa_gui
109     fi
110    
111     dodoc ChangeLog COPYING eap_testing.txt README todo.txt
112     dodoc doc/wpa_supplicant.fig
113    
114     insinto /etc
115     newins wpa_supplicant.conf wpa_supplicant.conf.example
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     einfo "Please note that the wpa_supplicant init script has been"
127     einfo "removed in favor of sys-apps/baselayout-1.11.x"
128     einfo
129     if use madwifi; then
130     einfo "This package now compiles against the headers installed by"
131     einfo "net-wireless/madwifi-driver. You should remerge ${PN} after"
132     einfo "upgrading net-wireless/madwifi-driver."
133     einfo
134     fi
135     }

  ViewVC Help
Powered by ViewVC 1.1.20