coolsnowwolf-packages/net/sqm-scripts/Makefile
2023-12-20 00:48:52 +08:00

48 lines
1.1 KiB
Makefile

#
# Copyright (C) 2014 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=sqm-scripts
PKG_SOURCE_VERSION:=27fb04f4a49b80e8ccde27c7587ce2a63bd8ac43
PKG_VERSION:=1.6.0
PKG_RELEASE:=1
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/ricsc/sqm-scripts
PKG_MIRROR_HASH:=f759855b599ce08b1d54023d3e3d1ab46abdf498152442cba53bef222921a840
PKG_MAINTAINER:=Toke Høiland-Jørgensen <toke@toke.dk>
PKG_LICENSE:=GPL-2.0-only
include $(INCLUDE_DIR)/package.mk
define Package/sqm-scripts
SECTION:=net
CATEGORY:=Base system
DEPENDS:=+tc +kmod-sched-core +kmod-ifb +iptables \
+iptables-mod-ipopt +iptables-mod-conntrack-extra \
+kmod-sched-cake
TITLE:=SQM Scripts (QoS)
PKGARCH:=all
endef
define Package/sqm-scripts/description
A set of scripts that does simple SQM configuration.
endef
define Package/sqm-scripts/conffiles
/etc/config/sqm
/etc/sqm/sqm.conf
endef
define Package/sqm-scripts/install
make -C $(PKG_BUILD_DIR) DESTDIR=$(1) PLATFORM=openwrt install
endef
$(eval $(call BuildPackage,sqm-scripts))