| 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_LICENSE = Apache-2.0 |
| VELIA_LICENSE_FILES = LICENSE.md |
| |
| VELIA_CONF_OPTS = \ |
| -DTHREADS_PTHREAD_ARG:STRING=-pthread \ |
| -DVELIA_BACKUP_ETC_SHADOW=/cfg/etc/shadow \ |
| -DVELIA_AUTHORIZED_KEYS_FORMAT="/cfg/ssh-user-auth/{USER}" \ |
| -DNFT_EXECUTABLE=/usr/bin/nft \ |
| -DSSH_KEYGEN_EXECUTABLE=/usr/bin/ssh-keygen \ |
| -DCHPASSWD_EXECUTABLE=/usr/bin/chpasswd \ |
| -DSYSTEMCTL_EXECUTABLE=/usr/bin/systemctl \ |
| -DNETWORKCTL_EXECUTABLE=/usr/bin/networkctl |
| |
| 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)) |