1
1
mirror of https://github.com/OpenVoiceOS/OpenVoiceOS synced 2024-12-14 09:55:13 +01:00
OpenVoiceOS/buildroot-external/package/mycroft-service/mycroft-service.mk
Peter Steenbergen 3bbdddfa01 MycroftOS: Multiple fixes, tweakes, changes and/or reverts.
Basically a bunch of staged stuff of before the upgrade of
buildroot and mycroft. If I remember it all correctly;

- Change the folder permissions setup from device_table to
  systemd.
- Remove the mycroft user setup from the mycroft.service
  package into a systemwide buildroot user_table.txt
- Fix respeaker stuff for systemd system
- Fix sudo system for the mycroft user
- Allow mycroft to SSH into the system. Disallow root login.
- Probably some other fixes and tweaks I forgot about....
2019-09-09 15:25:51 +02:00

24 lines
929 B
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_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))