netatalk: bump to version 3.1.12
[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.2
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 endef
27
28 define Package/nft-qos/description
29 This package provides implementation for qos over nftables.
30 Currently, static/dynamic qos and traffic shaping are supported.
31 endef
32
33 define Package/nft-qos/conffiles
34 /etc/config/nft-qos
35 endef
36
37 define Build/Prepare
38 endef
39
40 define Build/Configure
41 endef
42
43 define Build/Compile
44 endef
45
46 define Package/nft-qos/install
47 $(INSTALL_DIR) $(1)/lib/nft-qos
48 $(INSTALL_DATA) ./files/lib/* $(1)/lib/nft-qos/
49 $(INSTALL_DIR) $(1)/etc/config
50 $(INSTALL_CONF) ./files/nft-qos.config $(1)/etc/config/nft-qos
51 $(INSTALL_DIR) $(1)/etc/init.d
52 $(INSTALL_BIN) ./files/nft-qos.init $(1)/etc/init.d/nft-qos
53 $(INSTALL_DIR) $(1)/etc/hotplug.d/dhcp
54 $(INSTALL_BIN) ./files/nft-qos-monitor.hotplug $(1)/etc/hotplug.d/dhcp/00-nft-qos-monitor
55 $(INSTALL_BIN) ./files/nft-qos-dynamic.hotplug $(1)/etc/hotplug.d/dhcp/01-nft-qos-dynamic
56 endef
57
58 $(eval $(call BuildPackage,nft-qos))