1
0

Makefile 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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 <jo@mein.io>
  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 $(1)/etc/hotplug.d/iface
  37. $(INSTALL_BIN) ./files/wshaper.htb $(1)/usr/sbin/
  38. $(INSTALL_BIN) ./files/wshaper.init $(1)/etc/init.d/wshaper
  39. $(INSTALL_BIN) ./files/wshaper.iface $(1)/etc/hotplug.d/iface/10-wshaper
  40. $(INSTALL_DATA) ./files/wshaper.config $(1)/etc/config/wshaper
  41. endef
  42. define Package/wshaper/conffiles
  43. /etc/config/wshaper
  44. endef
  45. $(eval $(call BuildPackage,wshaper))