1 include $(TOPDIR
)/rules.mk
4 PKG_VERSION
:=2011-07-30
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
:=52ce4320ed44d8ca1aed61b1eae4bb651082679a
11 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
)-$(PKG_SOURCE_VERSION
).
tar.gz
12 PKG_MIRROR_MD5SUM
:=8f31d931d8f95036d07afb7f885d32e3
15 include $(INCLUDE_DIR
)/package.mk
16 include $(INCLUDE_DIR
)/cmake.mk
22 DEPENDS
:=+libubus
+libblobmsg-json
+ubusd
23 TITLE
:=OpenWrt RPC client utility
30 TITLE
:=OpenWrt RPC daemon
33 define Package
/libubus
38 TITLE
:=OpenWrt RPC client library
41 TARGET_CFLAGS
+= -I
$(STAGING_DIR
)/usr
/include
43 define Package
/ubus
/install
44 $(INSTALL_DIR
) $(1)/bin
45 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/ubus
$(1)/bin
/
48 define Package
/ubusd
/install
49 $(INSTALL_DIR
) $(1)/sbin
50 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/ubusd
$(1)/sbin
/
53 define Package
/libubus
/install
54 $(INSTALL_DIR
) $(1)/lib
55 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/* $(1)/lib
/
58 $(eval
$(call BuildPackage
,ubus
))
59 $(eval
$(call BuildPackage
,ubusd
))
60 $(eval
$(call BuildPackage
,libubus
))