openwrt-packages/net/wing/Makefile
acinonyx c1d51641f6 [packages] wing: Upgrade Wing package
Update wing package to latest version.

Signed-off-by: Roberto Riggio <roberto.riggio@create-net.org>
Signed-off-by: Vasilis Tsiligiannis <b_tsiligiannis@silverton.gr>

git-svn-id: svn://svn.openwrt.org/openwrt/packages@35029 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-01-06 22:35:27 +00:00

95 lines
2.7 KiB
Makefile

#
# Copyright (C) 2006-2012 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=wing
PKG_VERSION:=20121218
PKG_RELEASE:=1
PKG_REV:=a4f901c3442c5bc49d1250007db7f45436069716
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=git://github.com/rriggio/click.git
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE_VERSION:=$(PKG_REV)
PKG_SOURCE_PROTO:=git
PKG_BUILD_DEPENDS:=wing/host
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/host-build.mk
define Package/wing
SECTION:=net
CATEGORY:=Network
SUBMENU:=Routing and Redirection
TITLE:=Wireless mesh networking toolkit
MAINTAINER:=Roberto Riggio <roberto.riggio@create-net.org>
DEPENDS:=+kmod-tun +libpcap +libstdcpp
URL:=http://www.wing-project.org/
endef
define Package/wing/Description
Wing is a wireless mesh routing software. The routing protocol
is derived from Roofnet. It supports multiple radio interfaces
and link quality routing using the ETX, ETT, or WCETT metric.
endef
EXTRA_CFLAGS=-MD
CONFIGURE_ARGS += \
--enable-tools=host \
--enable-userlevel \
--enable-wifi \
--enable-wing \
--enable-diffserv \
--disable-linuxmodule \
--disable-dynamic-linking \
HOST_CONFIGURE_ARGS += \
--enable-userlevel \
--enable-wifi \
--enable-wing \
--enable-diffserv \
--disable-linuxmodule \
define Host/Compile
$(call Host/Install/Default, tools elementmap.xml install)
endef
define Build/Compile
(cd $(PKG_BUILD_DIR)/userlevel; \
$(STAGING_DIR_HOST)/bin/click-mkmindriver -p $(PKG_NAME) -C $(STAGING_DIR_HOST) \
-f $(PKG_BUILD_DIR)/conf/wing/sample.click \
-A --all -E Discard -E Print -E PrintWifi -E Strip -E Null \
-E InfiniteSource -E RatedSource -E EtherEncap -E UDPIPEncap \
-E SetTXRateHT \
-E WINGETTMetric -E WINGETXMetric -E WINGHopCountMetric \
-E ProbeTXRate -E MadwifiRate -E AutoRateFallback -E Minstrel \
-E FairBuffer -E DeAggregator -E DWRRSched -E WFQSched -E WRRSched; \
);
$(call Build/Install/Default, MINDRIVER=$(PKG_NAME) install)
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
$(eval $(call HostBuild))
$(eval $(call BuildPackage,wing))