summaryrefslogtreecommitdiffhomepage
path: root/contrib/package/iwinfo/Makefile
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-12-03 00:22:25 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-12-03 00:22:25 +0000
commit486770051bda52c6c763f82a68fa0ccfdbd1d908 (patch)
tree1121b1427b1a3764fbb01b2ea0bbcab956526ec8 /contrib/package/iwinfo/Makefile
parentc3c574d8c9b1fa0e09d5277c2028215b82806a30 (diff)
libiwinfo: reimplement iwinfo.lua in C and package it as "iwinfo"
Diffstat (limited to 'contrib/package/iwinfo/Makefile')
-rw-r--r--contrib/package/iwinfo/Makefile24
1 files changed, 21 insertions, 3 deletions
diff --git a/contrib/package/iwinfo/Makefile b/contrib/package/iwinfo/Makefile
index a8990294da..a89bd1447e 100644
--- a/contrib/package/iwinfo/Makefile
+++ b/contrib/package/iwinfo/Makefile
@@ -7,7 +7,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=libiwinfo
-PKG_RELEASE:=17
+PKG_RELEASE:=18
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
@@ -26,6 +26,7 @@ define Package/libiwinfo/description
madwifi, nl80211 and wext driver interfaces.
endef
+
define Package/libiwinfo-lua
SUBMENU:=Lua
SECTION:=lang
@@ -39,6 +40,19 @@ define Package/libiwinfo-lua/description
backends.
endef
+
+define Package/iwinfo
+ SECTION:=utils
+ CATEGORY:=Utilities
+ TITLE:=Generalized Wireless Information utility
+ DEPENDS:=+libiwinfo
+endef
+
+define Package/iwinfo/description
+ Command line frontend for the wireless information library.
+endef
+
+
define Build/Prepare
mkdir -p $(PKG_BUILD_DIR)
$(CP) ./src/* $(PKG_BUILD_DIR)/
@@ -81,11 +95,15 @@ define Package/libiwinfo/install
endef
define Package/libiwinfo-lua/install
- $(INSTALL_DIR) $(1)/usr/bin
- $(INSTALL_BIN) $(PKG_BUILD_DIR)/iwinfo.lua $(1)/usr/bin/iwinfo
$(INSTALL_DIR) $(1)/usr/lib/lua
$(INSTALL_BIN) $(PKG_BUILD_DIR)/iwinfo.so $(1)/usr/lib/lua/iwinfo.so
endef
+define Package/iwinfo/install
+ $(INSTALL_DIR) $(1)/usr/bin
+ $(INSTALL_BIN) $(PKG_BUILD_DIR)/iwinfo $(1)/usr/bin/iwinfo
+endef
+
$(eval $(call BuildPackage,libiwinfo))
$(eval $(call BuildPackage,libiwinfo-lua))
+$(eval $(call BuildPackage,iwinfo))