blob: eda5efb44843f369e9639059b4f3986bbd210251 [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_LICENSE = Apache-2.0
7VELIA_LICENSE_FILES = LICENSE.md
8
Jan Kundráta42931c2021-02-12 17:00:37 +01009VELIA_CONF_OPTS = \
10 -DTHREADS_PTHREAD_ARG:STRING=-pthread \
11 -DVELIA_BACKUP_ETC_SHADOW=/cfg/etc/shadow \
12 -DVELIA_AUTHORIZED_KEYS_FORMAT="/cfg/ssh-user-auth/{USER}" \
13 -DNFT_EXECUTABLE=/usr/bin/nft \
14 -DSSH_KEYGEN_EXECUTABLE=/usr/bin/ssh-keygen \
15 -DCHPASSWD_EXECUTABLE=/usr/bin/chpasswd \
Tomáš Pecka73720dd2021-02-16 20:06:02 +010016 -DSYSTEMCTL_EXECUTABLE=/usr/bin/systemctl \
17 -DNETWORKCTL_EXECUTABLE=/usr/bin/networkctl
Jan Kundráta42931c2021-02-12 17:00:37 +010018
Tomáš Pecka25aae682021-01-27 14:45:57 +010019define VELIA_PREPARE_SERVICE
20 $(INSTALL) -D -m 0644 \
21 $(BR2_EXTERNAL_CZECHLIGHT_PATH)/package/velia/$1.service \
22 $(TARGET_DIR)/usr/lib/systemd/system/
23 ln -sf ../$1.service $(TARGET_DIR)/usr/lib/systemd/system/multi-user.target.wants/
24endef
25
Tomáš Peckac5897502020-07-13 16:49:28 +020026define VELIA_INSTALL_INIT_SYSTEMD
27 mkdir -p $(TARGET_DIR)/usr/lib/systemd/system/multi-user.target.wants/
28 $(INSTALL) -D -m 0644 \
Tomáš Peckac5897502020-07-13 16:49:28 +020029 $(BR2_EXTERNAL_CZECHLIGHT_PATH)/package/velia/max_match_rules.conf \
30 $(TARGET_DIR)/usr/share/dbus-1/system.d/
Tomáš Pecka25aae682021-01-27 14:45:57 +010031
32 $(call VELIA_PREPARE_SERVICE,velia-health)
Jan Kundrát811c0b02021-02-05 19:16:43 +010033 $(call VELIA_PREPARE_SERVICE,velia-hardware-g1)
34 $(call VELIA_PREPARE_SERVICE,velia-hardware-g2)
Tomáš Pecka25aae682021-01-27 14:45:57 +010035 $(call VELIA_PREPARE_SERVICE,velia-system)
Tomáš Peckac5897502020-07-13 16:49:28 +020036endef
37
38$(eval $(cmake-package))