Add Grafana, AlertManager, vmutils
The *vmutils* package can be built from source easily, as its just a collection of Go applications. Grafana and Alertmanager are quite a bit more complicated because of their respective browser applications. In the interest of getting this project actually going, we'll just install the official binary releases of these (for now?).
This commit is contained in:
5
package/grafana/Config.in
Normal file
5
package/grafana/Config.in
Normal file
@@ -0,0 +1,5 @@
|
||||
config BR2_PACKAGE_GRAFANA
|
||||
bool "grafana"
|
||||
help
|
||||
Grafana
|
||||
|
||||
1
package/grafana/grafana.hash
Normal file
1
package/grafana/grafana.hash
Normal file
@@ -0,0 +1 @@
|
||||
sha256 2046f8e9c0b659d0e67f57d8a311ba714214e9616a41ffaba71c256d42914977 grafana-9.0.1.linux-arm64.tar.gz
|
||||
37
package/grafana/grafana.mk
Normal file
37
package/grafana/grafana.mk
Normal file
@@ -0,0 +1,37 @@
|
||||
###############################################################################
|
||||
#
|
||||
# Grafana
|
||||
#
|
||||
# Building Grafana is quite complicated, so we'll just install from the binary
|
||||
# package for now.
|
||||
###############################################################################
|
||||
|
||||
GRAFANA_VERSION = 9.0.1
|
||||
GRAFANA_SOURCE = grafana-$(GRAFANA_VERSION).linux-$(KERNEL_ARCH).tar.gz
|
||||
GRAFANA_SITE = https://dl.grafana.com/oss/release
|
||||
GRAFANA_LICENSE = Apache-2.0
|
||||
GRAFANA_LICENSE_FILES = LICENSE
|
||||
|
||||
GRAFANA_INSTALL_TARGET = YES
|
||||
|
||||
define GRAFANA_INSTALL_TARGET_CMDS
|
||||
$(INSTALL) -m u=rwx,go=rx $(@D)/bin/grafana-cli $(TARGET_DIR)/usr/sbin
|
||||
$(INSTALL) -m u=rwx,go=rx $(@D)/bin/grafana-server $(TARGET_DIR)/usr/sbin
|
||||
$(INSTALL) -d $(TARGET_DIR)/usr/share/grafana
|
||||
cp -a \
|
||||
$(@D)/conf \
|
||||
$(@D)/plugins-bundled \
|
||||
$(@D)/public \
|
||||
$(@D)/scripts \
|
||||
$(@D)/LICENSE \
|
||||
$(@D)/NOTICE.md \
|
||||
$(@D)/README.md \
|
||||
$(@D)/VERSION \
|
||||
$(TARGET_DIR)/usr/share/grafana/
|
||||
endef
|
||||
|
||||
define GRAFANA_USERS
|
||||
grafana -1 grafana -1 * /usr/share/grafana /sbin/nologin - grafana user account
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
Reference in New Issue
Block a user