Add OS agent (#1269)
* Add OS Agent * Do go vendoring as part of the buildroot build * Allow to skip confirmation in datactl
This commit is contained in:
4
buildroot-external/package/os-agent/Config.in
Normal file
4
buildroot-external/package/os-agent/Config.in
Normal file
@@ -0,0 +1,4 @@
|
||||
config BR2_PACKAGE_OS_AGENT
|
||||
bool "Home Assistant OS Agent"
|
||||
help
|
||||
Install the Home Assistant OS Agent
|
||||
27
buildroot-external/package/os-agent/os-agent.mk
Normal file
27
buildroot-external/package/os-agent/os-agent.mk
Normal file
@@ -0,0 +1,27 @@
|
||||
################################################################################
|
||||
#
|
||||
# foo
|
||||
#
|
||||
################################################################################
|
||||
|
||||
OS_AGENT_VERSION = 0cb548c6acfb7e0a9542e6c85ffbce626af04cce
|
||||
OS_AGENT_SITE = $(call github,home-assistant,os-agent,$(OS_AGENT_VERSION))
|
||||
OS_AGENT_LICENSE = Apache License 2.0
|
||||
OS_AGENT_LICENSE_FILES = LICENSE
|
||||
OS_AGENT_GOMOD = github.com/home-assistant/os-agent
|
||||
|
||||
define OS_AGENT_INSTALL_INIT_SYSTEMD
|
||||
$(INSTALL) -D -m 0644 $(@D)/contrib/io.homeassistant.conf \
|
||||
$(TARGET_DIR)/etc/dbus-1/system.d/io.homeassistant.conf
|
||||
$(INSTALL) -D -m 0644 $(@D)/contrib/haos-agent.service \
|
||||
$(TARGET_DIR)/usr/lib/systemd/system/haos-agent.service
|
||||
endef
|
||||
|
||||
define OS_AGENT_GO_VENDORING
|
||||
(cd $(@D); \
|
||||
$(HOST_DIR)/bin/go mod vendor)
|
||||
endef
|
||||
|
||||
OS_AGENT_POST_PATCH_HOOKS += OS_AGENT_GO_VENDORING
|
||||
|
||||
$(eval $(golang-package))
|
||||
Reference in New Issue
Block a user