-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathMakefile
44 lines (33 loc) · 1.14 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
include $(TOPDIR)/rules.mk
PKG_NAME:=dscpclassify
PKG_VERSION:=1
PKG_RELEASE:=1
include $(INCLUDE_DIR)/package.mk
define Package/dscpclassify
CATEGORY:=Extra
TITLE:=dscpclassify
DEPENDS:=+nftables
endef
define Build/Prepare
endef
define Build/Compile
endef
define Package/dscpclassify/conffiles
/etc/config/dscpclassify
endef
define Package/dscpclassify/install
$(INSTALL_DIR) $(1)/etc/config
$(INSTALL_DIR) $(1)/etc/dscpclassify.d
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_DIR) $(1)/etc/hotplug.d/iface
$(INSTALL_DIR) $(1)/usr/lib/sqm
$(INSTALL_CONF) ./etc/config/dscpclassify $(1)/etc/config/
$(INSTALL_CONF) ./etc/dscpclassify.d/main.nft $(1)/etc/dscpclassify.d/
$(INSTALL_CONF) ./etc/dscpclassify.d/maps.nft $(1)/etc/dscpclassify.d/
$(INSTALL_CONF) ./etc/dscpclassify.d/verdicts.nft $(1)/etc/dscpclassify.d/
$(INSTALL_CONF) ./etc/hotplug.d/iface/21-dscpclassify $(1)/etc/hotplug.d/iface/
$(INSTALL_BIN) ./etc/init.d/dscpclassify $(1)/etc/init.d/
$(INSTALL_DATA) ./usr/lib/sqm/layer_cake_ct.qos $(1)/usr/lib/sqm/
$(INSTALL_DATA) ./usr/lib/sqm/layer_cake_ct.qos.help $(1)/usr/lib/sqm/
endef
$(eval $(call BuildPackage,dscpclassify))