2 # Copyright (C) 2007-2011 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
14 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
16 include $(INCLUDE_DIR)/package.mk
18 define Package/wshaper
21 DEPENDS:=+kmod-sched +tc
23 URL:=http://lartc.org/wondershaper/
27 define Package/wshaper/description
28 A script to do traffing shaping with the HTB algorithm.
30 * Maintain low latency for interfactive traffic at all times
31 * Allow 'surfing' at reasonable speeds while up or downloading
32 * Make sure uploads don't harm downloads, and the other way around
38 define Build/Configure
44 define Package/wshaper/install
45 $(INSTALL_DIR) $(1)/usr/sbin/ $(1)/etc/init.d $(1)/etc/config
46 $(INSTALL_BIN) ./files/wshaper.htb $(1)/usr/sbin/
47 $(INSTALL_BIN) ./files/wshaper.init $(1)/etc/init.d/wshaper
48 $(INSTALL_DATA) ./files/wshaper.config $(1)/etc/config/wshaper
51 define Package/wshaper/conffiles
55 $(eval $(call BuildPackage,wshaper))