summaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authornico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-05-23 06:43:34 +0000
committernico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-05-23 06:43:34 +0000
commitc6caab5e375eea99a87c78859a269cd63e44eed6 (patch)
treef7cbced8dce3664bd18bde43c65897a353b82692 /package
parente01dee7e0f4ef1b006889b9aa7c1974bd935382e (diff)
Add wpa_supplicant package
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@1023 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r--package/Config.in1
-rw-r--r--package/Makefile2
-rw-r--r--package/wpa_supplicant/Config.in15
-rw-r--r--package/wpa_supplicant/Makefile40
-rw-r--r--package/wpa_supplicant/files/config14
-rw-r--r--package/wpa_supplicant/ipkg/wpa-supplicant.control6
-rw-r--r--package/wpa_supplicant/patches/ldflags.patch24
-rw-r--r--package/wpa_supplicant/patches/opt_cflags.patch12
8 files changed, 114 insertions, 0 deletions
diff --git a/package/Config.in b/package/Config.in
index 3c6a2ba49..d83c2d246 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -72,6 +72,7 @@ source "package/ulogd/Config.in"
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"
diff --git a/package/Makefile b/package/Makefile
index c5a3c0709..c2b12f6a8 100644
--- a/package/Makefile
+++ b/package/Makefile
@@ -94,6 +94,7 @@ package-$(BR2_PACKAGE_USBUTILS) += usbutils
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
@@ -133,6 +134,7 @@ siproxd-compile: libosip2-compile
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),)
diff --git a/package/wpa_supplicant/Config.in b/package/wpa_supplicant/Config.in
new file mode 100644
index 000000000..efff5832d
--- /dev/null
+++ b/package/wpa_supplicant/Config.in
@@ -0,0 +1,15 @@
+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
+
diff --git a/package/wpa_supplicant/Makefile b/package/wpa_supplicant/Makefile
new file mode 100644
index 000000000..3536508a7
--- /dev/null
+++ b/package/wpa_supplicant/Makefile
@@ -0,0 +1,40 @@
+# $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)
diff --git a/package/wpa_supplicant/files/config b/package/wpa_supplicant/files/config
new file mode 100644
index 000000000..fe7d269da
--- /dev/null
+++ b/package/wpa_supplicant/files/config
@@ -0,0 +1,14 @@
+# 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
diff --git a/package/wpa_supplicant/ipkg/wpa-supplicant.control b/package/wpa_supplicant/ipkg/wpa-supplicant.control
new file mode 100644
index 000000000..ec78d71b8
--- /dev/null
+++ b/package/wpa_supplicant/ipkg/wpa-supplicant.control
@@ -0,0 +1,6 @@
+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
diff --git a/package/wpa_supplicant/patches/ldflags.patch b/package/wpa_supplicant/patches/ldflags.patch
new file mode 100644
index 000000000..b8b6f6661
--- /dev/null
+++ b/package/wpa_supplicant/patches/ldflags.patch
@@ -0,0 +1,24 @@
+--- 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)
diff --git a/package/wpa_supplicant/patches/opt_cflags.patch b/package/wpa_supplicant/patches/opt_cflags.patch
new file mode 100644
index 000000000..ec38b733e
--- /dev/null
+++ b/package/wpa_supplicant/patches/opt_cflags.patch
@@ -0,0 +1,12 @@
+--- 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