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:
2022-06-26 12:35:12 -05:00
parent a9d8a71a92
commit 5a9e9c0597
10 changed files with 215 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
config BR2_PACKAGE_GRAFANA
bool "grafana"
help
Grafana

View File

@@ -0,0 +1 @@
sha256 2046f8e9c0b659d0e67f57d8a311ba714214e9616a41ffaba71c256d42914977 grafana-9.0.1.linux-arm64.tar.gz

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