blob: 41ee75ea8ee0ef367b198244bb3f289fe9839d4a [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átd0e8c622021-03-01 19:07:36 +01005VELIA_DEPENDENCIES = docopt-cpp spdlog boost sdbus-cpp systemd sysrepo libnl
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}" \
Jan Kundrát7171a0a2021-02-18 21:49:37 +010013 -DNFT_EXECUTABLE=/usr/sbin/nft \
Jan Kundráta42931c2021-02-12 17:00:37 +010014 -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 \
Jan Kundrát7171a0a2021-02-18 21:49:37 +010017 -DNETWORKCTL_EXECUTABLE=/usr/bin/networkctl \
18 -DHOSTNAMECTL_EXECUTABLE=/usr/bin/hostnamectl
Jan Kundráta42931c2021-02-12 17:00:37 +010019
Tomáš Pecka25aae682021-01-27 14:45:57 +010020define 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/
25endef
26
Tomáš Peckac5897502020-07-13 16:49:28 +020027define VELIA_INSTALL_INIT_SYSTEMD
28 mkdir -p $(TARGET_DIR)/usr/lib/systemd/system/multi-user.target.wants/
29 $(INSTALL) -D -m 0644 \
Tomáš Peckac5897502020-07-13 16:49:28 +020030 $(BR2_EXTERNAL_CZECHLIGHT_PATH)/package/velia/max_match_rules.conf \
31 $(TARGET_DIR)/usr/share/dbus-1/system.d/
Tomáš Pecka25aae682021-01-27 14:45:57 +010032
33 $(call VELIA_PREPARE_SERVICE,velia-health)
Jan Kundrát811c0b02021-02-05 19:16:43 +010034 $(call VELIA_PREPARE_SERVICE,velia-hardware-g1)
35 $(call VELIA_PREPARE_SERVICE,velia-hardware-g2)
Tomáš Pecka25aae682021-01-27 14:45:57 +010036 $(call VELIA_PREPARE_SERVICE,velia-system)
Václav Kubernát22e240c2021-02-04 10:14:19 +010037 $(call VELIA_PREPARE_SERVICE,velia-firewall)
Tomáš Peckac5897502020-07-13 16:49:28 +020038endef
39
40$(eval $(cmake-package))