2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
11 PKG_NAME
:=wpa_supplicant
14 PKG_MD5SUM
:=bd2436392ad3c6d2513da701a12f2d27
16 PKG_SOURCE_URL
:=http
://hostap.epitest.fi
/releases
17 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
19 include $(INCLUDE_DIR
)/package.mk
21 define Package
/wpa-supplicant
26 URL
:=http
://hostap.epitest.fi
/wpa_supplicant
/
29 define Package
/wpa-supplicant
/Description
33 define Package
/wpa-cli
36 DEPENDS
:=wpa-supplicant
37 TITLE
:=WPA Supplicant command line interface
40 define Package
/wpa-cli
/Description
44 define Package
/wpa-passphrase
47 DEPENDS
:=wpa-supplicant
48 TITLE
:=Set WPA passphrase for a SSID
51 define Package
/wpa-passphrase
/Description
55 define Build
/Configure
56 cp .
/files
/config.
$(ARCH
) $(PKG_BUILD_DIR
)/.config
60 rm -rf
$(PKG_INSTALL_DIR
)
61 mkdir
-p
$(PKG_INSTALL_DIR
)
62 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
65 CPPFLAGS
="$(TARGET_CPPFLAGS)" \
66 LDFLAGS
="$(TARGET_LDFLAGS)" \
68 $(STRIP
) $(PKG_BUILD_DIR
)/wpa_supplicant
69 $(STRIP
) $(PKG_BUILD_DIR
)/wpa_cli
73 define Package
/wpa-supplicant
/install
74 $(INSTALL_DIR
) $(1)/usr
/sbin
75 $(CP
) $(PKG_BUILD_DIR
)/wpa_supplicant
$(1)/usr
/sbin
/
78 define Package
/wpa-cli
/install
79 $(INSTALL_DIR
) $(1)/usr
/sbin
80 $(CP
) $(PKG_BUILD_DIR
)/wpa_cli
$(1)/usr
/sbin
/
83 define Package
/wpa-passphrase
/install
84 $(INSTALL_DIR
) $(1)/usr
/sbin
85 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/wpa_passphrase
$(1)/usr
/sbin
/
88 $(eval
$(call BuildPackage
,wpa-supplicant
))
89 $(eval
$(call BuildPackage
,wpa-cli
))
90 $(eval
$(call BuildPackage
,wpa-passphrase
))