2 # Copyright (C) 2018-2019 Luiz Angelo Daros de Luca
4 # This is free software, licensed under the GNU General Public License v2.
7 include $(TOPDIR
)/rules.mk
9 PKG_NAME
:=trafficshaper
12 PKG_MAINTAINER
:=Luiz Angelo Daros de Luca
<luizluca@gmail.com
>
14 PKG_LICENSE
:=GPL-2.0
-or-later
16 include $(INCLUDE_DIR
)/package.mk
18 define Package
/trafficshaper
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
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.
34 define Package
/trafficshaper
/conffiles
35 /etc
/config
/trafficshaper
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
48 $(eval
$(call BuildPackage
,trafficshaper
))