Added luciexpress into the main project tree

This commit is contained in:
Martin Schröder 2015-04-17 16:48:27 +02:00 committed by Martin Schröder
parent eab1e59da3
commit 1be2caf813
2 changed files with 65 additions and 1 deletions

View file

@ -39,7 +39,8 @@
"phyname" "phyname"
], ],
"router": [ "router": [
"dslstats" "dslstats",
"info"
], ],
"system": [ "system": [
"info", "info",

63
luciexpress/Makefile Normal file
View file

@ -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))