blob: 9b693ab524c4880e2a988b2e29d19f033f90e34e [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
Jan Kundráte950cf72024-09-06 17:46:11 +02005VELIA_DEPENDENCIES = docopt-cpp spdlog boost sdbus-cpp systemd sysrepo-cpp libnl json-for-modern-cpp date
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 \
Jan Kundrát7171a0a2021-02-18 21:49:37 +010011 -DNFT_EXECUTABLE=/usr/sbin/nft \
Jan Kundráta42931c2021-02-12 17:00:37 +010012 -DSSH_KEYGEN_EXECUTABLE=/usr/bin/ssh-keygen \
Václav Kubernát5bd567a2021-04-14 04:15:02 +020013 -DCHPASSWD_EXECUTABLE=/usr/sbin/chpasswd \
Tomáš Pecka73720dd2021-02-16 20:06:02 +010014 -DSYSTEMCTL_EXECUTABLE=/usr/bin/systemctl \
Jan Kundrát7171a0a2021-02-18 21:49:37 +010015 -DNETWORKCTL_EXECUTABLE=/usr/bin/networkctl \
16 -DHOSTNAMECTL_EXECUTABLE=/usr/bin/hostnamectl
Jan Kundráta42931c2021-02-12 17:00:37 +010017
Tomáš Peckac5897502020-07-13 16:49:28 +020018define VELIA_INSTALL_INIT_SYSTEMD
Jan Kundráte8a9fa72024-09-05 17:04:53 +020019 $(INSTALL) -D -m 0644 \
20 $(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
Jan Kundráte8a9fa72024-09-05 17:04:53 +020023 $(INSTALL) -D -m 0644 -t $(TARGET_DIR)/usr/lib/systemd/system/ \
24 $(BR2_EXTERNAL_CZECHLIGHT_PATH)/package/velia/velia-health.service \
Jan Kundráte8a9fa72024-09-05 17:04:53 +020025 $(BR2_EXTERNAL_CZECHLIGHT_PATH)/package/velia/velia-hardware-g2.service \
26 $(BR2_EXTERNAL_CZECHLIGHT_PATH)/package/velia/velia-system.service \
27 $(BR2_EXTERNAL_CZECHLIGHT_PATH)/package/velia/velia-firewall.service
Tomáš Peckac5897502020-07-13 16:49:28 +020028endef
29
30$(eval $(cmake-package))