From 1c7d6584a7811b7785ae5c1e378f14b5ba0971cf Mon Sep 17 00:00:00 2001 From: takeshi_hoshina Date: Mon, 2 Nov 2020 11:07:33 +0900 Subject: basesystem-jj recipes --- .../recipes-oisp/oisp-cli/oisp-cli_1.1.0.bb | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 external/meta-iot-cloud/recipes-oisp/oisp-cli/oisp-cli_1.1.0.bb (limited to 'external/meta-iot-cloud/recipes-oisp/oisp-cli/oisp-cli_1.1.0.bb') diff --git a/external/meta-iot-cloud/recipes-oisp/oisp-cli/oisp-cli_1.1.0.bb b/external/meta-iot-cloud/recipes-oisp/oisp-cli/oisp-cli_1.1.0.bb new file mode 100644 index 00000000..c9bbd839 --- /dev/null +++ b/external/meta-iot-cloud/recipes-oisp/oisp-cli/oisp-cli_1.1.0.bb @@ -0,0 +1,32 @@ +DESCRIPTION = "OISP Command Line Interface" +AUTHOR = "Intel" +HOMEPAGE = "https://github.com/Open-IoT-Service-Platform/oisp-cli" +LICENSE = "BSD-2-Clause" +LIC_FILES_CHKSUM = "file://LICENSE;md5=753cb46fee8d2addab0d40c31b2ff141" + +inherit npm + +ORGANIZATION = "open-iot-service-platform" + +SRC_URI = "\ + npm://registry.npmjs.org;package=@${ORGANIZATION}/${BPN};version=${PV} \ + npmsw://${THISDIR}/${BPN}/npm-shrinkwrap.json \ +" + +PR = "r0" + +S = "${WORKDIR}/npm" + +OISP_CONFIG ?= "${S}/config/config.json.template" + +do_install_append() { + # Copy config and create a symlink + install -d ${D}${sysconfdir}/oisp + install -m 0644 ${OISP_CONFIG} ${D}/${libdir}/node_modules/@${ORGANIZATION}/${BPN}/config/config.json + ln -s ${libdir}/node_modules/@${ORGANIZATION}/${BPN}/config/config.json ${D}/${sysconfdir}/oisp/cli.json +} + +FILES_${PN} += " \ + ${libdir}/node_modules/@${ORGANIZATION}/${BPN} \ + ${sysconfdir}/oisp \ +" \ No newline at end of file -- cgit 1.2.3-korg