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 |
Jan Kundrát | d0e8c62 | 2021-03-01 19:07:36 +0100 | [diff] [blame] | 5 | VELIA_DEPENDENCIES = docopt-cpp spdlog boost sdbus-cpp systemd sysrepo libnl |
Tomáš Pecka | c589750 | 2020-07-13 16:49:28 +0200 | [diff] [blame] | 6 | VELIA_LICENSE = Apache-2.0 |
| 7 | VELIA_LICENSE_FILES = LICENSE.md |
| 8 | |
Jan Kundrát | a42931c | 2021-02-12 17:00:37 +0100 | [diff] [blame] | 9 | VELIA_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}" \ |
Jan Kundrát | 7171a0a | 2021-02-18 21:49:37 +0100 | [diff] [blame] | 13 | -DNFT_EXECUTABLE=/usr/sbin/nft \ |
Jan Kundrát | a42931c | 2021-02-12 17:00:37 +0100 | [diff] [blame] | 14 | -DSSH_KEYGEN_EXECUTABLE=/usr/bin/ssh-keygen \ |
| 15 | -DCHPASSWD_EXECUTABLE=/usr/bin/chpasswd \ |
Tomáš Pecka | 73720dd | 2021-02-16 20:06:02 +0100 | [diff] [blame] | 16 | -DSYSTEMCTL_EXECUTABLE=/usr/bin/systemctl \ |
Jan Kundrát | 7171a0a | 2021-02-18 21:49:37 +0100 | [diff] [blame] | 17 | -DNETWORKCTL_EXECUTABLE=/usr/bin/networkctl \ |
| 18 | -DHOSTNAMECTL_EXECUTABLE=/usr/bin/hostnamectl |
Jan Kundrát | a42931c | 2021-02-12 17:00:37 +0100 | [diff] [blame] | 19 | |
Tomáš Pecka | 25aae68 | 2021-01-27 14:45:57 +0100 | [diff] [blame] | 20 | define VELIA_PREPARE_SERVICE |
| 21 | $(INSTALL) -D -m 0644 \ |
| 22 | $(BR2_EXTERNAL_CZECHLIGHT_PATH)/package/velia/$1.service \ |
| 23 | $(TARGET_DIR)/usr/lib/systemd/system/ |
| 24 | ln -sf ../$1.service $(TARGET_DIR)/usr/lib/systemd/system/multi-user.target.wants/ |
| 25 | endef |
| 26 | |
Tomáš Pecka | c589750 | 2020-07-13 16:49:28 +0200 | [diff] [blame] | 27 | define VELIA_INSTALL_INIT_SYSTEMD |
| 28 | mkdir -p $(TARGET_DIR)/usr/lib/systemd/system/multi-user.target.wants/ |
| 29 | $(INSTALL) -D -m 0644 \ |
Tomáš Pecka | c589750 | 2020-07-13 16:49:28 +0200 | [diff] [blame] | 30 | $(BR2_EXTERNAL_CZECHLIGHT_PATH)/package/velia/max_match_rules.conf \ |
| 31 | $(TARGET_DIR)/usr/share/dbus-1/system.d/ |
Tomáš Pecka | 25aae68 | 2021-01-27 14:45:57 +0100 | [diff] [blame] | 32 | |
| 33 | $(call VELIA_PREPARE_SERVICE,velia-health) |
Jan Kundrát | 811c0b0 | 2021-02-05 19:16:43 +0100 | [diff] [blame] | 34 | $(call VELIA_PREPARE_SERVICE,velia-hardware-g1) |
| 35 | $(call VELIA_PREPARE_SERVICE,velia-hardware-g2) |
Tomáš Pecka | 25aae68 | 2021-01-27 14:45:57 +0100 | [diff] [blame] | 36 | $(call VELIA_PREPARE_SERVICE,velia-system) |
Václav Kubernát | 22e240c | 2021-02-04 10:14:19 +0100 | [diff] [blame] | 37 | $(call VELIA_PREPARE_SERVICE,velia-firewall) |
Tomáš Pecka | c589750 | 2020-07-13 16:49:28 +0200 | [diff] [blame] | 38 | endef |
| 39 | |
| 40 | $(eval $(cmake-package)) |