diff options
author | Henrik Brix Andersen <brix@gentoo.org> | 2004-12-10 15:50:22 +0000 |
---|---|---|
committer | Henrik Brix Andersen <brix@gentoo.org> | 2004-12-10 15:50:22 +0000 |
commit | 97953b0961e24044958079232d1f054d80568c77 (patch) | |
tree | 00bf81c59f3f382aefe31cfb31ec6dcc6f39d412 /net-wireless/wpa_supplicant | |
parent | Renamed net-wireless/wpa-supplicant to net-wireless/wpa_supplicant to avoid c... (diff) | |
download | gentoo-2-97953b0961e24044958079232d1f054d80568c77.tar.gz gentoo-2-97953b0961e24044958079232d1f054d80568c77.tar.bz2 gentoo-2-97953b0961e24044958079232d1f054d80568c77.zip |
Renamed net-wireless/wpa-supplicant to net-wireless/wpa_supplicant to avoid confusion.
Diffstat (limited to 'net-wireless/wpa_supplicant')
11 files changed, 342 insertions, 0 deletions
diff --git a/net-wireless/wpa_supplicant/ChangeLog b/net-wireless/wpa_supplicant/ChangeLog new file mode 100644 index 000000000000..26bb80e68245 --- /dev/null +++ b/net-wireless/wpa_supplicant/ChangeLog @@ -0,0 +1,38 @@ +# ChangeLog for net-wireless/wpa-supplicant +# Copyright 1999-2004 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-wireless/wpa_supplicant/ChangeLog,v 1.1 2004/12/10 15:45:32 brix Exp $ + +*wpa_supplicant-0.2.5 (10 Dec 2004) + + 10 Dec 2004; Henrik Brix Andersen <brix@gentoo.org> +metadata.xml, + +files/wpa_supplicant-0.2.4-config, +files/wpa_supplicant-0.2.5-conf.d, + +files/wpa_supplicant-0.2.5-config, +files/wpa_supplicant-0.2.5-init.d, + +files/wpa_supplicant-0.2.5-pkg-config.patch, +wpa_supplicant-0.2.4.ebuild, + +wpa_supplicant-0.2.5.ebuild: + Renamed net-wireless/wpa-supplicant to net-wireless/wpa_supplicant to avoid + confusion. + + 04 Dec 2004; Tom Martin <slarti@gentoo.org> wpa-supplicant-0.2.5.ebuild: + Marked ~amd64. + + 29 Nov 2004; Henrik Brix Andersen <brix@gentoo.org> + +files/wpa_supplicant-0.2.5-pkg-config.patch, wpa-supplicant-0.2.5.ebuild: + Use tc-getCC() to determine CC, clean up sed statements and patch Makefile to + use pkg-config (fixes bug #72760). + + 18 Oct 2004; David Holm <dholm@gentoo.org> wpa-supplicant-0.2.5.ebuild: + Added to ~ppc. + +*wpa-supplicant-0.2.5 (16 Oct 2004) + + 16 Oct 2004; Henrik Brix Andersen <brix@gentoo.org> + +files/wpa-supplicant-0.2.5-config, +files/wpa_supplicant-0.2.5-conf.d, + +files/wpa_supplicant-0.2.5-init.d, +wpa-supplicant-0.2.5.ebuild: + Version bump. Added ipw2100 patch from upstream. Added init script. + +*wpa-supplicant-0.2.4 (16 Sep 2004) + + 16 Sep 2004; Henrik Brix Andersen <brix@gentoo.org> + +files/wpa-supplicant-0.2.4-config, +wpa-supplicant-0.2.4.ebuild: + Initial import. Fixes bug #57708. Ebuild by latexer and me. + diff --git a/net-wireless/wpa_supplicant/files/digest-wpa_supplicant-0.2.4 b/net-wireless/wpa_supplicant/files/digest-wpa_supplicant-0.2.4 new file mode 100644 index 000000000000..5a3c7ae60a8b --- /dev/null +++ b/net-wireless/wpa_supplicant/files/digest-wpa_supplicant-0.2.4 @@ -0,0 +1,2 @@ +MD5 2e209c137656c9a4e2185bf1d3fd6620 wpa_supplicant-0.2.4.tar.gz 190929 +MD5 6c5f62812f30b962e054782b9cec7b9c madwifi-driver-0.1_pre20040906.tar.bz2 1797060 diff --git a/net-wireless/wpa_supplicant/files/digest-wpa_supplicant-0.2.5 b/net-wireless/wpa_supplicant/files/digest-wpa_supplicant-0.2.5 new file mode 100644 index 000000000000..e427fe8be624 --- /dev/null +++ b/net-wireless/wpa_supplicant/files/digest-wpa_supplicant-0.2.5 @@ -0,0 +1,3 @@ +MD5 6a3bdec50022ce6b56cb874ed55690bf wpa_supplicant-0.2.5.tar.gz 193387 +MD5 6c5f62812f30b962e054782b9cec7b9c madwifi-driver-0.1_pre20040906.tar.bz2 1797060 +MD5 00912391abc208c4c76a0dd0b946a4cd wpa_supplicant-0.2.5-ipw2100.diff.gz 3650 diff --git a/net-wireless/wpa_supplicant/files/wpa_supplicant-0.2.4-config b/net-wireless/wpa_supplicant/files/wpa_supplicant-0.2.4-config new file mode 100644 index 000000000000..b179c50e03a7 --- /dev/null +++ b/net-wireless/wpa_supplicant/files/wpa_supplicant-0.2.4-config @@ -0,0 +1,26 @@ +# Needed for the wireless drivers +CONFIG_WIRELESS_EXTENSION=y + +# Drivers which compile out-of-the-box +CONFIG_DRIVER_ATMEL=y +CONFIG_DRIVER_HOSTAP=y +CONFIG_DRIVER_NDISWRAPPER=y +CONFIG_DRIVER_PRISM54=y +CONFIG_DRIVER_WEXT=y + +# Drivers which doesn't compile out-of-the-box +#CONFIG_DRIVER_HERMES=y + +# Drivers which compiles using patches/external sources +CONFIG_DRIVER_MADWIFI=y + +# Authentication methods +CONFIG_IEEE8021X_EAPOL=y +CONFIG_EAP_GTC=y +CONFIG_EAP_LEAP=y +CONFIG_EAP_MD5=y +CONFIG_EAP_OTP=y +CONFIG_EAP_SIM=y +CONFIG_MSCHAPV2=y + +# ssl and pcap USE flags controls remaining options! diff --git a/net-wireless/wpa_supplicant/files/wpa_supplicant-0.2.5-conf.d b/net-wireless/wpa_supplicant/files/wpa_supplicant-0.2.5-conf.d new file mode 100644 index 000000000000..d0b6affe5e56 --- /dev/null +++ b/net-wireless/wpa_supplicant/files/wpa_supplicant-0.2.5-conf.d @@ -0,0 +1,12 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-wireless/wpa_supplicant/files/wpa_supplicant-0.2.5-conf.d,v 1.1 2004/12/10 15:45:32 brix Exp $ + +# List of interfaces +INTERFACES="eth1" + +# Common arguments to all wpa_supplicant instances +ARGS="-w" + +# Interface specific arguments +#ARGS_eth1="-Dipw2100" diff --git a/net-wireless/wpa_supplicant/files/wpa_supplicant-0.2.5-config b/net-wireless/wpa_supplicant/files/wpa_supplicant-0.2.5-config new file mode 100644 index 000000000000..c43e6e0a6034 --- /dev/null +++ b/net-wireless/wpa_supplicant/files/wpa_supplicant-0.2.5-config @@ -0,0 +1,27 @@ +# Needed for the wireless drivers +CONFIG_WIRELESS_EXTENSION=y + +# Drivers which compile out-of-the-box +CONFIG_DRIVER_ATMEL=y +CONFIG_DRIVER_HOSTAP=y +CONFIG_DRIVER_NDISWRAPPER=y +CONFIG_DRIVER_PRISM54=y +CONFIG_DRIVER_WEXT=y + +# Drivers which doesn't compile out-of-the-box +#CONFIG_DRIVER_HERMES=y + +# Drivers which compiles using patches/external sources +CONFIG_DRIVER_IPW2100=y +CONFIG_DRIVER_MADWIFI=y + +# Authentication methods +CONFIG_IEEE8021X_EAPOL=y +CONFIG_EAP_GTC=y +CONFIG_EAP_LEAP=y +CONFIG_EAP_MD5=y +CONFIG_EAP_OTP=y +CONFIG_EAP_SIM=y +CONFIG_MSCHAPV2=y + +# ssl and pcap USE flags controls remaining options! diff --git a/net-wireless/wpa_supplicant/files/wpa_supplicant-0.2.5-init.d b/net-wireless/wpa_supplicant/files/wpa_supplicant-0.2.5-init.d new file mode 100644 index 000000000000..aab9a815a41a --- /dev/null +++ b/net-wireless/wpa_supplicant/files/wpa_supplicant-0.2.5-init.d @@ -0,0 +1,42 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-wireless/wpa_supplicant/files/wpa_supplicant-0.2.5-init.d,v 1.1 2004/12/10 15:45:32 brix Exp $ + +depend() { + before net +} + +start() { + ebegin "Starting wpa_supplicant" + + if [ ! -f /etc/wpa_supplicant.conf ]; then + eerror "Configuration file /etc/wpa_supplicant.conf not found" + return 1 + fi + + if [ -z "$INTERFACES" ]; then + eerror "No interfaces specified in /etc/conf.d/wpa_supplicant" + return 1 + fi + + for IFACE in $INTERFACES; do + ebegin " ${IFACE}" + + eval ARGS_IFACE=\"\$\{ARGS_$IFACE\}\" + + /sbin/ifconfig ${IFACE} up + + start-stop-daemon --start --quiet --exec /usr/sbin/wpa_supplicant \ + -- -B -i${IFACE} -c/etc/wpa_supplicant.conf ${ARGS} ${ARGS_IFACE} + eend $? + done +} + +stop() { + ebegin "Stopping wpa_supplicant" + + start-stop-daemon --stop --quiet --exec /usr/sbin/wpa_supplicant + eend ${?} +} + diff --git a/net-wireless/wpa_supplicant/files/wpa_supplicant-0.2.5-pkg-config.patch b/net-wireless/wpa_supplicant/files/wpa_supplicant-0.2.5-pkg-config.patch new file mode 100644 index 000000000000..607e25054a9a --- /dev/null +++ b/net-wireless/wpa_supplicant/files/wpa_supplicant-0.2.5-pkg-config.patch @@ -0,0 +1,50 @@ +diff -urp wpa_supplicant-0.2.5/Makefile wpa_supplicant-0.2.5-pkg-config/Makefile +--- wpa_supplicant-0.2.5/Makefile 2004-10-04 01:36:26.000000000 +0200 ++++ wpa_supplicant-0.2.5-pkg-config/Makefile 2004-11-29 16:13:24.052231960 +0100 +@@ -9,15 +9,10 @@ endif + # Include directories for CVS version + CFLAGS += -I../driver/modules -I../utils -I../hostapd + +-# Uncomment following two lines and fix the paths if you have installed openssl +-# in non-default location +-#CFLAGS += -I/usr/local/openssl/include +-#LIBS += -L/usr/local/openssl/lib +- + # Uncomment following two lines to use portable libdnet and libpcap instead of + # Linux-specific internal implementation for L2 packet handling +-#CFLAGS += -DUSE_DNET_PCAP +-#LIBS=-ldnet -lpcap ++#CFLAGS += -DUSE_DNET_PCAP $(shell dnet-config --cflags) ++#LIBS = $(shell dnet-config --libs) -lpcap + + all: verify_config wpa_supplicant wpa_passphrase wpa_cli + +@@ -173,23 +168,22 @@ endif + + ifdef CONFIG_PCSC + # PC/SC interface for smartcards (USIM, GSM SIM) +-CFLAGS += -DPCSC_FUNCS ++CFLAGS += -DPCSC_FUNCS $(shell pkg-config --cflags libpcsclite) + OBJS += pcsc_funcs.o +-# -lpthread may not be needed depending on how pcsc-lite was configured +-LIBS += -lpcsclite -lpthread ++LIBS += $(shell pkg-config --libs libpcsclite) + endif + + ifdef TLS_FUNCS + # Shared TLS functions (needed for EAP_TLS, EAP_PEAP, and EAP_TTLS) + CFLAGS += -DEAP_TLS_FUNCS + OBJS += eap_tls_common.o +-LIBS += -lssl +-LIBS_p += -lcrypto ++LIBS += $(shell pkg-config --libs openssl) ++LIBS_p += $(shell pkg-config --libs openssl) + endif + + ifdef MS_FUNCS + ifndef TLS_FUNCS +-LIBS += -lcrypto ++LIBS += $(shell pkg-config --libs openssl) + endif + OBJS += ms_funcs.o + endif diff --git a/net-wireless/wpa_supplicant/metadata.xml b/net-wireless/wpa_supplicant/metadata.xml new file mode 100644 index 000000000000..cfbdff13bd61 --- /dev/null +++ b/net-wireless/wpa_supplicant/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>mobile</herd> +<maintainer> + <email>brix@gentoo.org</email> + <name>Henrik Brix Andersen</name> +</maintainer> +</pkgmetadata> diff --git a/net-wireless/wpa_supplicant/wpa_supplicant-0.2.4.ebuild b/net-wireless/wpa_supplicant/wpa_supplicant-0.2.4.ebuild new file mode 100644 index 000000000000..92d75027fd3c --- /dev/null +++ b/net-wireless/wpa_supplicant/wpa_supplicant-0.2.4.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $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 $ + +inherit eutils + +DESCRIPTION="WPA Supplicant for secure wireless transfers" +HOMEPAGE="http://hostap.epitest.fi/wpa_supplicant/" +SRC_URI="http://hostap.epitest.fi/releases/${P}.tar.gz + mirror://gentoo/madwifi-driver-0.1_pre20040906.tar.bz2" +LICENSE="GPL-2" + +SLOT="0" +KEYWORDS="~x86" +IUSE="gsm pcap ssl" + +DEPEND="gsm? ( sys-apps/pcsc-lite ) + pcap? ( net-libs/libpcap + dev-libs/libdnet ) + ssl? ( dev-libs/openssl )" + +src_unpack() { + unpack ${A} + + sed -i "s:madwifi/wpa::" ${S}/Makefile + + # Use pcap and libdnet if we have it. + if use pcap; then + sed -i "s:^#CFLAGS\(.*\):CFLAGS\1:" ${S}/Makefile + sed -i "s:^#LIBS\(.*\):LIBS\1:" ${S}/Makefile + fi + + cp ${FILESDIR}/${P}-config ${S}/.config || die + + if use ssl; then + echo "CONFIG_EAP_TLS=y" >> ${S}/.config + echo "CONFIG_EAP_PEAP=y" >> ${S}/.config + echo "CONFIG_EAP_TTLS=y" >> ${S}/.config + fi + + if use gsm; then + echo "CONFIG_PCSC=y" >> ${S}/.config + fi +} + +src_compile() { + emake || die "emake failed" +} + +src_install() { + dosbin wpa_cli wpa_passphrase wpa_supplicant + + dodoc ChangeLog COPYING developer.txt eap_testing.txt README todo.txt + dodoc doc/wpa_supplicant.fig + + insinto /etc + newins wpa_supplicant.conf wpa_supplicant.conf.example +} diff --git a/net-wireless/wpa_supplicant/wpa_supplicant-0.2.5.ebuild b/net-wireless/wpa_supplicant/wpa_supplicant-0.2.5.ebuild new file mode 100644 index 000000000000..62b6de5ffac3 --- /dev/null +++ b/net-wireless/wpa_supplicant/wpa_supplicant-0.2.5.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-wireless/wpa_supplicant/wpa_supplicant-0.2.5.ebuild,v 1.1 2004/12/10 15:45:32 brix Exp $ + +inherit toolchain-funcs eutils + +MADWIFI_VERSION="0.1_pre20040906" + +DESCRIPTION="WPA Supplicant for secure wireless transfers" +HOMEPAGE="http://hostap.epitest.fi/wpa_supplicant/" +SRC_URI="http://hostap.epitest.fi/releases/${P}.tar.gz + mirror://gentoo/madwifi-driver-${MADWIFI_VERSION}.tar.bz2 + mirror://gentoo/${P}-ipw2100.diff.gz" +LICENSE="GPL-2" + +SLOT="0" +KEYWORDS="~x86 ~ppc ~amd64" +IUSE="gsm pcap ssl" + +DEPEND="sys-apps/sed + dev-util/pkgconfig" +RDEPEND="gsm? ( sys-apps/pcsc-lite ) + pcap? ( net-libs/libpcap + dev-libs/libdnet ) + ssl? ( dev-libs/openssl )" + +src_unpack() { + unpack ${A} + + cd ${S} + epatch ${WORKDIR}/${P}-ipw2100.diff + epatch ${FILESDIR}/${P}-pkg-config.patch + + sed -i "s:madwifi/wpa::" ${S}/Makefile + + sed -i "s:gcc:$(tc-getCC):g" ${S}/Makefile + + # Use pcap and libdnet if we have it. + if use pcap; then + sed -i "s:^#\(CFLAGS\):\1:" ${S}/Makefile + sed -i "s:^#\(LIBS\):\1:" ${S}/Makefile + fi + + cp ${FILESDIR}/${P}-config ${S}/.config || die + + if use ssl; then + echo "CONFIG_EAP_TLS=y" >> ${S}/.config + echo "CONFIG_EAP_PEAP=y" >> ${S}/.config + echo "CONFIG_EAP_TTLS=y" >> ${S}/.config + fi + + if use gsm; then + echo "CONFIG_PCSC=y" >> ${S}/.config + fi +} + +src_compile() { + emake || die "emake failed" +} + +src_install() { + dosbin wpa_cli wpa_passphrase wpa_supplicant + + dodoc ChangeLog COPYING developer.txt eap_testing.txt README todo.txt + dodoc doc/wpa_supplicant.fig + + insinto /etc + newins wpa_supplicant.conf wpa_supplicant.conf.example + + exeinto /etc/init.d + newexe ${FILESDIR}/${P}-init.d wpa_supplicant + + insinto /etc/conf.d + newins ${FILESDIR}/${P}-conf.d wpa_supplicant +} |