2018-05-04 11:21:59 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# mender
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
MENDER_VERSION = 1.4.0
|
|
|
|
MENDER_SITE = $(call github,mendersoftware,mender,$(MENDER_VERSION))
|
|
|
|
|
|
|
|
define MENDER_INSTALL_CONFIG_FILES
|
2018-08-20 15:09:04 +02:00
|
|
|
$(INSTALL) -d -m 755 $(TARGET_DIR)/etc/mender/scripts
|
|
|
|
echo -n "2" > $(TARGET_DIR)/etc/mender/scripts/version
|
|
|
|
|
2018-05-04 11:21:59 +02:00
|
|
|
$(INSTALL) -D -m 0644 package/mender/mender.conf \
|
|
|
|
$(TARGET_DIR)/etc/mender/mender.conf
|
|
|
|
$(INSTALL) -D -m 0644 package/mender/tenant.conf \
|
|
|
|
$(TARGET_DIR)/etc/mender/tenant.conf
|
|
|
|
$(INSTALL) -D -m 0644 package/mender/server.crt \
|
|
|
|
$(TARGET_DIR)/etc/mender/server.crt
|
2018-08-20 15:09:01 +02:00
|
|
|
|
2018-05-04 11:21:59 +02:00
|
|
|
$(INSTALL) -D -m 0755 package/mender/mender-device-identity \
|
2018-08-20 15:09:01 +02:00
|
|
|
$(TARGET_DIR)/usr/share/mender/identity/mender-device-identity
|
2018-05-04 11:21:59 +02:00
|
|
|
$(INSTALL) -D -m 0755 package/mender/mender-inventory-network \
|
2018-08-20 15:09:01 +02:00
|
|
|
$(TARGET_DIR)/usr/share/mender/inventory/mender-inventory-network
|
2018-05-04 11:21:59 +02:00
|
|
|
$(INSTALL) -D -m 0755 package/mender/mender-inventory-hostinfo \
|
2018-08-20 15:09:01 +02:00
|
|
|
$(TARGET_DIR)/usr/share/mender/inventory/mender-inventory-hostinfo
|
2018-05-04 11:21:59 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
MENDER_POST_INSTALL_TARGET_HOOKS += MENDER_INSTALL_CONFIG_FILES
|
|
|
|
|
|
|
|
define MENDER_INSTALL_INIT_SYSTEMD
|
|
|
|
$(INSTALL) -D -m 0644 package/mender/mender.service \
|
|
|
|
$(TARGET_DIR)/usr/lib/systemd/system/mender.service
|
|
|
|
mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
|
|
|
|
ln -fs ../../../../usr/lib/systemd/system/mender.service \
|
|
|
|
$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/mender.service
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(golang-package))
|