aboutsummaryrefslogtreecommitdiffstats
path: root/package/hostap-utils
diff options
context:
space:
mode:
authorNicolas Thill <nico@openwrt.org>2005-11-13 17:59:26 +0000
committerNicolas Thill <nico@openwrt.org>2005-11-13 17:59:26 +0000
commitc189939b0c44f41571e935ca126c6b353104db0c (patch)
tree16a4d15c5512d251de57ba67cd4ad25972d68b5a /package/hostap-utils
parentcca7ee1254b646679bb862337b4781348fe9b53d (diff)
downloadupstream-c189939b0c44f41571e935ca126c6b353104db0c.tar.gz
upstream-c189939b0c44f41571e935ca126c6b353104db0c.tar.bz2
upstream-c189939b0c44f41571e935ca126c6b353104db0c.zip
add hostap-utils package (closes: #50)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@2473 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/hostap-utils')
-rw-r--r--package/hostap-utils/Config.in9
-rw-r--r--package/hostap-utils/Makefile45
-rw-r--r--package/hostap-utils/ipkg/hostap-utils.control5
3 files changed, 59 insertions, 0 deletions
diff --git a/package/hostap-utils/Config.in b/package/hostap-utils/Config.in
new file mode 100644
index 0000000000..71a9f22355
--- /dev/null
+++ b/package/hostap-utils/Config.in
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_HOSTAP_UTILS
+ prompt "hostap-utils...................... Host AP driver utility programs"
+ tristate
+ default m if CONFIG_DEVEL
+ help
+ Host AP driver utility programs
+
+ http://hostap.epitest.fi/
+
diff --git a/package/hostap-utils/Makefile b/package/hostap-utils/Makefile
new file mode 100644
index 0000000000..37be5d1fd1
--- /dev/null
+++ b/package/hostap-utils/Makefile
@@ -0,0 +1,45 @@
+# $Id$
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=hostap-utils
+PKG_VERSION:=0.4.0
+PKG_RELEASE:=1
+PKG_MD5SUM:=c6775ca98721affeb336392def22289e
+
+PKG_SOURCE_URL:=http://hostap.epitest.fi/releases/
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_CAT:=zcat
+
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
+PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
+
+include $(TOPDIR)/package/rules.mk
+
+$(eval $(call PKG_template,HOSTAP_UTILS,hostap-utils,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
+
+$(PKG_BUILD_DIR)/.configured:
+ touch $@
+
+$(PKG_BUILD_DIR)/.built:
+ $(MAKE) -C $(PKG_BUILD_DIR) \
+ $(TARGET_CONFIGURE_OPTS) \
+ CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include -Wall" \
+ all
+ touch $@
+
+$(IPKG_HOSTAP_UTILS):
+ install -m0755 -d $(IDIR_HOSTAP_UTILS)/usr/sbin
+ install -m0755 $(PKG_BUILD_DIR)/hostap_crypt_conf $(IDIR_HOSTAP_UTILS)/usr/sbin/
+ install -m0755 $(PKG_BUILD_DIR)/hostap_diag $(IDIR_HOSTAP_UTILS)/usr/sbin/
+ install -m0755 $(PKG_BUILD_DIR)/hostap_io_debug $(IDIR_HOSTAP_UTILS)/usr/sbin/
+ install -m0755 $(PKG_BUILD_DIR)/hostap_rid $(IDIR_HOSTAP_UTILS)/usr/sbin/
+ install -m0755 $(PKG_BUILD_DIR)/prism2_srec $(IDIR_HOSTAP_UTILS)/usr/sbin/
+ install -m0755 $(PKG_BUILD_DIR)/split_combined_hex $(IDIR_HOSTAP_UTILS)/usr/sbin/
+ $(RSTRIP) $(IDIR_HOSTAP_UTILS)
+ $(IPKG_BUILD) $(IDIR_HOSTAP_UTILS) $(PACKAGE_DIR)
+
+mostlyclean:
+ -$(MAKE) -C $(PKG_BUILD_DIR) clean
+ rm -f $(PKG_BUILD_DIR)/.built
+
diff --git a/package/hostap-utils/ipkg/hostap-utils.control b/package/hostap-utils/ipkg/hostap-utils.control
new file mode 100644
index 0000000000..c7e1270cb3
--- /dev/null
+++ b/package/hostap-utils/ipkg/hostap-utils.control
@@ -0,0 +1,5 @@
+Package: hostap-utils
+Priority: optional
+Section: net
+Depends:
+Description: Host AP driver utility programs