2 # Copyright (C) 2018 rosysong@rosinson.com
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
15 PKG_MAINTAINER
:=Rosy Song
<rosysong@rosinson.com
>
17 PKG_BUILD_DIR
:= $(BUILD_DIR
)/$(PKG_NAME
)
19 include $(INCLUDE_DIR
)/package.mk
21 define Package
/nft-qos
24 DEPENDS
:=+kmod-nft-netdev
+kmod-nft-bridge
+nftables
25 TITLE
:=QoS scripts over nftables
29 define Package
/nft-qos
/description
30 This package provides implementation for qos over nftables.
31 Currently
, static
/dynamic qos and traffic shaping are supported.
34 define Package
/nft-qos
/conffiles
41 define Build
/Configure
47 define Package
/nft-qos
/install
48 $(INSTALL_DIR
) $(1)/lib
/nft-qos
49 $(INSTALL_DATA
) .
/files
/lib
/* $(1)/lib
/nft-qos
/
50 $(INSTALL_DIR
) $(1)/etc
/config
51 $(INSTALL_CONF
) .
/files
/nft-qos.config
$(1)/etc
/config
/nft-qos
52 $(INSTALL_DIR
) $(1)/etc
/init.d
53 $(INSTALL_BIN
) .
/files
/nft-qos.init
$(1)/etc
/init.d
/nft-qos
54 $(INSTALL_DIR
) $(1)/etc
/hotplug.d
/dhcp
55 $(INSTALL_BIN
) .
/files
/nft-qos-monitor.hotplug
$(1)/etc
/hotplug.d
/dhcp
/00-nft-qos-monitor
56 $(INSTALL_BIN
) .
/files
/nft-qos-dynamic.hotplug
$(1)/etc
/hotplug.d
/dhcp
/01-nft-qos-dynamic
59 $(eval
$(call BuildPackage
,nft-qos
))