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.

59 lines
1.4 KiB

  1. #
  2. # Copyright (C) 2018 rosysong@rosinson.com
  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:=nft-qos
  9. PKG_VERSION:=1.0.6
  10. PKG_RELEASE:=1
  11. PKG_LICENSE:=GPL-2.0
  12. PKG_MAINTAINER:=Rosy Song <rosysong@rosinson.com>
  13. PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
  14. include $(INCLUDE_DIR)/package.mk
  15. define Package/nft-qos
  16. SECTION:=utils
  17. CATEGORY:=Base system
  18. DEPENDS:=+kmod-nft-netdev +kmod-nft-bridge +nftables
  19. TITLE:=QoS scripts over nftables
  20. PKGARCH:=all
  21. endef
  22. define Package/nft-qos/description
  23. This package provides implementation for qos over nftables.
  24. Currently, static/dynamic qos and traffic shaping are supported.
  25. endef
  26. define Package/nft-qos/conffiles
  27. /etc/config/nft-qos
  28. endef
  29. define Build/Prepare
  30. endef
  31. define Build/Configure
  32. endef
  33. define Build/Compile
  34. endef
  35. define Package/nft-qos/install
  36. $(INSTALL_DIR) $(1)/lib/nft-qos
  37. $(INSTALL_DATA) ./files/lib/* $(1)/lib/nft-qos/
  38. $(INSTALL_DIR) $(1)/etc/config
  39. $(INSTALL_CONF) ./files/nft-qos.config $(1)/etc/config/nft-qos
  40. $(INSTALL_DIR) $(1)/etc/init.d
  41. $(INSTALL_BIN) ./files/nft-qos.init $(1)/etc/init.d/nft-qos
  42. $(INSTALL_DIR) $(1)/etc/hotplug.d/dhcp
  43. $(INSTALL_BIN) ./files/nft-qos-monitor.hotplug $(1)/etc/hotplug.d/dhcp/00-nft-qos-monitor
  44. $(INSTALL_BIN) ./files/nft-qos-dynamic.hotplug $(1)/etc/hotplug.d/dhcp/01-nft-qos-dynamic
  45. endef
  46. $(eval $(call BuildPackage,nft-qos))