summaryrefslogtreecommitdiff
path: root/package/system
diff options
context:
space:
mode:
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2013-09-11 12:13:33 +0000
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2013-09-11 12:13:33 +0000
commit59bb8e8b88f6909b09a896ea89cec9c06479c5fa (patch)
treea56c4fdcb6296b638cac1538acf11ab48910da23 /package/system
parenteab15f3dbb947b570a544d0bf861dc85dba05641 (diff)
rpcd: update to git head
- introduces persistent null session to allow access to procedures without login - implements session.login procedure to support user logins via json-rpc git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37941 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/system')
-rw-r--r--package/system/rpcd/Makefile12
-rw-r--r--package/system/rpcd/files/rpcd.config7
2 files changed, 17 insertions, 2 deletions
diff --git a/package/system/rpcd/Makefile b/package/system/rpcd/Makefile
index e6bf3a9791..f61f93e0c3 100644
--- a/package/system/rpcd/Makefile
+++ b/package/system/rpcd/Makefile
@@ -8,13 +8,13 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=rpcd
-PKG_VERSION:=2013-09-09
+PKG_VERSION:=2013-09-11
PKG_RELEASE=$(PKG_SOURCE_VERSION)
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=git://nbd.name/luci2/rpcd.git
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
-PKG_SOURCE_VERSION:=22fbf13086653cba0c60d60ceb7baba2f33a034d
+PKG_SOURCE_VERSION:=ae63188069e433c20b8add7b0fba636f36551ed0
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
PKG_MAINTAINER:=Jo-Philipp Wich <jow@openwrt.org>
@@ -48,11 +48,19 @@ define Package/rpcd/description
functionality to frontend programs via JSON-RPC.
endef
+define Package/rpcd/conffiles
+/etc/config/rpcd
+endef
+
define Package/rpcd/install
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/rpcd.init $(1)/etc/init.d/rpcd
$(INSTALL_DIR) $(1)/sbin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/rpcd $(1)/sbin/rpcd
+ $(INSTALL_DIR) $(1)/usr/share/rpcd/acl.d
+ $(INSTALL_DATA) $(PKG_BUILD_DIR)/unauthenticated.json $(1)/usr/share/rpcd/acl.d/unauthenticated.json
+ $(INSTALL_DIR) $(1)/etc/config
+ $(INSTALL_CONF) ./files/rpcd.config $(1)/etc/config/rpcd
endef
diff --git a/package/system/rpcd/files/rpcd.config b/package/system/rpcd/files/rpcd.config
new file mode 100644
index 0000000000..499ea27628
--- /dev/null
+++ b/package/system/rpcd/files/rpcd.config
@@ -0,0 +1,7 @@
+
+config login
+ option username 'root'
+ option password '$p$root'
+ list read '*'
+ list write '*'
+