summaryrefslogtreecommitdiff
path: root/package/wpa_supplicant
diff options
context:
space:
mode:
Diffstat (limited to 'package/wpa_supplicant')
-rw-r--r--package/wpa_supplicant/Config.in30
-rw-r--r--package/wpa_supplicant/Makefile35
-rw-r--r--package/wpa_supplicant/files/config16
-rw-r--r--package/wpa_supplicant/ipkg/wpa-supplicant.control5
-rw-r--r--package/wpa_supplicant/patches/patch-Makefile13
5 files changed, 99 insertions, 0 deletions
diff --git a/package/wpa_supplicant/Config.in b/package/wpa_supplicant/Config.in
new file mode 100644
index 000000000..325b71bf1
--- /dev/null
+++ b/package/wpa_supplicant/Config.in
@@ -0,0 +1,30 @@
+config ADK_PACKAGE_WPA_SUPPLICANT
+ prompt "wpa_supplicant.................... WPA Supplicant with support for WPA and WPA2"
+ tristate
+ default n
+ select ADK_KPACKAGE_KMOD_CRYPTO_AES
+ 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/
+
+choice
+prompt "SSL/TLS Configuration"
+depends on ADK_PACKAGE_WPA_SUPPLICANT
+default ADK_COMPILE_WPA_SUPPLICANT_WITH_OPENSSL
+
+config ADK_COMPILE_WPA_SUPPLICANT_WITH_OPENSSL
+ bool "enable openssl encryption support"
+ depends ADK_PACKAGE_WPA_SUPPLICANT
+ select ADK_PACKAGE_LIBOPENSSL
+ help
+
+config ADK_COMPILE_WPA_SUPPLICANT_WITH_INCLUDED
+ bool "enable included encryption support"
+ depends ADK_PACKAGE_WPA_SUPPLICANT
+ help
+
+endchoice
diff --git a/package/wpa_supplicant/Makefile b/package/wpa_supplicant/Makefile
new file mode 100644
index 000000000..9d12820b7
--- /dev/null
+++ b/package/wpa_supplicant/Makefile
@@ -0,0 +1,35 @@
+# $Id$
+#-
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include ${TOPDIR}/rules.mk
+
+PKG_NAME:= wpa_supplicant
+PKG_VERSION:= 0.6.9
+PKG_RELEASE:= 1
+PKG_MD5SUM:= 0efb8fcedf0a8acf6f423dfdb0658fdd
+MASTER_SITES:= http://hostap.epitest.fi/releases/
+
+WRKSRC= ${WRKDIST}/${PKG_NAME}
+
+include ${TOPDIR}/mk/package.mk
+
+$(eval $(call PKG_template,WPA_SUPPLICANT,wpa-supplicant,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
+
+BUILD_STYLE:= auto
+MAKE_FLAGS+= CPPFLAGS='${TCPPFLAGS}' \
+ LDFLAGS='${TLDFLAGS}' \
+ OPT_FLAGS='${TCFLAGS}' \
+ KERNEL=${LINUX_DIR}
+
+do-configure:
+ ${CP} files/config ${WRKBUILD}/.config
+
+do-install:
+ ${INSTALL_DIR} ${IDIR_WPA_SUPPLICANT}/usr/sbin
+ ${INSTALL_BIN} ${WRKBUILD}/wpa_cli ${IDIR_WPA_SUPPLICANT}/usr/sbin/
+ ${INSTALL_BIN} ${WRKBUILD}/wpa_passphrase ${IDIR_WPA_SUPPLICANT}/usr/sbin/
+ ${INSTALL_BIN} ${WRKBUILD}/wpa_supplicant ${IDIR_WPA_SUPPLICANT}/usr/sbin/
+
+include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/wpa_supplicant/files/config b/package/wpa_supplicant/files/config
new file mode 100644
index 000000000..b800b2fc5
--- /dev/null
+++ b/package/wpa_supplicant/files/config
@@ -0,0 +1,16 @@
+# rather important
+#CONFIG_DRIVER_MADWIFI=y
+CONFIG_DRIVER_WEXT=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
+
diff --git a/package/wpa_supplicant/ipkg/wpa-supplicant.control b/package/wpa_supplicant/ipkg/wpa-supplicant.control
new file mode 100644
index 000000000..ea4f7f8ed
--- /dev/null
+++ b/package/wpa_supplicant/ipkg/wpa-supplicant.control
@@ -0,0 +1,5 @@
+Package: wpa-supplicant
+Priority: optional
+Section: net
+Description: WPA Supplicant with support for WPA and WPA2
+Depends: libopenssl
diff --git a/package/wpa_supplicant/patches/patch-Makefile b/package/wpa_supplicant/patches/patch-Makefile
new file mode 100644
index 000000000..6b33a653d
--- /dev/null
+++ b/package/wpa_supplicant/patches/patch-Makefile
@@ -0,0 +1,13 @@
+$Id$
+--- wpa_supplicant-0.5.8.orig/Makefile Tue May 29 02:08:25 2007
++++ wpa_supplicant-0.5.8/Makefile Sun Oct 21 20:55:37 2007
+@@ -3,7 +3,8 @@ CC=gcc
+ endif
+
+ ifndef CFLAGS
+-CFLAGS = -MMD -O2 -Wall -g
++OPT_FLAGS = -O2 -g
++CFLAGS = -MMD $(OPT_FLAGS) -Wall
+ endif
+
+ # Include directories for CVS version