2010-08-13 19:46:41 +00:00
|
|
|
#
|
2012-07-24 21:46:18 +00:00
|
|
|
# Copyright (C) 2006-2012 OpenWrt.org
|
2010-08-13 19:46:41 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=wing
|
2013-01-06 22:35:27 +00:00
|
|
|
PKG_VERSION:=20121218
|
|
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_REV:=a4f901c3442c5bc49d1250007db7f45436069716
|
2010-08-13 19:46:41 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
2011-03-31 02:53:51 +00:00
|
|
|
PKG_SOURCE_URL:=git://github.com/rriggio/click.git
|
2010-08-13 19:46:41 +00:00
|
|
|
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
PKG_SOURCE_VERSION:=$(PKG_REV)
|
|
|
|
PKG_SOURCE_PROTO:=git
|
|
|
|
|
2010-10-25 14:13:19 +00:00
|
|
|
PKG_BUILD_DEPENDS:=wing/host
|
2010-08-13 19:46:41 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2010-10-25 14:13:19 +00:00
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
2010-08-13 19:46:41 +00:00
|
|
|
|
|
|
|
define Package/wing
|
2010-09-01 14:41:49 +00:00
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
2011-12-01 13:45:36 +00:00
|
|
|
SUBMENU:=Routing and Redirection
|
|
|
|
TITLE:=Wireless mesh networking toolkit
|
2010-09-02 04:56:32 +00:00
|
|
|
MAINTAINER:=Roberto Riggio <roberto.riggio@create-net.org>
|
2010-10-25 14:13:19 +00:00
|
|
|
DEPENDS:=+kmod-tun +libpcap +libstdcpp
|
2010-09-01 14:41:49 +00:00
|
|
|
URL:=http://www.wing-project.org/
|
2010-08-13 19:46:41 +00:00
|
|
|
endef
|
|
|
|
|
2011-07-17 14:17:47 +00:00
|
|
|
define Package/wing/Description
|
2010-08-13 19:46:41 +00:00
|
|
|
Wing is a wireless mesh routing software. The routing protocol
|
2011-07-17 14:17:47 +00:00
|
|
|
is derived from Roofnet. It supports multiple radio interfaces
|
2010-10-25 14:13:19 +00:00
|
|
|
and link quality routing using the ETX, ETT, or WCETT metric.
|
2011-07-17 14:17:47 +00:00
|
|
|
endef
|
2010-08-13 19:46:41 +00:00
|
|
|
|
2010-10-25 14:13:19 +00:00
|
|
|
EXTRA_CFLAGS=-MD
|
|
|
|
|
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--enable-tools=host \
|
|
|
|
--enable-userlevel \
|
|
|
|
--enable-wifi \
|
2011-12-01 13:45:36 +00:00
|
|
|
--enable-wing \
|
|
|
|
--enable-diffserv \
|
2010-10-25 14:13:19 +00:00
|
|
|
--disable-linuxmodule \
|
|
|
|
--disable-dynamic-linking \
|
|
|
|
|
|
|
|
HOST_CONFIGURE_ARGS += \
|
|
|
|
--enable-userlevel \
|
|
|
|
--enable-wifi \
|
2011-12-01 13:45:36 +00:00
|
|
|
--enable-wing \
|
|
|
|
--enable-diffserv \
|
2010-10-25 14:13:19 +00:00
|
|
|
--disable-linuxmodule \
|
|
|
|
|
|
|
|
define Host/Compile
|
|
|
|
$(call Host/Install/Default, tools elementmap.xml install)
|
2010-08-13 19:46:41 +00:00
|
|
|
endef
|
|
|
|
|
2010-10-25 14:13:19 +00:00
|
|
|
define Build/Compile
|
2010-08-13 19:46:41 +00:00
|
|
|
(cd $(PKG_BUILD_DIR)/userlevel; \
|
2010-10-25 14:13:19 +00:00
|
|
|
$(STAGING_DIR_HOST)/bin/click-mkmindriver -p $(PKG_NAME) -C $(STAGING_DIR_HOST) \
|
2010-08-13 19:46:41 +00:00
|
|
|
-f $(PKG_BUILD_DIR)/conf/wing/sample.click \
|
2011-07-17 14:17:47 +00:00
|
|
|
-A --all -E Discard -E Print -E PrintWifi -E Strip -E Null \
|
2010-08-13 19:46:41 +00:00
|
|
|
-E InfiniteSource -E RatedSource -E EtherEncap -E UDPIPEncap \
|
2012-08-07 12:20:59 +00:00
|
|
|
-E SetTXRateHT \
|
2011-03-31 02:53:51 +00:00
|
|
|
-E WINGETTMetric -E WINGETXMetric -E WINGHopCountMetric \
|
2010-10-25 14:13:19 +00:00
|
|
|
-E ProbeTXRate -E MadwifiRate -E AutoRateFallback -E Minstrel \
|
2011-03-31 02:53:51 +00:00
|
|
|
-E FairBuffer -E DeAggregator -E DWRRSched -E WFQSched -E WRRSched; \
|
2010-10-25 14:13:19 +00:00
|
|
|
);
|
|
|
|
$(call Build/Install/Default, MINDRIVER=$(PKG_NAME) install)
|
2010-08-13 19:46:41 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/wing/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_DIR) $(1)/etc/wing
|
|
|
|
$(INSTALL_DIR) $(1)/usr/share/click
|
|
|
|
$(CP) ./files/* $(1)/
|
|
|
|
$(CP) $(PKG_BUILD_DIR)/conf/wing/click_config $(1)/usr/bin/
|
|
|
|
$(CP) $(PKG_BUILD_DIR)/conf/wing/write_handler $(1)/usr/bin/
|
|
|
|
$(CP) $(PKG_BUILD_DIR)/conf/wing/read_handler $(1)/usr/bin/
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME)click $(1)/usr/bin/click
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/bin/click-align $(1)/usr/bin/click-align
|
|
|
|
$(CP) $(PKG_BUILD_DIR)/conf/wing/*click $(1)/etc/wing/
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/share/click/elementmap.xml $(1)/usr/share/click/elementmap.xml
|
|
|
|
endef
|
|
|
|
|
2010-10-25 14:13:19 +00:00
|
|
|
$(eval $(call HostBuild))
|
2010-08-13 19:46:41 +00:00
|
|
|
$(eval $(call BuildPackage,wing))
|
|
|
|
|