* Add OS Agent * Do go vendoring as part of the buildroot build * Allow to skip confirmation in datactl
28 lines
872 B
Makefile
28 lines
872 B
Makefile
################################################################################
|
|
#
|
|
# 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))
|