Tomáš Pecka | c589750 | 2020-07-13 16:49:28 +0200 | [diff] [blame] | 1 | VELIA_VERSION = master |
| 2 | VELIA_SITE = https://gerrit.cesnet.cz/CzechLight/velia |
| 3 | VELIA_SITE_METHOD = git |
| 4 | VELIA_INSTALL_STAGING = NO |
Tomáš Pecka | 75a3564 | 2020-11-25 11:00:50 +0100 | [diff] [blame] | 5 | VELIA_DEPENDENCIES = docopt-cpp spdlog boost sdbus-cpp systemd sysrepo |
Tomáš Pecka | c589750 | 2020-07-13 16:49:28 +0200 | [diff] [blame] | 6 | VELIA_CONF_OPTS = -DTHREADS_PTHREAD_ARG:STRING=-pthread |
| 7 | VELIA_LICENSE = Apache-2.0 |
| 8 | VELIA_LICENSE_FILES = LICENSE.md |
| 9 | |
Tomáš Pecka | 25aae68 | 2021-01-27 14:45:57 +0100 | [diff] [blame] | 10 | define 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/ |
| 15 | endef |
| 16 | |
Tomáš Pecka | c589750 | 2020-07-13 16:49:28 +0200 | [diff] [blame] | 17 | define VELIA_INSTALL_INIT_SYSTEMD |
| 18 | mkdir -p $(TARGET_DIR)/usr/lib/systemd/system/multi-user.target.wants/ |
| 19 | $(INSTALL) -D -m 0644 \ |
Tomáš Pecka | c589750 | 2020-07-13 16:49:28 +0200 | [diff] [blame] | 20 | $(BR2_EXTERNAL_CZECHLIGHT_PATH)/package/velia/max_match_rules.conf \ |
| 21 | $(TARGET_DIR)/usr/share/dbus-1/system.d/ |
Tomáš Pecka | 25aae68 | 2021-01-27 14:45:57 +0100 | [diff] [blame] | 22 | |
| 23 | $(call VELIA_PREPARE_SERVICE,velia-health) |
Jan Kundrát | 811c0b0 | 2021-02-05 19:16:43 +0100 | [diff] [blame] | 24 | $(call VELIA_PREPARE_SERVICE,velia-hardware-g1) |
| 25 | $(call VELIA_PREPARE_SERVICE,velia-hardware-g2) |
Tomáš Pecka | 25aae68 | 2021-01-27 14:45:57 +0100 | [diff] [blame] | 26 | $(call VELIA_PREPARE_SERVICE,velia-system) |
Tomáš Pecka | c589750 | 2020-07-13 16:49:28 +0200 | [diff] [blame] | 27 | endef |
| 28 | |
| 29 | $(eval $(cmake-package)) |