branch Attitude Adjustment packages
[12.09/packages.git] / net / wshaper / Makefile
1
2 # Copyright (C) 2007-2011 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.2
12 PKG_RELEASE:=2
13
14 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
15
16 include $(INCLUDE_DIR)/package.mk
17
18 define Package/wshaper
19   SECTION:=net
20   CATEGORY:=Network
21   DEPENDS:=+kmod-sched +tc
22   TITLE:=wshaper
23   URL:=http://lartc.org/wondershaper/
24   PKGARCH:=all
25 endef
26
27 define Package/wshaper/description
28  A script to do traffing shaping with the HTB algorithm.
29  Wshaper attempts to:
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
33 endef
34
35 define Build/Prepare
36 endef
37
38 define Build/Configure
39 endef
40
41 define Build/Compile
42 endef
43
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
49 endef
50
51 define Package/wshaper/conffiles
52 /etc/config/wshaper
53 endef
54
55 $(eval $(call BuildPackage,wshaper))