Merge pull request #8361 from jandelgado/add_udptunnel_package
[feed/packages.git] / net / nft-qos / Makefile
1 #
2 # Copyright (C) 2018 rosysong@rosinson.com
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:=nft-qos
11 PKG_VERSION:=1.0.6
12 PKG_RELEASE:=1
13 PKG_LICENSE:=GPL-2.0
14
15 PKG_MAINTAINER:=Rosy Song <rosysong@rosinson.com>
16
17 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/nft-qos
22 SECTION:=utils
23 CATEGORY:=Base system
24 DEPENDS:=+nftables +kmod-nft-netdev +kmod-nft-bridge
25 TITLE:=QoS scripts over nftables
26 PKGARCH:=all
27 endef
28
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.
32 endef
33
34 define Package/nft-qos/conffiles
35 /etc/config/nft-qos
36 endef
37
38 define Build/Prepare
39 endef
40
41 define Build/Configure
42 endef
43
44 define Build/Compile
45 endef
46
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
57 endef
58
59 $(eval $(call BuildPackage,nft-qos))