b794ad0d1efd7a17e9cdf671cdfc70b1dcfb4a13
[openwrt/staging/dedeckeh.git] / openwrt / package / hostap-utils / Makefile
1 # Copyright (C) 2006 OpenWrt.org
2 #
3 # This is free software, licensed under the GNU General Public License v2.
4 # See /LICENSE for more information.
5 #
6 # $Id$
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=hostap-utils
11 PKG_VERSION:=0.4.7
12 PKG_RELEASE:=1
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://hostap.epitest.fi/releases/
17 PKG_MD5SUM:=afe041581b8f01666e353bec20917c85
18 PKG_CAT:=zcat
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/hostap-utils
23 SECTION:=utils
24 CATEGORY:=Kernel drivers
25 DEPENDS:=kmod-hostap
26 TITLE:=Host AP driver utility programs
27 URL:=http://hostap.epitest.fi/
28 endef
29
30 define Build/Compile
31 $(MAKE) -C $(PKG_BUILD_DIR) \
32 $(TARGET_CONFIGURE_OPTS) \
33 CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include -Wall" \
34 all
35 endef
36
37 define Package/hostap-utils/install
38 install -m0755 -d $(1)/usr/sbin
39 install -m0755 $(PKG_BUILD_DIR)/hostap_crypt_conf $(1)/usr/sbin/
40 install -m0755 $(PKG_BUILD_DIR)/hostap_diag $(1)/usr/sbin/
41 install -m0755 $(PKG_BUILD_DIR)/hostap_io_debug $(1)/usr/sbin/
42 install -m0755 $(PKG_BUILD_DIR)/hostap_rid $(1)/usr/sbin/
43 install -m0755 $(PKG_BUILD_DIR)/prism2_srec $(1)/usr/sbin/
44 install -m0755 $(PKG_BUILD_DIR)/split_combined_hex $(1)/usr/sbin/
45 endef
46
47 $(eval $(call BuildPackage,hostap-utils))