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) 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:=sqm-scripts
  9. PKG_VERSION:=8
  10. PKG_RELEASE:=7
  11. PKG_LICENSE:=GPLv2
  12. PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
  13. include $(INCLUDE_DIR)/package.mk
  14. define Package/sqm-scripts
  15. SECTION:=net
  16. CATEGORY:=Base system
  17. DEPENDS:=+tc +kmod-sched +kmod-ifb iptables +ip \
  18. +iptables-mod-ipopt +iptables-mod-conntrack-extra
  19. TITLE:=SQM Scripts (QoS)
  20. PKGARCH:=all
  21. MAINTAINER:=Toke Høiland-Jørgensen <toke@toke.dk>
  22. endef
  23. define Package/sqm-scripts/description
  24. A set of scripts that does simple SQM configuration.
  25. endef
  26. define Package/sqm-scripts/conffiles
  27. /etc/config/sqm
  28. endef
  29. define Build/Prepare
  30. endef
  31. define Build/Configure
  32. endef
  33. define Build/Compile
  34. endef
  35. define Package/sqm-scripts/install
  36. $(INSTALL_DIR) $(1)/etc/init.d
  37. $(INSTALL_BIN) ./files/etc/init.d/sqm $(1)/etc/init.d/sqm
  38. $(INSTALL_DIR) $(1)/etc/hotplug.d/iface
  39. $(INSTALL_BIN) ./files/etc/hotplug.d/iface/11-sqm $(1)/etc/hotplug.d/iface/11-sqm
  40. $(INSTALL_DIR) $(1)/etc/config
  41. $(INSTALL_DATA) ./files/etc/config/sqm $(1)/etc/config/sqm
  42. $(INSTALL_DIR) $(1)/usr/lib/sqm
  43. $(INSTALL_BIN) ./files/usr/lib/sqm/*.sh $(1)/usr/lib/sqm/
  44. $(INSTALL_BIN) ./files/usr/lib/sqm/*.qos $(1)/usr/lib/sqm/
  45. $(INSTALL_DATA) ./files/usr/lib/sqm/*.help $(1)/usr/lib/sqm/
  46. endef
  47. $(eval $(call BuildPackage,sqm-scripts))