/[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.5 - (hide annotations) (download)
Fri Dec 10 15:48:22 2004 UTC (15 years, 3 months ago) by brix
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
Renamed net-wireless/wpa-supplicant to net-wireless/wpa_supplicant to avoid confusion.

1 brix 1.1 # Copyright 1999-2004 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 brix 1.5 # $Header: /var/cvsroot/gentoo-x86/net-wireless/wpa-supplicant/wpa-supplicant-0.2.5.ebuild,v 1.4 2004/12/04 00:24:17 slarti Exp $
4 brix 1.1
5 brix 1.3 inherit toolchain-funcs eutils
6 brix 1.1
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 slarti 1.4 KEYWORDS="~x86 ~ppc ~amd64"
21 brix 1.1 IUSE="gsm pcap ssl"
22    
23 brix 1.3 DEPEND="sys-apps/sed
24     dev-util/pkgconfig"
25 brix 1.1 RDEPEND="gsm? ( sys-apps/pcsc-lite )
26     pcap? ( net-libs/libpcap
27     dev-libs/libdnet )
28     ssl? ( dev-libs/openssl )"
29    
30     src_unpack() {
31     unpack ${A}
32    
33     cd ${S}
34     epatch ${WORKDIR}/${MY_P}-ipw2100.diff
35 brix 1.3 epatch ${FILESDIR}/${MY_P}-pkg-config.patch
36 brix 1.1
37     sed -i "s:madwifi/wpa::" ${S}/Makefile
38    
39 brix 1.3 sed -i "s:gcc:$(tc-getCC):g" ${S}/Makefile
40    
41 brix 1.1 # Use pcap and libdnet if we have it.
42     if use pcap; then
43 brix 1.3 sed -i "s:^#\(CFLAGS\):\1:" ${S}/Makefile
44     sed -i "s:^#\(LIBS\):\1:" ${S}/Makefile
45 brix 1.1 fi
46    
47     cp ${FILESDIR}/${P}-config ${S}/.config || die
48    
49     if use ssl; then
50     echo "CONFIG_EAP_TLS=y" >> ${S}/.config
51     echo "CONFIG_EAP_PEAP=y" >> ${S}/.config
52     echo "CONFIG_EAP_TTLS=y" >> ${S}/.config
53     fi
54    
55     if use gsm; then
56     echo "CONFIG_PCSC=y" >> ${S}/.config
57     fi
58     }
59    
60     src_compile() {
61     emake || die "emake failed"
62     }
63    
64     src_install() {
65     dosbin wpa_cli wpa_passphrase wpa_supplicant
66    
67     dodoc ChangeLog COPYING developer.txt eap_testing.txt README todo.txt
68     dodoc doc/wpa_supplicant.fig
69    
70     insinto /etc
71     newins wpa_supplicant.conf wpa_supplicant.conf.example
72    
73     exeinto /etc/init.d
74     newexe ${FILESDIR}/${MY_P}-init.d wpa_supplicant
75    
76     insinto /etc/conf.d
77     newins ${FILESDIR}/${MY_P}-conf.d wpa_supplicant
78     }

  ViewVC Help
Powered by ViewVC 1.1.20