summaryrefslogtreecommitdiffhomepage
path: root/contrib/package/iwinfo/Makefile
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-09-27 13:12:46 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-09-27 13:12:46 +0000
commit653c9e782f54f3ab980b678227d0429259ce038b (patch)
treefecabca7b888702640f75abf539b4e2b9d04a707 /contrib/package/iwinfo/Makefile
parent01e8069ee0e6eaa02391d8ac6cafe338191b5d00 (diff)
[contrib] introduce libiwinfo, splitted apart from LuCI for general usage
- added NL80211 interface for b43 / ath5k / ath9k - introduces txpower() and encryption() methods - introduces iwinfo cli frontend for data access - supports scanning in AP mode (experimental) and through wpa_supplicant
Diffstat (limited to 'contrib/package/iwinfo/Makefile')
-rw-r--r--contrib/package/iwinfo/Makefile55
1 files changed, 55 insertions, 0 deletions
diff --git a/contrib/package/iwinfo/Makefile b/contrib/package/iwinfo/Makefile
new file mode 100644
index 0000000000..d46e868d10
--- /dev/null
+++ b/contrib/package/iwinfo/Makefile
@@ -0,0 +1,55 @@
+#
+# Copyright (C) 2010 Jo-Philipp Wich <xm@subsignal.org>
+#
+# This is free software, licensed under the GPL 2 license.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=libiwinfo
+PKG_RELEASE:=1
+
+PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
+
+include $(INCLUDE_DIR)/package.mk
+
+
+define Package/libiwinfo
+ SECTION:=luci
+ CATEGORY:=LuCI
+ SUBMENU:=Libraries
+ TITLE:=Generalized Wireless Information Library (iwinfo)
+ DEPENDS:=+libnl-tiny +liblua +lua
+endef
+
+define Package/libiwinfo/description
+ Wireless information library with consistent interface for proprietary Broadcom,
+ madwifi, nl80211 and wext driver interfaces.
+endef
+
+define Build/Prepare
+ mkdir -p $(PKG_BUILD_DIR)
+ $(CP) ./src/* $(PKG_BUILD_DIR)/
+endef
+
+define Build/Configure
+endef
+
+TARGET_CFLAGS += \
+ -I$(STAGING_DIR)/usr/include \
+ -I$(STAGING_DIR)/usr/include/libnl-tiny
+
+MAKE_FLAGS += \
+ FPIC="$(FPIC)" \
+ CFLAGS="$(TARGET_CFLAGS)" \
+ LDFLAGS="$(TARGET_LDFLAGS)"
+
+define Package/libiwinfo/install
+ $(INSTALL_DIR) $(1)/usr/bin
+ $(INSTALL_BIN) $(PKG_BUILD_DIR)/iwinfo.lua $(INSTALL_DIR) $(1)/usr/bin/iwinfo
+ $(INSTALL_DIR) $(1)/usr/lib/lua
+ $(INSTALL_BIN) $(PKG_BUILD_DIR)/iwinfo.so $(1)/usr/lib/lua/iwinfo.so
+endef
+
+$(eval $(call BuildPackage,libiwinfo))
+