mirror of
https://github.com/OpenVoiceOS/OpenVoiceOS
synced 2024-12-14 09:55:13 +01:00
3bbdddfa01
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....
24 lines
929 B
Makefile
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))
|