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-03-22
15 PKG_SOURCE_VERSION
:=57c7817f91c2ff2f247b2d7eb8554e861c4aec33
16 PKG_MIRROR_HASH
:=409f7db13a36334557de861a016a8d9f241070b2bbf6f738e992281b36f41cd4
17 PKG_RELEASE
:=$(AUTORELEASE
)
20 PKG_MAINTAINER
:=Felix Fietkau
<nbd@nbd.name
>
22 PKG_BUILD_DEPENDS
:=bpf-headers
25 include $(INCLUDE_DIR
)/package.mk
26 include $(INCLUDE_DIR
)/cmake.mk
27 include $(INCLUDE_DIR
)/bpf.mk
28 include $(INCLUDE_DIR
)/nls.mk
33 TITLE
:=A simple QoS solution based eBPF
+ CAKE
34 DEPENDS
:=+libbpf
+libubox
+libubus
+kmod-sched-cake
+kmod-sched-bpf
+kmod-ifb
+tc-full
$(BPF_DEPENDS
)
37 TARGET_CFLAGS
+= -Wno-error
=deprecated-declarations
40 $(call CompileBPF
,$(PKG_BUILD_DIR
)/qosify-bpf.c
)
41 $(Build
/Compile
/Default
)
44 define Package
/qosify
/conffiles
46 /etc
/qosify
/00-defaults.conf
49 define Package
/qosify
/install
56 $(1)/etc
/hotplug.d
/net \
57 $(1)/etc
/hotplug.d
/iface
58 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/qosify-bpf.o
$(1)/lib
/bpf
60 $(PKG_INSTALL_DIR
)/usr
/bin
/qosify \
61 .
/files
/qosify-status \
63 $(INSTALL_BIN
) .
/files
/qosify.init
$(1)/etc
/init.d
/qosify
64 $(INSTALL_DATA
) .
/files
/qosify-defaults.conf
$(1)/etc
/qosify
/00-defaults.conf
65 $(INSTALL_DATA
) .
/files
/qosify.conf
$(1)/etc
/config
/qosify
66 $(INSTALL_DATA
) .
/files
/qosify.hotplug
$(1)/etc
/hotplug.d
/net
/10-qosify
67 $(INSTALL_DATA
) .
/files
/qosify.hotplug
$(1)/etc
/hotplug.d
/iface
/10-qosify
70 $(eval
$(call BuildPackage
,qosify
))