/[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)
Thu Dec 16 19:28:26 2004 UTC (15 years, 6 months ago) by brix
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Moved wpa_cli and wpa_passphrase to /usr/bin.

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

  ViewVC Help
Powered by ViewVC 1.1.20