You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
1.3 KiB

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