2 # Copyright (C) 2008 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
:=9e7b99da67c47d81121368c6d580d069
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 Build
/Configure
45 cp .
/files
/config.
$(ARCH
) $(PKG_BUILD_DIR
)/.config
49 rm -rf
$(PKG_INSTALL_DIR
)
50 mkdir
-p
$(PKG_INSTALL_DIR
)
51 CFLAGS
="$(TARGET_CFLAGS)" \
52 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
55 CPPFLAGS
="$(TARGET_CPPFLAGS)" \
56 LDFLAGS
="$(TARGET_LDFLAGS)" \
58 $(STRIP
) $(PKG_BUILD_DIR
)/wpa_supplicant
59 $(STRIP
) $(PKG_BUILD_DIR
)/wpa_cli
63 define Package
/wpa-supplicant
/install
64 $(INSTALL_DIR
) $(1)/usr
/sbin
65 $(CP
) $(PKG_BUILD_DIR
)/wpa_
{supplicant
,passphrase
} $(1)/usr
/sbin
/
68 define Package
/wpa-cli
/install
69 $(INSTALL_DIR
) $(1)/usr
/sbin
70 $(CP
) $(PKG_BUILD_DIR
)/wpa_cli
$(1)/usr
/sbin
/
73 $(eval
$(call BuildPackage
,wpa-supplicant
))
74 $(eval
$(call BuildPackage
,wpa-cli
))