Signed-off-by: William Fleurant <meshnet@protonmail.com>
PKG_NAME:=luci-app-cjdns
PKG_VERSION:=1.3
-PKG_RELEASE:=7
+PKG_RELEASE:=8
PKG_MAINTAINER:=William Fleurant <meshnet@protonmail.com>
PKG_LICENSE:=GPL-3.0-or-later
endef
define Package/luci-app-cjdns/install
- $(INSTALL_DIR) $(1)/usr/lib/lua/luci
+ $(INSTALL_DIR) $(1)/usr/lib/lua/luci $(1)/usr/share/rpcd/acl.d
$(CP) ./luasrc/* $(1)/usr/lib/lua/luci
+ $(CP) ./files/luci-app-cjdns.json $(1)/usr/share/rpcd/acl.d
endef
$(eval $(call BuildPackage,luci-app-cjdns))
--- /dev/null
+{
+ "luci-app-cjdns": {
+ "description": "Grant access to LuCI app cjdns",
+ "read": {
+ "uci": [ "cjdns" ]
+ },
+ "write": {
+ "file": {
+ "/usr/bin/cjdrouteconf": [ "exec" ]
+ },
+ "uci": [ "cjdns" ]
+ }
+ }
+}
+