/[gentoo-x86]/net-wireless/wpa-supplicant/wpa-supplicant-0.2.4.ebuild
Gentoo

Contents of /net-wireless/wpa-supplicant/wpa-supplicant-0.2.4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Fri Dec 10 15:48:22 2004 UTC (15 years, 1 month ago) by brix
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Renamed net-wireless/wpa-supplicant to net-wireless/wpa_supplicant to avoid confusion.

1 # Copyright 1999-2004 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.2.4.ebuild,v 1.1 2004/09/16 18:19:40 brix Exp $
4
5 inherit eutils
6
7 MY_P="${P/wpa-/wpa_}"
8 DESCRIPTION="WPA Supplicant for secure wireless transfers"
9 HOMEPAGE="http://hostap.epitest.fi/wpa_supplicant/"
10 SRC_URI="http://hostap.epitest.fi/releases/${MY_P}.tar.gz
11 mirror://gentoo/madwifi-driver-0.1_pre20040906.tar.bz2"
12 LICENSE="GPL-2"
13
14 SLOT="0"
15 KEYWORDS="~x86"
16 IUSE="gsm pcap ssl"
17
18 DEPEND="gsm? ( sys-apps/pcsc-lite )
19 pcap? ( net-libs/libpcap
20 dev-libs/libdnet )
21 ssl? ( dev-libs/openssl )"
22
23 S=${WORKDIR}/${MY_P}
24
25 src_unpack() {
26 unpack ${A}
27
28 sed -i "s:madwifi/wpa::" ${S}/Makefile
29
30 # Use pcap and libdnet if we have it.
31 if use pcap; then
32 sed -i "s:^#CFLAGS\(.*\):CFLAGS\1:" ${S}/Makefile
33 sed -i "s:^#LIBS\(.*\):LIBS\1:" ${S}/Makefile
34 fi
35
36 cp ${FILESDIR}/${P}-config ${S}/.config || die
37
38 if use ssl; then
39 echo "CONFIG_EAP_TLS=y" >> ${S}/.config
40 echo "CONFIG_EAP_PEAP=y" >> ${S}/.config
41 echo "CONFIG_EAP_TTLS=y" >> ${S}/.config
42 fi
43
44 if use gsm; then
45 echo "CONFIG_PCSC=y" >> ${S}/.config
46 fi
47 }
48
49 src_compile() {
50 emake || die "emake failed"
51 }
52
53 src_install() {
54 dosbin wpa_cli wpa_passphrase wpa_supplicant
55
56 dodoc ChangeLog COPYING developer.txt eap_testing.txt README todo.txt
57 dodoc doc/wpa_supplicant.fig
58
59 insinto /etc
60 newins wpa_supplicant.conf wpa_supplicant.conf.example
61 }

  ViewVC Help
Powered by ViewVC 1.1.20