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.

50 lines
1.3 KiB

  1. #
  2. # Copyright (C) 2018 Luiz Angelo Daros de Luca
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. #
  6. include $(TOPDIR)/rules.mk
  7. PKG_NAME:=trafficshaper
  8. PKG_VERSION:=1.0.0
  9. PKG_RELEASE:=1
  10. PKG_MAINTAINER:=Luiz Angelo Daros de Luca <luizluca@gmail.com>
  11. PKG_LICENSE:=GPLv2
  12. PKG_ARCH:=all
  13. PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
  14. include $(INCLUDE_DIR)/package.mk
  15. include $(INCLUDE_DIR)/package.mk
  16. define Package/trafficshaper
  17. SECTION:=net
  18. CATEGORY:=Network
  19. DEPENDS:=+tc +kmod-sched-core +kmod-sched-connmark +kmod-ifb +iptables +kmod-sched-cake +iptables-mod-conntrack-extra
  20. TITLE:=WAN traffic shaper based on LAN addresses
  21. MAINTAINER:=Luiz Angelo Daros de Luca <luizluca@gmail.com>
  22. PKGARCH:=all
  23. endef
  24. define Package/trafficshaper/description
  25. Setup QoS rules to limit (or reserve) traffic used by classes of clients.
  26. Uplink and downlink can be controled (or not controlled) independently.
  27. Client classes are defined by its network addresses (IPv4 or IPv6). Each
  28. client class can define absolute or relative (to wan) bandwith, and also
  29. the use (or not) of spare wan bandwidth when avaiable.
  30. endef
  31. define Package/trafficshaper/conffiles
  32. /etc/config/trafficshaper
  33. endef
  34. define Build/Compile
  35. endef
  36. define Package/trafficshaper/install
  37. $(CP) ./files/* $(1)
  38. endef
  39. $(eval $(call BuildPackage,trafficshaper))