blob: a32c38eabf6953989c4e9b6b30a5d29811c8f8aa [file] [log] [blame]
Tomáš Peckac5897502020-07-13 16:49:28 +02001VELIA_VERSION = master
2VELIA_SITE = https://gerrit.cesnet.cz/CzechLight/velia
3VELIA_SITE_METHOD = git
4VELIA_INSTALL_STAGING = NO
Tomáš Pecka75a35642020-11-25 11:00:50 +01005VELIA_DEPENDENCIES = docopt-cpp spdlog boost sdbus-cpp systemd sysrepo
Tomáš Peckac5897502020-07-13 16:49:28 +02006VELIA_CONF_OPTS = -DTHREADS_PTHREAD_ARG:STRING=-pthread
7VELIA_LICENSE = Apache-2.0
8VELIA_LICENSE_FILES = LICENSE.md
9
Tomáš Pecka25aae682021-01-27 14:45:57 +010010define VELIA_PREPARE_SERVICE
11 $(INSTALL) -D -m 0644 \
12 $(BR2_EXTERNAL_CZECHLIGHT_PATH)/package/velia/$1.service \
13 $(TARGET_DIR)/usr/lib/systemd/system/
14 ln -sf ../$1.service $(TARGET_DIR)/usr/lib/systemd/system/multi-user.target.wants/
15endef
16
Tomáš Peckac5897502020-07-13 16:49:28 +020017define VELIA_INSTALL_INIT_SYSTEMD
18 mkdir -p $(TARGET_DIR)/usr/lib/systemd/system/multi-user.target.wants/
19 $(INSTALL) -D -m 0644 \
Tomáš Peckac5897502020-07-13 16:49:28 +020020 $(BR2_EXTERNAL_CZECHLIGHT_PATH)/package/velia/max_match_rules.conf \
21 $(TARGET_DIR)/usr/share/dbus-1/system.d/
Tomáš Pecka25aae682021-01-27 14:45:57 +010022
23 $(call VELIA_PREPARE_SERVICE,velia-health)
24 $(call VELIA_PREPARE_SERVICE,velia-hardware)
25 $(call VELIA_PREPARE_SERVICE,velia-system)
Tomáš Peckac5897502020-07-13 16:49:28 +020026endef
27
28$(eval $(cmake-package))