2 # Copyright (C) 2006-2009 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
13 PKG_REV:=4ef2a352b29c26ce76d8b3d7c6897d301362a101
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=git://github.com/rriggio/click.git
17 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
18 PKG_SOURCE_VERSION:=$(PKG_REV)
21 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
23 PKG_BUILD_DEPENDS:=wing/host
25 include $(INCLUDE_DIR)/package.mk
26 include $(INCLUDE_DIR)/host-build.mk
29 TITLE:=Wireless mesh networking toolkit
32 MAINTAINER:=Roberto Riggio <roberto.riggio@create-net.org>
33 DEPENDS:=+kmod-tun +libpcap +libstdcpp
34 URL:=http://www.wing-project.org/
37 define Package/wing/Description
38 Wing is a wireless mesh routing software. The routing protocol
39 is derived from Roofnet. It supports multiple radio interfaces
40 and link quality routing using the ETX, ETT, or WCETT metric.
51 --disable-linuxmodule \
52 --disable-dynamic-linking \
54 HOST_CONFIGURE_ARGS += \
59 --disable-linuxmodule \
62 $(call Host/Install/Default, tools elementmap.xml install)
66 (cd $(PKG_BUILD_DIR)/userlevel; \
67 $(STAGING_DIR_HOST)/bin/click-mkmindriver -p $(PKG_NAME) -C $(STAGING_DIR_HOST) \
68 -f $(PKG_BUILD_DIR)/conf/wing/sample.click \
69 -A --all -E Discard -E Print -E PrintWifi -E Null \
70 -E InfiniteSource -E RatedSource -E EtherEncap -E UDPIPEncap \
71 -E WINGETTMetric -E WINGETXMetric -E WINGHopCountMetric \
72 -E ProbeTXRate -E MadwifiRate -E AutoRateFallback -E Minstrel \
73 -E FairBuffer -E DeAggregator -E DWRRSched -E WFQSched -E WRRSched; \
75 $(call Build/Install/Default, MINDRIVER=$(PKG_NAME) install)
78 define Package/wing/install
79 $(INSTALL_DIR) $(1)/usr/bin
80 $(INSTALL_DIR) $(1)/etc/wing
81 $(INSTALL_DIR) $(1)/usr/share/click
83 $(CP) $(PKG_BUILD_DIR)/conf/wing/click_config $(1)/usr/bin/
84 $(CP) $(PKG_BUILD_DIR)/conf/wing/write_handler $(1)/usr/bin/
85 $(CP) $(PKG_BUILD_DIR)/conf/wing/read_handler $(1)/usr/bin/
86 $(CP) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME)click $(1)/usr/bin/click
87 $(CP) $(PKG_INSTALL_DIR)/usr/bin/click-align $(1)/usr/bin/click-align
88 $(CP) $(PKG_BUILD_DIR)/conf/wing/*click $(1)/etc/wing/
89 $(CP) $(PKG_INSTALL_DIR)/usr/share/click/elementmap.xml $(1)/usr/share/click/elementmap.xml
92 $(eval $(call HostBuild))
93 $(eval $(call BuildPackage,wing))