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