[package] forgot iftop patches
[openwrt/svn-archive/archive.git] / net / wshaper / Makefile
1 #
2 # Copyright (C) 2007 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=wshaper
11 PKG_VERSION:=0.1
12
13 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
14
15 include $(INCLUDE_DIR)/package.mk
16
17 define Package/wshaper
18 SECTION:=net
19 CATEGORY:=Network
20 DEPENDS:=+kmod-sched +tc
21 TITLE:=wshaper
22 URL:=http://lartc.org/wondershaper/
23 endef
24
25 define Package/wshaper/description
26 A script to do traffing shaping with the HTB algorithm.
27 Wshaper attempts to:
28 * Maintain low latency for interfactive traffic at all times
29 * Allow 'surfing' at reasonable speeds while up or downloading
30 * Make sure uploads don't harm downloads, and the other way around
31 endef
32
33 define Build/Prepare
34 endef
35
36 define Build/Configure
37 endef
38
39 define Build/Compile
40 endef
41
42 define Package/wshaper/install
43 $(INSTALL_DIR) $(1)/usr/sbin/ $(1)/etc/init.d
44 $(INSTALL_BIN) ./files/wshaper.htb $(1)/usr/sbin/
45 $(INSTALL_BIN) ./files/wshaper.init $(1)/etc/init.d/wshaper
46 endef
47
48 $(eval $(call BuildPackage,wshaper))