Add wpa_supplicant package
SVN-Revision: 1023
This commit is contained in:
parent
d4c410f595
commit
d9d05baf0b
8 changed files with 114 additions and 0 deletions
|
@ -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"
|
||||
|
||||
|
|
|
@ -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),)
|
||||
|
|
15
openwrt/package/wpa_supplicant/Config.in
Normal file
15
openwrt/package/wpa_supplicant/Config.in
Normal file
|
@ -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
|
||||
|
40
openwrt/package/wpa_supplicant/Makefile
Normal file
40
openwrt/package/wpa_supplicant/Makefile
Normal file
|
@ -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)
|
14
openwrt/package/wpa_supplicant/files/config
Normal file
14
openwrt/package/wpa_supplicant/files/config
Normal file
|
@ -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
|
|
@ -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
|
24
openwrt/package/wpa_supplicant/patches/ldflags.patch
Normal file
24
openwrt/package/wpa_supplicant/patches/ldflags.patch
Normal file
|
@ -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)
|
12
openwrt/package/wpa_supplicant/patches/opt_cflags.patch
Normal file
12
openwrt/package/wpa_supplicant/patches/opt_cflags.patch
Normal file
|
@ -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
|
Loading…
Reference in a new issue