mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-25 16:31:13 +00:00
48ed07bc0b
Based on Paul Fertser <fercerpav@gmail.com>'s guidance: Change AUTORELEASE in rules.mk to: ``` AUTORELEASE = $(if $(DUMP),0,$(shell sed -i "s/\$$(AUTORELEASE)/$(call commitcount,1)/" $(CURDIR)/Makefile)) ``` then update all affected packages by: ``` for i in $(git grep -l PKG_RELEASE:=.*AUTORELEASE | sed 's^.*/\([^/]*\)/Makefile^\1^';); do make package/$i/clean done ``` Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
77 lines
2.0 KiB
Makefile
77 lines
2.0 KiB
Makefile
#
|
|
# Copyright (C) 2021 OpenWrt.org
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
include $(INCLUDE_DIR)/kernel.mk
|
|
|
|
PKG_NAME:=qosify
|
|
PKG_SOURCE_URL=$(PROJECT_GIT)/project/qosify.git
|
|
PKG_SOURCE_PROTO:=git
|
|
PKG_SOURCE_DATE:=2023-03-07
|
|
PKG_SOURCE_VERSION:=9a47ea4b683dd845ec94534fcd82d3117c9ab313
|
|
PKG_MIRROR_HASH:=c4c313aed4a405492201612bdfef5e219c9a994a35f35acc84fc8327d9aa73d2
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_LICENSE:=GPL-2.0
|
|
PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name>
|
|
|
|
PKG_BUILD_DEPENDS:=bpf-headers
|
|
PKG_FLAGS:=nonshared
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
include $(INCLUDE_DIR)/cmake.mk
|
|
include $(INCLUDE_DIR)/bpf.mk
|
|
include $(INCLUDE_DIR)/nls.mk
|
|
|
|
define Package/qosify
|
|
SECTION:=utils
|
|
CATEGORY:=Base system
|
|
TITLE:=A simple QoS solution based eBPF + CAKE
|
|
DEPENDS:=+libbpf +libubox +libubus +libnl-tiny +kmod-sched-cake +kmod-sched-bpf +kmod-ifb +tc $(BPF_DEPENDS)
|
|
endef
|
|
|
|
TARGET_CFLAGS += \
|
|
-Wno-error=deprecated-declarations \
|
|
-I$(STAGING_DIR)/usr/include/libnl-tiny \
|
|
-I$(STAGING_DIR)/usr/include
|
|
|
|
CMAKE_OPTIONS += \
|
|
-DLIBNL_LIBS=-lnl-tiny
|
|
|
|
define Build/Compile
|
|
$(call CompileBPF,$(PKG_BUILD_DIR)/qosify-bpf.c)
|
|
$(Build/Compile/Default)
|
|
endef
|
|
|
|
define Package/qosify/conffiles
|
|
/etc/config/qosify
|
|
/etc/qosify/00-defaults.conf
|
|
endef
|
|
|
|
define Package/qosify/install
|
|
$(INSTALL_DIR) \
|
|
$(1)/lib/bpf \
|
|
$(1)/usr/sbin \
|
|
$(1)/etc/init.d \
|
|
$(1)/etc/config \
|
|
$(1)/etc/qosify \
|
|
$(1)/etc/hotplug.d/net \
|
|
$(1)/etc/hotplug.d/iface
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/qosify-bpf.o $(1)/lib/bpf
|
|
$(INSTALL_BIN) \
|
|
$(PKG_INSTALL_DIR)/usr/bin/qosify \
|
|
./files/qosify-status \
|
|
$(1)/usr/sbin/
|
|
$(INSTALL_BIN) ./files/qosify.init $(1)/etc/init.d/qosify
|
|
$(INSTALL_DATA) ./files/qosify-defaults.conf $(1)/etc/qosify/00-defaults.conf
|
|
$(INSTALL_DATA) ./files/qosify.conf $(1)/etc/config/qosify
|
|
$(INSTALL_DATA) ./files/qosify.hotplug $(1)/etc/hotplug.d/net/10-qosify
|
|
$(INSTALL_DATA) ./files/qosify.hotplug $(1)/etc/hotplug.d/iface/10-qosify
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,qosify))
|