2 # Copyright (C) 2021 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
9 include $(INCLUDE_DIR
)/kernel.mk
12 PKG_SOURCE_URL
=$(PROJECT_GIT
)/project
/qosify.git
14 PKG_SOURCE_DATE
:=2022-02-10
15 PKG_SOURCE_VERSION
:=8d6c19a81f3f2326e90decc7975a7945fb5e64c4
16 PKG_MIRROR_HASH
:=aab149db6e0f2440c980684c8d0fe8129ac212612b0ba8fc51a45c381371b487
19 PKG_MAINTAINER
:=Felix Fietkau
<nbd@nbd.name
>
21 PKG_BUILD_DEPENDS
:=bpf-headers
24 include $(INCLUDE_DIR
)/package.mk
25 include $(INCLUDE_DIR
)/cmake.mk
26 include $(INCLUDE_DIR
)/bpf.mk
27 include $(INCLUDE_DIR
)/nls.mk
32 TITLE
:=A simple QoS solution based eBPF
+ CAKE
33 DEPENDS
:=+libbpf
+libubox
+libubus
+kmod-sched-cake
+kmod-sched-bpf
+kmod-ifb
+tc-full
$(BPF_DEPENDS
)
37 $(call CompileBPF
,$(PKG_BUILD_DIR
)/qosify-bpf.c
)
38 $(Build
/Compile
/Default
)
41 define Package
/qosify
/conffiles
43 /etc
/qosify
/00-defaults.conf
46 define Package
/qosify
/install
53 $(1)/etc
/hotplug.d
/net \
54 $(1)/etc
/hotplug.d
/iface
55 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/qosify-bpf.o
$(1)/lib
/bpf
57 $(PKG_INSTALL_DIR
)/usr
/bin
/qosify \
58 .
/files
/qosify-status \
60 $(INSTALL_BIN
) .
/files
/qosify.init
$(1)/etc
/init.d
/qosify
61 $(INSTALL_DATA
) .
/files
/qosify-defaults.conf
$(1)/etc
/qosify
/00-defaults.conf
62 $(INSTALL_DATA
) .
/files
/qosify.conf
$(1)/etc
/config
/qosify
63 $(INSTALL_DATA
) .
/files
/qosify.hotplug
$(1)/etc
/hotplug.d
/net
/10-qosify
64 $(INSTALL_DATA
) .
/files
/qosify.hotplug
$(1)/etc
/hotplug.d
/iface
/10-qosify
67 $(eval
$(call BuildPackage
,qosify
))