1 include $(TOPDIR
)/rules.mk
4 PKG_VERSION
:=2011-02-26
5 PKG_RELEASE
=$(PKG_SOURCE_VERSION
)
8 PKG_SOURCE_URL
:=git
://nbd.name
/luci2
/ubus.git
9 PKG_SOURCE_SUBDIR
:=$(PKG_NAME
)-$(PKG_VERSION
)
10 PKG_SOURCE_VERSION
:=6cf4326987c78ecc340930b48fce5b324c8d6a4d
11 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
)-$(PKG_SOURCE_VERSION
).
tar.gz
14 include $(INCLUDE_DIR
)/package.mk
15 include $(INCLUDE_DIR
)/cmake.mk
21 DEPENDS
:=+libubus
+libblobmsg-json
+ubusd
22 TITLE
:=OpenWrt RPC client utility
29 TITLE
:=OpenWrt RPC daemon
32 define Package
/libubus
37 TITLE
:=OpenWrt RPC client library
40 TARGET_CFLAGS
+= -I
$(STAGING_DIR
)/usr
/include
42 define Package
/ubus
/install
43 $(INSTALL_DIR
) $(1)/bin
44 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/ubus
$(1)/bin
/
47 define Package
/ubusd
/install
48 $(INSTALL_DIR
) $(1)/sbin
49 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/ubusd
$(1)/sbin
/
52 define Package
/libubus
/install
53 $(INSTALL_DIR
) $(1)/lib
54 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/* $(1)/lib
/
57 $(eval
$(call BuildPackage
,ubus
))
58 $(eval
$(call BuildPackage
,ubusd
))
59 $(eval
$(call BuildPackage
,libubus
))