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