diff --git a/luci2/luci2/share/acl.d/luci2.json b/luci2/luci2/share/acl.d/luci2.json index a33113f9a..f868deb5d 100644 --- a/luci2/luci2/share/acl.d/luci2.json +++ b/luci2/luci2/share/acl.d/luci2.json @@ -39,7 +39,8 @@ "phyname" ], "router": [ - "dslstats" + "dslstats", + "info" ], "system": [ "info", diff --git a/luciexpress/Makefile b/luciexpress/Makefile new file mode 100644 index 000000000..51b4aba7c --- /dev/null +++ b/luciexpress/Makefile @@ -0,0 +1,63 @@ +include $(TOPDIR)/rules.mk + + +PKG_NAME:=luciexpress +PKG_VERSION:=master +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=https://github.com/mkschreder/luci-express.git +PKG_SOURCE_PROTO:=git +PKG_SOURCE_VERSION:=b65b6daf24835844ea2d510a410bac9ff00b9f0a +PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) + +include $(INCLUDE_DIR)/package.mk +include $(INCLUDE_DIR)/cmake.mk + + +PKG_FIXUP:=autoreconf +PKG_INSTALL=1 + + +define Build/Configure + #(cd $(PKG_BUILD_DIR) && $(BASH) -x ./bootstrap) + $(call Build/Configure/Default) +endef + +define Package/luciexpress + SECTION:=luciexpress + CATEGORY:=LuCIexpress + TITLE:=LuCIexpress UI + DEPENDS:=+rpcd +rpcd-mod-iwinfo +uhttpd +uhttpd-mod-ubus +libubox +libubus +endef + +define Package/luciexpress/description + Provides the LuCIexpress web interface with standard functionality. +endef + +define Package/luciexpress/install + $(INSTALL_DIR) $(1)/www + $(CP) $(PKG_BUILD_DIR)/htdocs/* $(1)/www/ + $(INSTALL_DIR) $(1)/usr/share/rpcd + $(CP) $(PKG_BUILD_DIR)/share/* $(1)/usr/share/rpcd/ + $(INSTALL_DIR) $(1)/usr/lib/rpcd + $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/rpcd/luciexpress.so $(1)/usr/lib/rpcd/ + $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/rpcd/bwmon.so $(1)/usr/lib/rpcd/ + $(INSTALL_DIR) $(1)/usr/libexec $(1)/www/cgi-bin + $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/io/luciexpress-io $(1)/usr/libexec/ + $(LN) /usr/libexec/luciexpress-io $(1)/www/cgi-bin/luci-upload + $(LN) /usr/libexec/luciexpress-io $(1)/www/cgi-bin/luci-backup +endef + +define Package/luciexpress/postinst +#!/bin/sh + +if [ "$$(uci -q get uhttpd.main.ubus_prefix)" != "/ubus" ]; then + uci set uhttpd.main.ubus_prefix="/ubus" + uci commit uhttpd +fi + +exit 0 +endef + +$(eval $(call BuildPackage,luciexpress))