blob: 232a962b35013b6fd91d7782920bc1522fb4dafc [file] [log] [blame]
VELIA_VERSION = master
VELIA_SITE = https://gerrit.cesnet.cz/CzechLight/velia
VELIA_SITE_METHOD = git
VELIA_INSTALL_STAGING = NO
VELIA_DEPENDENCIES = docopt-cpp spdlog boost sdbus-cpp systemd sysrepo
VELIA_CONF_OPTS = -DTHREADS_PTHREAD_ARG:STRING=-pthread
VELIA_LICENSE = Apache-2.0
VELIA_LICENSE_FILES = LICENSE.md
define VELIA_PREPARE_SERVICE
$(INSTALL) -D -m 0644 \
$(BR2_EXTERNAL_CZECHLIGHT_PATH)/package/velia/$1.service \
$(TARGET_DIR)/usr/lib/systemd/system/
ln -sf ../$1.service $(TARGET_DIR)/usr/lib/systemd/system/multi-user.target.wants/
endef
define VELIA_INSTALL_INIT_SYSTEMD
mkdir -p $(TARGET_DIR)/usr/lib/systemd/system/multi-user.target.wants/
$(INSTALL) -D -m 0644 \
$(BR2_EXTERNAL_CZECHLIGHT_PATH)/package/velia/max_match_rules.conf \
$(TARGET_DIR)/usr/share/dbus-1/system.d/
$(call VELIA_PREPARE_SERVICE,velia-health)
$(call VELIA_PREPARE_SERVICE,velia-hardware-g1)
$(call VELIA_PREPARE_SERVICE,velia-hardware-g2)
$(call VELIA_PREPARE_SERVICE,velia-system)
endef
$(eval $(cmake-package))