blob: cf3366ca64a2c63d1bf64b6bd651209eca5cad8f [file] [log] [blame]
Jan Kundráta67deea2017-03-21 20:21:07 +01001CLA_SYSREPO_VERSION = master
2CLA_SYSREPO_SITE = ssh://kundrat@cesnet.cz@gerrit.cesnet.cz:29418/CzechLight/cla-sysrepo
3CLA_SYSREPO_SITE_METHOD = git
4CLA_SYSREPO_INSTALL_STAGING = NO
Jan Kundrát145a2f52020-10-16 20:33:24 +00005CLA_SYSREPO_DEPENDENCIES = sysrepo docopt-cpp spdlog systemd libgpiod boost cppcodec libev
Jan Kundráta67deea2017-03-21 20:21:07 +01006CLA_SYSREPO_CONF_OPTS = -DTHREADS_PTHREAD_ARG:STRING=-pthread
7CLA_SYSREPO_LICENSE_FILES = LICENSE.md
8
Jan Kundrát2f100fc2020-11-02 22:10:16 +01009define CLA_SYSREPO_PREPARE_SERVICE
Jan Kundrát2ccae182018-09-13 21:24:38 +020010 sed \
11 -e "s/__MODEL__/$1/g" \
Jan Kundrát2ccae182018-09-13 21:24:38 +020012 $(BR2_EXTERNAL_CZECHLIGHT_PATH)/package/cla-sysrepo/cla-appliance.service.in \
13 > $(TARGET_DIR)/usr/lib/systemd/system/cla-$1.service
Jan Kundrát2ccae182018-09-13 21:24:38 +020014 ln -sf ../cla-$1.service \
15 $(TARGET_DIR)/usr/lib/systemd/system/multi-user.target.wants/
16endef
17
18define CLA_SYSREPO_INSTALL_INIT_SYSTEMD
Jan Kundrát2f100fc2020-11-02 22:10:16 +010019 $(INSTALL) -m 0755 -t $(TARGET_DIR)/usr/bin/ \
20 $(BR2_EXTERNAL_CZECHLIGHT_PATH)/package/cla-sysrepo/czechlight-install-yang.sh
21 mkdir -p $(TARGET_DIR)/usr/lib/systemd/system/multi-user.target.wants
22 $(INSTALL) -D -m 0644 -t $(TARGET_DIR)/usr/lib/systemd/system/ \
23 $(BR2_EXTERNAL_CZECHLIGHT_PATH)/package/cla-sysrepo/czechlight-install-yang.service
24
25 $(call CLA_SYSREPO_PREPARE_SERVICE,sdn-roadm-add-drop)
26 $(call CLA_SYSREPO_PREPARE_SERVICE,sdn-roadm-line)
27 $(call CLA_SYSREPO_PREPARE_SERVICE,sdn-roadm-coherent-a-d)
28 $(call CLA_SYSREPO_PREPARE_SERVICE,sdn-inline)
29 $(call CLA_SYSREPO_PREPARE_SERVICE,calibration-box)
Jan Kundrát2ccae182018-09-13 21:24:38 +020030endef
31
Jan Kundrát58ac4ee2019-12-18 16:59:24 +010032# FIXME: calibration-box really needs a drop-in file with increased timeout...
33
Jan Kundráta67deea2017-03-21 20:21:07 +010034$(eval $(cmake-package))