Jan Kundrát | a67deea | 2017-03-21 20:21:07 +0100 | [diff] [blame] | 1 | CLA_SYSREPO_VERSION = master |
| 2 | CLA_SYSREPO_SITE = ssh://kundrat@cesnet.cz@gerrit.cesnet.cz:29418/CzechLight/cla-sysrepo |
| 3 | CLA_SYSREPO_SITE_METHOD = git |
| 4 | CLA_SYSREPO_INSTALL_STAGING = NO |
Jan Kundrát | 145a2f5 | 2020-10-16 20:33:24 +0000 | [diff] [blame] | 5 | CLA_SYSREPO_DEPENDENCIES = sysrepo docopt-cpp spdlog systemd libgpiod boost cppcodec libev |
Jan Kundrát | a67deea | 2017-03-21 20:21:07 +0100 | [diff] [blame] | 6 | CLA_SYSREPO_CONF_OPTS = -DTHREADS_PTHREAD_ARG:STRING=-pthread |
| 7 | CLA_SYSREPO_LICENSE_FILES = LICENSE.md |
| 8 | |
Jan Kundrát | 2f100fc | 2020-11-02 22:10:16 +0100 | [diff] [blame] | 9 | define CLA_SYSREPO_PREPARE_SERVICE |
Jan Kundrát | 2ccae18 | 2018-09-13 21:24:38 +0200 | [diff] [blame] | 10 | sed \ |
| 11 | -e "s/__MODEL__/$1/g" \ |
Jan Kundrát | 2ccae18 | 2018-09-13 21:24:38 +0200 | [diff] [blame] | 12 | $(BR2_EXTERNAL_CZECHLIGHT_PATH)/package/cla-sysrepo/cla-appliance.service.in \ |
| 13 | > $(TARGET_DIR)/usr/lib/systemd/system/cla-$1.service |
Jan Kundrát | 2ccae18 | 2018-09-13 21:24:38 +0200 | [diff] [blame] | 14 | ln -sf ../cla-$1.service \ |
| 15 | $(TARGET_DIR)/usr/lib/systemd/system/multi-user.target.wants/ |
| 16 | endef |
| 17 | |
| 18 | define CLA_SYSREPO_INSTALL_INIT_SYSTEMD |
Jan Kundrát | 2f100fc | 2020-11-02 22:10:16 +0100 | [diff] [blame] | 19 | $(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át | 2ccae18 | 2018-09-13 21:24:38 +0200 | [diff] [blame] | 30 | endef |
| 31 | |
Jan Kundrát | 58ac4ee | 2019-12-18 16:59:24 +0100 | [diff] [blame] | 32 | # FIXME: calibration-box really needs a drop-in file with increased timeout... |
| 33 | |
Jan Kundrát | a67deea | 2017-03-21 20:21:07 +0100 | [diff] [blame] | 34 | $(eval $(cmake-package)) |