3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=4e3134e8b0d86e831230f8c620fd81bb
11 PKG_SOURCE_URL
:=http
://hostap.epitest.fi
/releases
/
12 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
17 include $(TOPDIR
)/include/package.mk
19 define Package
/hostapd
23 TITLE
:=IEEE
802.1x Authenticator
24 DESCRIPTION
:=IEEE
802.1x
/WPA
/EAP
/RADIUS Authenticator
25 URL
:=http
://hostap.epitest.fi
/
28 define Package
/hostapd
/conffiles
32 define Package
/hostapd-mini
33 $(call Package
/hostapd
)
34 TITLE
:=IEEE
802.1x Authenticator
(WPA-PSK only
)
36 DESCRIPTION
:=IEEE
802.1x
/WPA
/EAP
/RADIUS Authenticator
(WPA-PSK only
)
39 define Package
/hostapd-mini
/conffiles
43 define Package
/hostapd-utils
44 $(call Package
/hostapd
)
45 DEPENDS
:=@PACKAGE_hostapd||PACKAGE_hostapd-mini
46 TITLE
:=IEEE
802.1x Authenticator
(utils
)
47 DESCRIPTION
:=IEEE
802.1x
/WPA
/EAP
/RADIUS Authenticator
(command line utils
)
50 define Build
/ConfigureTarget
51 $(CP
) $(PKG_BUILD_DIR
) $(PKG_BUILD_DIR
)_
$(1)
52 $(CP
) .
/files
/$(1).config
$(PKG_BUILD_DIR
)_
$(1)/.config
55 define Build
/CompileTarget
56 $(MAKE
) -C
$(PKG_BUILD_DIR
)_
$(1) \
57 $(TARGET_CONFIGURE_OPTS
) \
58 OPTFLAGS
="$(TARGET_CFLAGS)" \
59 CPPFLAGS
="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include -I$(STAGING_DIR)/usr/include/madwifi" \
60 LDFLAGS
="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
62 $(CP
) $(PKG_BUILD_DIR
)_
$(1)/hostapd_cli
$(PKG_BUILD_DIR
)/
65 define Package
/InstallTemplate
66 if
[ \
! -f
"$(PKG_BUILD_DIR)_$(2)/hostapd" ]; then \
67 rm -f
$(PKG_BUILD_DIR
)/.built
; \
68 $(MAKE
) $(PKG_BUILD_DIR
)/.built
; \
70 install -m0755
-d
$$(1)/etc
71 install -m0600
$(PKG_BUILD_DIR
)_
$(2)/madwifi.conf
$$(1)/etc
/hostapd.conf
72 install -m0755
-d
$$(1)/usr
/sbin
73 install -m0755
$(PKG_BUILD_DIR
)_
$(2)/hostapd
$$(1)/usr
/sbin
/
76 define Package
/Template
77 ifneq ($(CONFIG_PACKAGE_
$(1)),)
78 define Build
/Configure
/$(2)
79 $(call Build
/ConfigureTarget
,$(2))
81 define Build
/Compile
/$(2)
82 $(call Build
/CompileTarget
,$(2))
86 define Package
/$(1)/install
87 $(call Package
/InstallTemplate
,$(1),$(2))
91 define Build
/Configure
92 $(call Build
/Configure
/default
)
93 $(call Build
/Configure
/mini
)
97 $(call Build
/Compile
/default
)
98 $(call Build
/Compile
/mini
)
102 rm -rf
$(PKG_BUILD_DIR
)_default
103 rm -rf
$(PKG_BUILD_DIR
)_mini
106 define Package
/hostapd-utils
/install
107 install -m0755
-d
$(1)/usr
/sbin
108 install -m0755
$(PKG_BUILD_DIR
)/hostapd_cli
$(1)/usr
/sbin
/
111 $(eval
$(call Package
/Template
,hostapd
,default
))
112 $(eval
$(call Package
/Template
,hostapd-mini
,mini
))
114 $(eval
$(call BuildPackage
,hostapd
))
115 $(eval
$(call BuildPackage
,hostapd-mini
))
116 $(eval
$(call BuildPackage
,hostapd-utils
))