1
1
mirror of https://github.com/OpenVoiceOS/OpenVoiceOS synced 2024-12-15 10:28:50 +01:00
OpenVoiceOS/buildroot-external/package/mycroft-service/mycroft-service.mk
Peter Steenbergen 8506d56142 MycroftOS: Small changes for the mycroft user
- No passwd / just a system user just like pulse
- Therefor also no SSH login needed.
2019-02-07 11:13:33 +01:00

28 lines
1.0 KiB
Makefile

################################################################################
#
# mycroft-service
#
################################################################################
MYCROFT_SERVICE_VERSION = 0.1.0
MYCROFT_SERVICE_SITE = $(BR2_EXTERNAL_MYCROFTOS_PATH)/package/mycroft-service
MYCROFT_SERVICE_SITE_METHOD = local
MYCROFT_SERVICE_LICENSE = Apache License 2.0
MYCROFT_SERVICE_LICENSE_FILES = LICENSE
define MYCROFT_SERVICE_USERS
mycroft -1 mycroft -1 * /home/mycroft /bin/sh audio,pulse-access
endef
define MYCROFT_SERVICE_INSTALL_TARGET_CMDS
$(INSTALL) -m 0755 $(@D)/start-mycroft.sh $(TARGET_DIR)/usr/bin/
$(INSTALL) -m 0755 $(@D)/stop-mycroft.sh $(TARGET_DIR)/usr/bin/
$(INSTALL) -D -m 644 $(@D)/mycroft.service \
$(TARGET_DIR)/usr/lib/systemd/system/mycroft.service
mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
ln -fs ../../../../usr/lib/systemd/system/mycroft.service \
$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/mycroft.service
endef
$(eval $(generic-package))