1 include $(TOPDIR
)/rules.mk
7 PKG_SOURCE_URL
=$(PROJECT_GIT
)/project
/ubus.git
8 PKG_SOURCE_DATE
:=2018-01-16
9 PKG_SOURCE_VERSION
:=5bae22eb5472c9c7cc30caa9a84004bba19940d3
10 PKG_MIRROR_HASH
:=6f46398279339dcc597965306275fe1272af384f8cb253ee8de2c68e366eed55
16 PKG_MAINTAINER
:=Felix Fietkau
<nbd@nbd.name
>
18 include $(INCLUDE_DIR
)/package.mk
19 include $(INCLUDE_DIR
)/cmake.mk
24 DEPENDS
:=+libubus
+libblobmsg-json
+ubusd
25 TITLE
:=OpenWrt RPC client utility
31 TITLE
:=OpenWrt RPC daemon
32 DEPENDS
:=+libubox
+libblobmsg-json
35 define Package
/libubus
39 ABI_VERSION
:=$(PKG_VERSION
)
40 TITLE
:=OpenWrt RPC client library
43 define Package
/libubus-lua
46 DEPENDS
:=+libubus
+liblua
47 TITLE
:=Lua binding for the OpenWrt RPC client
50 TARGET_CFLAGS
+= -I
$(STAGING_DIR
)/usr
/include
53 -DLUAPATH
=/usr
/lib
/lua
55 define Package
/ubus
/install
56 $(INSTALL_DIR
) $(1)/bin
57 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/ubus
$(1)/bin
/
60 define Package
/ubusd
/install
61 $(INSTALL_DIR
) $(1)/sbin
62 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/ubusd
$(1)/sbin
/
65 define Package
/libubus
/install
66 $(INSTALL_DIR
) $(1)/lib
67 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/*.so
$(1)/lib
/
70 define Package
/libubus-lua
/install
71 $(INSTALL_DIR
) $(1)/usr
/lib
/lua
72 $(CP
) $(PKG_BUILD_DIR
)/lua
/ubus.so
$(1)/usr
/lib
/lua
/
75 $(eval
$(call BuildPackage
,libubus
))
76 $(eval
$(call BuildPackage
,libubus-lua
))
77 $(eval
$(call BuildPackage
,ubus
))
78 $(eval
$(call BuildPackage
,ubusd
))