/[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.4 - (show annotations) (download)
Sat Dec 4 00:24:17 2004 UTC (15 years, 4 months ago) by slarti
Branch: MAIN
Changes since 1.3: +2 -2 lines
Marked ~amd64.

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.5.ebuild,v 1.3 2004/11/29 17:43:04 brix Exp $
4
5 inherit toolchain-funcs 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 KEYWORDS="~x86 ~ppc ~amd64"
21 IUSE="gsm pcap ssl"
22
23 DEPEND="sys-apps/sed
24 dev-util/pkgconfig"
25 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 epatch ${FILESDIR}/${MY_P}-pkg-config.patch
36
37 sed -i "s:madwifi/wpa::" ${S}/Makefile
38
39 sed -i "s:gcc:$(tc-getCC):g" ${S}/Makefile
40
41 # Use pcap and libdnet if we have it.
42 if use pcap; then
43 sed -i "s:^#\(CFLAGS\):\1:" ${S}/Makefile
44 sed -i "s:^#\(LIBS\):\1:" ${S}/Makefile
45 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