blob: a19367c194669c4ae06d6e5337ad6ac996b53c5a [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)
Jan Kundrátf25a84f2021-03-21 13:18:47 +010026 $(call CLA_SYSREPO_PREPARE_SERVICE,sdn-roadm-hires-add-drop)
Jan Kundrát2f100fc2020-11-02 22:10:16 +010027 $(call CLA_SYSREPO_PREPARE_SERVICE,sdn-roadm-line)
28 $(call CLA_SYSREPO_PREPARE_SERVICE,sdn-roadm-coherent-a-d)
29 $(call CLA_SYSREPO_PREPARE_SERVICE,sdn-inline)
30 $(call CLA_SYSREPO_PREPARE_SERVICE,calibration-box)
Jan Kundrát2ccae182018-09-13 21:24:38 +020031endef
32
Jan Kundrát58ac4ee2019-12-18 16:59:24 +010033# FIXME: calibration-box really needs a drop-in file with increased timeout...
34
Jan Kundráta67deea2017-03-21 20:21:07 +010035$(eval $(cmake-package))