source: trunk/package/ubus/Makefile @ 25457

Last change on this file since 25457 was 25457, checked in by nbd, 5 years ago

add ubus - the new openwrt message bus / rpc daemon

File size: 1.3 KB
Line 
1include $(TOPDIR)/rules.mk
2
3PKG_NAME:=ubus
4PKG_VERSION:=2011-02-11
5PKG_RELEASE:=1
6
7PKG_SOURCE_PROTO:=git
8PKG_SOURCE_URL:=git://nbd.name/luci2/ubus.git
9PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
10PKG_SOURCE_VERSION:=f2ee96c51d38363092415cc333f8f7a62f16783a
11PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
12CMAKE_INSTALL:=1
13
14include $(INCLUDE_DIR)/package.mk
15include $(INCLUDE_DIR)/cmake.mk
16
17define Package/ubus
18  SECTION:=luci2
19  CATEGORY:=LuCI2
20  SUBMENU:=System
21  DEPENDS:=+libubus +ubusd
22  TITLE:=OpenWrt RPC client utility
23endef
24
25define Package/ubusd
26  SECTION:=luci2
27  CATEGORY:=LuCI2
28  SUBMENU:=System
29  TITLE:=OpenWrt RPC daemon
30endef
31
32define Package/libubus
33  SECTION:=luci2
34  CATEGORY:=LuCI2
35  SUBMENU:=Libraries
36  DEPENDS:=+libubox
37  TITLE:=OpenWrt RPC client library
38endef
39
40TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include
41
42define Package/ubus/install
43        $(INSTALL_DIR) $(1)/bin
44        $(CP) $(PKG_INSTALL_DIR)/usr/bin/ubus $(1)/bin/
45endef
46
47define Package/ubusd/install
48        $(INSTALL_DIR) $(1)/sbin
49        $(CP) $(PKG_INSTALL_DIR)/usr/sbin/ubusd $(1)/sbin/
50endef
51
52define Package/libubus/install
53        $(INSTALL_DIR) $(1)/lib
54        $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/lib/
55endef
56
57$(eval $(call BuildPackage,ubus))
58$(eval $(call BuildPackage,ubusd))
59$(eval $(call BuildPackage,libubus))
60
Note: See TracBrowser for help on using the repository browser.