3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=3d775a19f8071d6f8a363ef0dad58655
10 PKG_SOURCE_URL
:=http
://hostap.epitest.fi
/releases
/
11 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
14 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
15 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
17 include $(TOPDIR
)/package
/rules.mk
19 $(eval
$(call PKG_template
,HOSTAPD
,hostapd
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
21 $(PKG_BUILD_DIR
)/.configured
:
22 cp .
/files
/config
$(PKG_BUILD_DIR
)/.config
25 $(PKG_BUILD_DIR
)/.built
:
26 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
27 $(TARGET_CONFIGURE_OPTS
) \
28 OPTFLAGS
="$(TARGET_CFLAGS)" \
29 CPPFLAGS
="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/usr/include/madwifi" \
30 LDFLAGS
="-L$(STAGING_DIR)/lib -L$(STAGING_DIR)/usr/lib" \
35 install -m0755
-d
$(IDIR_HOSTAPD
)/etc
36 install -m0600
$(PKG_BUILD_DIR
)/madwifi.conf
$(IDIR_HOSTAPD
)/etc
/hostapd.conf
37 install -m0755
-d
$(IDIR_HOSTAPD
)/usr
/sbin
38 install -m0755
$(PKG_BUILD_DIR
)/hostapd
$(IDIR_HOSTAPD
)/usr
/sbin
/
39 install -m0755
$(PKG_BUILD_DIR
)/hostapd_cli
$(IDIR_HOSTAPD
)/usr
/sbin
/
40 $(RSTRIP
) $(IDIR_HOSTAPD
)
41 $(IPKG_BUILD
) $(IDIR_HOSTAPD
) $(PACKAGE_DIR
)
44 make
-C
$(PKG_BUILD_DIR
) clean
45 rm $(PKG_BUILD_DIR
)/.built