b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 1 | # |
| 2 | # Copyright (C) 2006-2015 OpenWrt.org |
| 3 | # |
| 4 | # This is free software, licensed under the GNU General Public License v2. |
| 5 | # See /LICENSE for more information. |
| 6 | # |
| 7 | |
| 8 | include $(TOPDIR)/rules.mk |
| 9 | |
| 10 | PKG_NAME:=qos-scripts |
| 11 | PKG_VERSION:=1.3.1 |
| 12 | PKG_RELEASE:=33 |
| 13 | PKG_LICENSE:=GPL-2.0 |
| 14 | |
| 15 | PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name> |
| 16 | |
| 17 | PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME) |
| 18 | |
| 19 | include $(INCLUDE_DIR)/package.mk |
| 20 | |
| 21 | define Package/qos-scripts |
| 22 | SECTION:=utils |
| 23 | CATEGORY:=Base system |
| 24 | DEPENDS:=+tc +kmod-sched-core +kmod-sched-connmark +kmod-ifb +iptables +iptables-mod-ipopt +iptables-mod-conntrack-extra |
| 25 | TITLE:=QoS scripts |
| 26 | PKGARCH:=all |
| 27 | endef |
| 28 | |
| 29 | define Package/qos-scripts/description |
| 30 | A set of scripts that abstract QoS configuration into a simple |
| 31 | configuration file supporting stanzas that specify any number of QoS |
| 32 | entries. |
| 33 | endef |
| 34 | |
| 35 | define Package/qos-scripts/conffiles |
| 36 | /etc/config/qos |
| 37 | endef |
| 38 | |
| 39 | define Build/Prepare |
| 40 | endef |
| 41 | |
| 42 | define Build/Configure |
| 43 | endef |
| 44 | |
| 45 | define Build/Compile |
| 46 | endef |
| 47 | |
| 48 | define Package/qos-scripts/install |
| 49 | $(INSTALL_DIR) $(1) |
| 50 | $(CP) ./files/* $(1)/ |
| 51 | endef |
| 52 | |
| 53 | $(eval $(call BuildPackage,qos-scripts)) |