Add stub gluon-status-page package
This commit is contained in:
parent
5bb4cf4e3a
commit
869f81d12e
37
package/gluon-status-page/Makefile
Normal file
37
package/gluon-status-page/Makefile
Normal file
@ -0,0 +1,37 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=gluon-status-page
|
||||
PKG_VERSION:=1
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/gluon-status-page
|
||||
SECTION:=gluon
|
||||
CATEGORY:=Gluon
|
||||
TITLE:=Adds a status page showing information about the node.
|
||||
DEPENDS:=+gluon-core +uhttpd
|
||||
endef
|
||||
|
||||
define Package/gluon-status-page/description
|
||||
Adds a status page showing information about the node.
|
||||
Especially useful in combination with the next-node feature.
|
||||
endef
|
||||
|
||||
define Build/Prepare
|
||||
mkdir -p $(PKG_BUILD_DIR)
|
||||
endef
|
||||
|
||||
define Build/Configure
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
endef
|
||||
|
||||
define Package/gluon-status-page/install
|
||||
$(CP) ./files/* $(1)/
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,gluon-status-page))
|
@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>Status page ‒ TODO</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>TODO</p>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
|
||||
uci batch <<-EOF
|
||||
delete uhttpd.main.listen_http
|
||||
add_list uhttpd.main.listen_http=0.0.0.0:80
|
||||
add_list uhttpd.main.listen_http=[::]:80
|
||||
|
||||
delete uhttpd.main.listen_https
|
||||
|
||||
set uhttpd.main.home=/lib/gluon/status-page/www
|
||||
|
||||
commit uhttpd
|
||||
EOF
|
Loading…
Reference in New Issue
Block a user