add $(STAGING_DIR) as argument to the InstallDev template and update packages accordi...
[openwrt.git] / package / wpa_supplicant / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=wpa_supplicant
12 PKG_VERSION:=0.5.7
13 PKG_RELEASE:=1
14 PKG_MD5SUM:=bd2436392ad3c6d2513da701a12f2d27
15
16 PKG_SOURCE_URL:=http://hostap.epitest.fi/releases
17 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/wpa-supplicant
22 SECTION:=net
23 CATEGORY:=Network
24 DEPENDS:=+libopenssl
25 TITLE:=WPA Supplicant
26 DESCRIPTION:=WPA Supplicant
27 URL:=http://hostap.epitest.fi/wpa_supplicant/
28 endef
29
30 define Package/wpa-cli
31 SECTION:=net
32 CATEGORY:=Network
33 DEPENDS:=wpa-supplicant
34 TITLE:=WPA Supplicant command line interface
35 DESCRIPTION:=
36 endef
37
38 define Package/wpa-passphrase
39 SECTION:=net
40 CATEGORY:=Network
41 DEPENDS:=wpa-supplicant
42 TITLE:=Set WPA passphrase for a SSID
43 DESCRIPTION:=
44 endef
45
46 define Build/Configure
47 cp ./files/config.$(ARCH) $(PKG_BUILD_DIR)/.config
48 endef
49
50 define Build/Compile
51 rm -rf $(PKG_INSTALL_DIR)
52 mkdir -p $(PKG_INSTALL_DIR)
53 $(MAKE) -C $(PKG_BUILD_DIR) \
54 CC="$(TARGET_CC)" \
55 KERNEL=$(LINUX_DIR) \
56 CPPFLAGS="$(TARGET_CPPFLAGS)" \
57 LDFLAGS="$(TARGET_LDFLAGS)" \
58 all
59 $(STRIP) $(PKG_BUILD_DIR)/wpa_supplicant
60 $(STRIP) $(PKG_BUILD_DIR)/wpa_cli
61
62 endef
63
64 define Package/wpa-supplicant/install
65 $(INSTALL_DIR) $(1)/usr/sbin
66 $(CP) $(PKG_BUILD_DIR)/wpa_supplicant $(1)/usr/sbin/
67 endef
68
69 define Package/wpa-cli/install
70 $(INSTALL_DIR) $(1)/usr/sbin
71 $(CP) $(PKG_BUILD_DIR)/wpa_cli $(1)/usr/sbin/
72 endef
73
74 define Package/wpa-passphrase/install
75 $(INSTALL_DIR) $(1)/usr/sbin
76 $(INSTALL_BIN) $(PKG_BUILD_DIR)/wpa_passphrase $(1)/usr/sbin/
77 endef
78
79 $(eval $(call BuildPackage,wpa-supplicant))
80 $(eval $(call BuildPackage,wpa-cli))
81 $(eval $(call BuildPackage,wpa-passphrase))
This page took 0.048499 seconds and 5 git commands to generate.