source "package/vsftpd/Config.in"
source "package/wireless-tools/Config.in"
source "package/wol/Config.in"
+source "package/wpa_supplicant/Config.in"
source "package/wput/Config.in"
source "package/xinetd/Config.in"
package-$(BR2_PACKAGE_VSFTPD) += vsftpd
package-$(BR2_PACKAGE_WIRELESS_TOOLS) += wireless-tools
package-$(BR2_PACKAGE_WOL) += wol
+package-$(BR2_PACKAGE_WPA_SUPPLICANT) += wpa_supplicant
package-$(BR2_PACKAGE_WPUT) += wput
package-$(BR2_PACKAGE_XINETD) += xinetd
package-$(BR2_PACKAGE_ZLIB) += zlib
sipsak-compile: openssl-compile
tcpdump-compile: libpcap-compile
tinc-compile: zlib-compile openssl-compile lzo-compile
+wpa_supplicant-compile: openssl-compile
asterisk-compile: openssl-compile
ifneq ($(BR2_PACKAGE_ASTERISK_SPEEX),)
--- /dev/null
+config BR2_PACKAGE_WPA_SUPPLICANT
+ tristate "wpa_supplicant - WPA Supplicant with support for WPA and WPA2"
+ default m if CONFIG_DEVEL
+ select BR2_PACKAGE_LIBOPENSSL
+ help
+
+ WPA Supplicant with support for WPA and WPA2 (IEEE 802.11i / RSN).
+ Supplicant is the IEEE 802.1X/WPA component that is used in the client
+ stations. It implements key negotiation with a WPA Authenticator and it
+ controls the roaming and IEEE 802.11 authentication/association.
+
+ http://hostap.epitest.fi/wpa_supplicant/
+
+ Depends: openssl
+
--- /dev/null
+# $Id$
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=wpa_supplicant
+PKG_VERSION:=0.3.8
+PKG_RELEASE:=1
+PKG_MD5SUM:=
+
+PKG_SOURCE_URL:=http://hostap.epitest.fi/releases/
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_CAT:=zcat
+
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
+
+include $(TOPDIR)/package/rules.mk
+
+$(eval $(call PKG_template,WPA_SUPPLICANT,wpa-supplicant,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
+
+$(PKG_BUILD_DIR)/.configured:
+ cp -fp ./files/config $(PKG_BUILD_DIR)/.config
+ touch $@
+
+$(PKG_BUILD_DIR)/.built:
+ $(MAKE) -C $(PKG_BUILD_DIR) \
+ $(TARGET_CONFIGURE_OPTS) \
+ CPPFLAGS="-I$(TOPDIR)/package/openwrt/include -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
+ LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
+ OPT_FLAGS="$(TARGET_CFLAGS)" \
+ KERNEL=$(LINUX_DIR) \
+ all
+ touch $@
+
+$(IPKG_WPA_SUPPLICANT):
+ install -m0755 -d $(IDIR_WPA_SUPPLICANT)/usr/sbin
+ install -m0755 $(PKG_BUILD_DIR)/wpa_cli $(IDIR_WPA_SUPPLICANT)/usr/sbin/
+ install -m0755 $(PKG_BUILD_DIR)/wpa_passphrase $(IDIR_WPA_SUPPLICANT)/usr/sbin/
+ install -m0755 $(PKG_BUILD_DIR)/wpa_supplicant $(IDIR_WPA_SUPPLICANT)/usr/sbin/
+ $(RSTRIP) $(IDIR_WPA_SUPPLICANT)
+ $(IPKG_BUILD) $(IDIR_WPA_SUPPLICANT) $(PACKAGE_DIR)
--- /dev/null
+# rather important
+CONFIG_DRIVER_BROADCOM=y
+CONFIG_IEEE8021X_EAPOL=y
+CONFIG_CTRL_IFACE=y
+
+# default
+CONFIG_EAP_PSK=y
+CONFIG_EAP_MD5=y
+
+# optional
+CONFIG_MSCHAPV2=y
+CONFIG_EAP_TLS=y
+CONFIG_EAP_PEAP=y
+CONFIG_EAP_TTLS=y
--- /dev/null
+Package: wpa-supplicant
+Priority: optional
+Section: net
+Maintainer: Nico <nthill@free.fr>
+Source: http://openwrt.org/cgi-bin/viewcvs.cgi/openwrt/package/wpa_supplicant
+Description: WPA Supplicant with support for WPA and WPA2
--- /dev/null
+--- wpa_supplicant-0.3.8/Makefile.orig 2005-05-22 12:37:28.000000000 +0200
++++ wpa_supplicant-0.3.8/Makefile 2005-05-22 12:40:04.000000000 +0200
+@@ -304,7 +304,7 @@
+ OBJS += wpa_supplicant.o wpa.o l2_packet.o drivers.o
+
+ wpa_supplicant: .config $(OBJS)
+- $(CC) -o wpa_supplicant $(OBJS) $(LIBS)
++ $(CC) $(LDFLAGS) -o wpa_supplicant $(OBJS) $(LIBS)
+
+ eapol_test: .config $(OBJS_t)
+ $(CC) -o eapol_test $(OBJS_t) $(LIBS)
+@@ -313,10 +313,10 @@
+ $(CC) -o preauth_test $(OBJS_t2) $(LIBS)
+
+ wpa_passphrase: $(OBJS_p)
+- $(CC) -o wpa_passphrase $(OBJS_p) $(LIBS_p)
++ $(CC) $(LDFLAGS) -o wpa_passphrase $(OBJS_p) $(LIBS_p)
+
+ wpa_cli: $(OBJS_c)
+- $(CC) -o wpa_cli $(OBJS_c) $(LIBS_c)
++ $(CC) $(LDFLAGS) -o wpa_cli $(OBJS_c) $(LIBS_c)
+
+ win_if_list: win_if_list.c
+ $(CC) -o $@ win_if_list.c $(CFLAGS) $(LIBS_w)
--- /dev/null
+--- wpa_supplicant-0.3.8/Makefile.orig 2005-02-14 02:55:47.000000000 +0100
++++ wpa_supplicant-0.3.8/Makefile 2005-05-21 21:06:03.000000000 +0200
+@@ -3,7 +3,8 @@
+ endif
+
+ ifndef CFLAGS
+-CFLAGS = -MMD -O2 -Wall -g
++OPT_FLAGS = -O2 -g
++CFLAGS = -MMD $(OPT_FLAGS) -Wall
+ endif
+
+ # Include directories for CVS version