4b274055ede3 libubus: fix NULL dereference on OOM in ubus_queue_msg 8b5be570f13e libubus-acl: fix dangling pointers on blob_memdup failure in acl_recv_cb 9105ea2a349a ubusd_acl: fix NULL dereference on OOM in ubusd_acl_alloc_obj 07d7f34ac278 ubusd_acl: handle allocation failures in ubusd_acl_init_client 497321a5ea90 ubusd_acl: fix NULL dereference on OOM in ubusd_acl_init f66d52ba983f ubusd_event: fix OOM handling in ubusd_send_event_msg 11ea1b3bdbea ubusd_main: fix async-signal-unsafe SIGHUP handler 0c095592ccb7 ubusd_proto: fix resource leaks and ID tree corruption in ubusd_proto_new_client f61695e6e12a ubusd_proto: fix NULL dereference for user/group in ubusd_handle_add_watch 7ecacfadd9bc ubusd_proto: fix NULL dereference on OOM in ubusd_proto_init_retmsg 3ab9d7759545 lua: fix inverted argument check in ubus_lua_add 43051ca73aec lua: fix unchecked calloc and memory leak in ubus_lua_load_object 4ca0b141e9a7 ubusd_id: use getrandom(2) unconditionally on Linux 7e4356da8abe ubusd_monitor: fix NULL dereference on OOM in ubusd_monitor_message 5849870f2251 libubus-req: fix file descriptor leaks in ubus_process_req_msg f29767f90af1 libubus: fix file descriptor leaks in ubus_process_msg b099d050b59d libubus: make ubus_shutdown idempotent a564b8dcb395 ubusd_main: check strdup return value in mkdir_sockdir 239edcbaaac8 ubusd_id: fix continue in do-while skipping random ID retry 09d2df45bf38 ubusd: fix NULL dereference on OOM in ubus_msg_enqueue bcc45ca981fd libubus: actually set FD_CLOEXEC on the ubus socket 8188f5ce8564 libubus-io: close recv_fd captured before get_next_msg failure 7a068bac5a9b libubus-io: byte-swap peer in HELLO when storing as local_id 747013f6ea05 libubus-io: reset sock.fd to -1 after close on ubus_reconnect error path 020a64b9b169 ubusd_acl: use size_t for strlen result in ubusd_acl_alloc_obj f92ffd289dcc ubusd: use size_t for string and blob length variables 795b32bb96b6 ubusd: use fixed-width types for sequence counters Link: https://github.com/openwrt/openwrt/pull/23487 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
84 lines
1.9 KiB
Makefile
84 lines
1.9 KiB
Makefile
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=ubus
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE_PROTO:=git
|
|
PKG_SOURCE_URL=$(PROJECT_GIT)/project/ubus.git
|
|
PKG_SOURCE_DATE:=2026-05-23
|
|
PKG_SOURCE_VERSION:=795b32bb96b611493f423666236e9c1e49e0736c
|
|
PKG_MIRROR_HASH:=7fdc7c111b21277603448f20b15ebbf3adeab6e3f51fb99f216587f3b5998fbd
|
|
PKG_ABI_VERSION:=$(call abi_version_str,$(PKG_SOURCE_DATE))
|
|
CMAKE_INSTALL:=1
|
|
|
|
PKG_LICENSE:=LGPL-2.1
|
|
PKG_LICENSE_FILES:=
|
|
PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name>
|
|
|
|
PKG_BUILD_FLAGS:=lto
|
|
PKG_ASLR_PIE_REGULAR:=1
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
include $(INCLUDE_DIR)/cmake.mk
|
|
|
|
define Package/ubus
|
|
SECTION:=base
|
|
CATEGORY:=Base system
|
|
DEPENDS:=+libubus +libblobmsg-json +ubusd
|
|
TITLE:=OpenWrt RPC client utility
|
|
endef
|
|
|
|
define Package/ubusd
|
|
SECTION:=base
|
|
CATEGORY:=Base system
|
|
TITLE:=OpenWrt RPC daemon
|
|
DEPENDS:=+libubox +libblobmsg-json
|
|
USERID:=ubus=81:ubus=81
|
|
endef
|
|
|
|
define Package/libubus
|
|
SECTION:=libs
|
|
CATEGORY:=Libraries
|
|
DEPENDS:=+libubox
|
|
ABI_VERSION:=$(PKG_ABI_VERSION)
|
|
TITLE:=OpenWrt RPC client library
|
|
endef
|
|
|
|
define Package/libubus-lua
|
|
SECTION:=libs
|
|
CATEGORY:=Libraries
|
|
DEPENDS:=+libubus +liblua
|
|
TITLE:=Lua binding for the OpenWrt RPC client
|
|
endef
|
|
|
|
TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include
|
|
|
|
CMAKE_OPTIONS += \
|
|
-DLUAPATH=/usr/lib/lua \
|
|
-DABIVERSION="$(PKG_ABI_VERSION)"
|
|
|
|
define Package/ubus/install
|
|
$(INSTALL_DIR) $(1)/bin
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/bin/ubus $(1)/bin/
|
|
endef
|
|
|
|
define Package/ubusd/install
|
|
$(INSTALL_DIR) $(1)/sbin
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/sbin/ubusd $(1)/sbin/
|
|
endef
|
|
|
|
define Package/libubus/install
|
|
$(INSTALL_DIR) $(1)/lib
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libubus.so.* $(1)/lib/
|
|
endef
|
|
|
|
define Package/libubus-lua/install
|
|
$(INSTALL_DIR) $(1)/usr/lib/lua
|
|
$(CP) $(PKG_BUILD_DIR)/lua/ubus.so $(1)/usr/lib/lua/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,libubus))
|
|
$(eval $(call BuildPackage,libubus-lua))
|
|
$(eval $(call BuildPackage,ubus))
|
|
$(eval $(call BuildPackage,ubusd))
|