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 DESCRIPTION
:=WPA Supplicant
27 URL
:=http
://hostap.epitest.fi
/wpa_supplicant
/
30 define Package
/wpa-cli
33 DEPENDS
:=wpa-supplicant
34 TITLE
:=WPA Supplicant command line interface
38 define Package
/wpa-passphrase
41 DEPENDS
:=wpa-supplicant
42 TITLE
:=Set WPA passphrase for a SSID
46 define Build
/Configure
47 cp .
/files
/config.
$(ARCH
) $(PKG_BUILD_DIR
)/.config
51 rm -rf
$(PKG_INSTALL_DIR
)
52 mkdir
-p
$(PKG_INSTALL_DIR
)
53 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
56 CPPFLAGS
="$(TARGET_CPPFLAGS)" \
57 LDFLAGS
="$(TARGET_LDFLAGS)" \
59 $(STRIP
) $(PKG_BUILD_DIR
)/wpa_supplicant
60 $(STRIP
) $(PKG_BUILD_DIR
)/wpa_cli
64 define Package
/wpa-supplicant
/install
65 $(INSTALL_DIR
) $(1)/usr
/sbin
66 $(CP
) $(PKG_BUILD_DIR
)/wpa_supplicant
$(1)/usr
/sbin
/
69 define Package
/wpa-cli
/install
70 $(INSTALL_DIR
) $(1)/usr
/sbin
71 $(CP
) $(PKG_BUILD_DIR
)/wpa_cli
$(1)/usr
/sbin
/
74 define Package
/wpa-passphrase
/install
75 $(INSTALL_DIR
) $(1)/usr
/sbin
76 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/wpa_passphrase
$(1)/usr
/sbin
/
79 $(eval
$(call BuildPackage
,wpa-supplicant
))
80 $(eval
$(call BuildPackage
,wpa-cli
))
81 $(eval
$(call BuildPackage
,wpa-passphrase
))