2 # Copyright (C) 2013 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
11 PKG_VERSION
:=2013-09-02
12 PKG_RELEASE
=$(PKG_SOURCE_VERSION
)
15 PKG_SOURCE_URL
:=git
://nbd.name
/luci2
/rpcd.git
16 PKG_SOURCE_SUBDIR
:=$(PKG_NAME
)-$(PKG_VERSION
)
17 PKG_SOURCE_VERSION
:=11f37e28898b12bf53d8df6272fa28c48d79a96b
18 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
)-$(PKG_SOURCE_VERSION
).
tar.gz
19 PKG_MAINTAINER
:=Jo-Philipp Wich
<jow@openwrt.org
>
26 include $(INCLUDE_DIR
)/package.mk
27 include $(INCLUDE_DIR
)/cmake.mk
29 define Package
/rpcd
/default
32 TITLE
:=OpenWrt ubus RPC backend server
33 DEPENDS
:=+libubus
+libubox
37 $(Package
/rpcd
/default
)
38 DEPENDS
+= +libuci
+libblobmsg-json
41 define Package
/rpcd
/description
42 This package provides the UBUS RPC backend server to expose various
43 functionality to frontend programs via JSON-RPC.
46 define Package
/rpcd
/install
47 $(INSTALL_DIR
) $(1)/etc
/init.d
48 $(INSTALL_BIN
) .
/files
/rpcd.init
$(1)/etc
/init.d
/rpcd
49 $(INSTALL_DIR
) $(1)/sbin
50 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/rpcd
$(1)/sbin
/rpcd
55 # 2: extra dependencies
56 # 3: plugin title/description
59 PKG_CONFIG_DEPENDS
+= CONFIG_PACKAGE_luci-rpc-mod-
$(1)
61 define Package
/rpcd-mod-
$(1)
62 $(Package
/rpcd
/default
)
67 define Package
/rpcd-mod-
$(1)/description
71 define Package
/rpcd-mod-
$(1)/install
72 $(INSTALL_DIR
) $$(1)/usr
/lib
/rpcd
73 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/$(1).so
$$(1)/usr
/lib
/rpcd
/
76 $$(eval
$$(call BuildPackage
,rpcd-mod-
$(1)))
80 $(eval
$(call BuildPackage
,rpcd
))
81 $(eval
$(call BuildPlugin
,file
,,Provides ubus calls for file and directory operations.
))
82 $(eval
$(call BuildPlugin
,luci2
,,Provides LuCI2 specific backend calls.
))
83 $(eval
$(call BuildPlugin
,iwinfo
,+libiwinfo
,Provides ubus calls for accessing iwinfo data.
))