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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Mon Oct 18 12:27:04 2004 UTC (15 years, 5 months ago) by dholm
Branch: MAIN
Changes since 1.1: +2 -2 lines
Added to ~ppc

1 brix 1.1 # Copyright 1999-2004 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 dholm 1.2 # $Header: /var/cvsroot/gentoo-x86/net-wireless/wpa-supplicant/wpa-supplicant-0.2.5.ebuild,v 1.1 2004/10/16 15:00:34 brix Exp $
4 brix 1.1
5     inherit eutils
6    
7     MADWIFI_VERSION="0.1_pre20040906"
8    
9     MY_P="${P/wpa-/wpa_}"
10     S=${WORKDIR}/${MY_P}
11    
12     DESCRIPTION="WPA Supplicant for secure wireless transfers"
13     HOMEPAGE="http://hostap.epitest.fi/wpa_supplicant/"
14     SRC_URI="http://hostap.epitest.fi/releases/${MY_P}.tar.gz
15     mirror://gentoo/madwifi-driver-${MADWIFI_VERSION}.tar.bz2
16     mirror://gentoo/${MY_P}-ipw2100.diff.gz"
17     LICENSE="GPL-2"
18    
19     SLOT="0"
20 dholm 1.2 KEYWORDS="~x86 ~ppc"
21 brix 1.1 IUSE="gsm pcap ssl"
22    
23     DEPEND="sys-apps/sed"
24     RDEPEND="gsm? ( sys-apps/pcsc-lite )
25     pcap? ( net-libs/libpcap
26     dev-libs/libdnet )
27     ssl? ( dev-libs/openssl )"
28    
29     src_unpack() {
30     unpack ${A}
31    
32     cd ${S}
33     epatch ${WORKDIR}/${MY_P}-ipw2100.diff
34    
35     sed -i "s:madwifi/wpa::" ${S}/Makefile
36    
37     # Use pcap and libdnet if we have it.
38     if use pcap; then
39     sed -i "s:^#CFLAGS\(.*\):CFLAGS\1:" ${S}/Makefile
40     sed -i "s:^#LIBS\(.*\):LIBS\1:" ${S}/Makefile
41     fi
42    
43     cp ${FILESDIR}/${P}-config ${S}/.config || die
44    
45     if use ssl; then
46     echo "CONFIG_EAP_TLS=y" >> ${S}/.config
47     echo "CONFIG_EAP_PEAP=y" >> ${S}/.config
48     echo "CONFIG_EAP_TTLS=y" >> ${S}/.config
49     fi
50    
51     if use gsm; then
52     echo "CONFIG_PCSC=y" >> ${S}/.config
53     fi
54     }
55    
56     src_compile() {
57     emake || die "emake failed"
58     }
59    
60     src_install() {
61     dosbin wpa_cli wpa_passphrase wpa_supplicant
62    
63     dodoc ChangeLog COPYING developer.txt eap_testing.txt README todo.txt
64     dodoc doc/wpa_supplicant.fig
65    
66     insinto /etc
67     newins wpa_supplicant.conf wpa_supplicant.conf.example
68    
69     exeinto /etc/init.d
70     newexe ${FILESDIR}/${MY_P}-init.d wpa_supplicant
71    
72     insinto /etc/conf.d
73     newins ${FILESDIR}/${MY_P}-conf.d wpa_supplicant
74     }

  ViewVC Help
Powered by ViewVC 1.1.20