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
20 include $(INCLUDE_DIR
)/package.mk
22 define Package
/wpa-supplicant
27 DESCRIPTION
:=WPA Supplicant
28 URL
:=http
://hostap.epitest.fi
/wpa_supplicant
/
32 define Package
/wpa-cli
35 DEPENDS
:=wpa-supplicant
36 TITLE
:=WPA Supplicant command line interface
41 define Build
/Configure
42 cp .
/files
/config.
$(ARCH
) $(PKG_BUILD_DIR
)/.config
46 rm -rf
$(PKG_INSTALL_DIR
)
47 mkdir
-p
$(PKG_INSTALL_DIR
)
48 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
51 CPPFLAGS
="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
52 LDFLAGS
=" -L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
54 $(STRIP
) $(PKG_BUILD_DIR
)/wpa_supplicant
55 $(STRIP
) $(PKG_BUILD_DIR
)/wpa_cli
59 define Package
/wpa-supplicant
/install
60 $(INSTALL_DIR
) $(1)/usr
/sbin
61 $(CP
) $(PKG_BUILD_DIR
)/wpa_supplicant
$(1)/usr
/sbin
/
64 define Package
/wpa-cli
/install
65 $(INSTALL_DIR
) $(1)/usr
/sbin
66 $(CP
) $(PKG_BUILD_DIR
)/wpa_cli
$(1)/usr
/sbin
/
69 $(eval
$(call BuildPackage
,wpa-supplicant
))
70 $(eval
$(call BuildPackage
,wpa-cli
))