diff --git a/recipes-connectivity/suite-bootstrapping/files/config.json b/recipes-connectivity/suite-bootstrapping/files/config.json deleted file mode 100644 index 2765187..0000000 --- a/recipes-connectivity/suite-bootstrapping/files/config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "caCert": "@SB_CFG_DD@/suite-bootstrapping/iothub.crt", - "provisioningFile": "@SB_CFG_DD@/suite-bootstrapping/provisioning.json", - "logFile": "@SB_LOG_DD@/suite-bootstrapping/suite-bootstrapping.log" -} diff --git a/recipes-connectivity/suite-bootstrapping/files/service.template b/recipes-connectivity/suite-bootstrapping/files/service.template deleted file mode 100644 index beb1773..0000000 --- a/recipes-connectivity/suite-bootstrapping/files/service.template +++ /dev/null @@ -1,14 +0,0 @@ -[Unit] -Description=Eclipse Kanto - Suite Bootstrapping -Documentation=https://eclipse.org/kanto/docs/ -After=network.target mosquitto.service -Requires=network.target -Requires=mosquitto.service - -[Service] -Type=simple -ExecStart=@SB_BIN_DD@/suite-bootstrapping -configFile @SB_CFG_DD@/suite-bootstrapping/config.json -Restart=always - -[Install] -WantedBy=multi-user.target diff --git a/recipes-connectivity/suite-bootstrapping/suite-bootstrapping.inc b/recipes-connectivity/suite-bootstrapping/suite-bootstrapping.inc deleted file mode 100644 index d4d8666..0000000 --- a/recipes-connectivity/suite-bootstrapping/suite-bootstrapping.inc +++ /dev/null @@ -1,9 +0,0 @@ -# Common configuration variables to set the binaries and resources allocation directories for Eclipse Kanto suite bootstrapping component -# The destination directory where the required configuration files for the proper connectivity establishment of the suite bootstrapping will be placed -SB_CFG_DD ?= "${sysconfdir}" -# The destination directory where the generated service file will be placed -SB_SYSUNIT_DD ?= "${systemd_unitdir}/system" -# The destination directory where the suite bootstrapping binaries will be placed -SB_BIN_DD ?= "${bindir}" -# The destination directory where the suite bootstrapping logs will be placed -SB_LOG_DD ?= "${localstatedir}/log" diff --git a/recipes-connectivity/suite-bootstrapping/suite-bootstrapping_git.bb b/recipes-connectivity/suite-bootstrapping/suite-bootstrapping_git.bb deleted file mode 100644 index e488121..0000000 --- a/recipes-connectivity/suite-bootstrapping/suite-bootstrapping_git.bb +++ /dev/null @@ -1,77 +0,0 @@ -DESCRIPTION = "Eclipse Kanto - Suite Bootstrapping" - -LICENSE = "EPL-2.0 | Apache-2.0" -LIC_FILES_CHKSUM = "file://src/${GO_IMPORT}/LICENSE;md5=54cd967551e55d39f55006d3344c22fc" - -SRC_URI = "git://github.com/eclipse-kanto/suite-bootstrapping;protocol=https;branch=main \ - file://config.json \ - file://service.template \ - " - -SRCREV = "${AUTOREV}" - -PV = "0.1.0-git${SRCPV}" - -GO_IMPORT = "github.com/eclipse-kanto/suite-bootstrapping" -GO_INSTALL = "${GO_IMPORT}/cmd/bootstrapping" - -require suite-bootstrapping.inc - -inherit go-mod -inherit systemd - -SYSTEMD_AUTO_ENABLE = "enable" -SYSTEMD_PACKAGES = "${@bb.utils.contains('DISTRO_FEATURES','systemd','${PN}','',d)}" -SYSTEMD_SERVICE:${PN} = "${@bb.utils.contains('DISTRO_FEATURES','systemd','suite-bootstrapping.service','',d)}" - -# workaround for network issue -do_compile[network] = "1" - -FILES:${PN} += "${SB_SYSUNIT_DD}/suite-bootstrapping.service" -FILES:${PN} += "${SB_BIN_DD}/suite-bootstrapping" -# ensure all additional resources are properly packed in the resulting package if provided -FILES:${PN} += "${SB_CFG_DD}/suite-bootstrapping/config.json" -FILES:${PN} += "${SB_CFG_DD}/suite-bootstrapping/provisioning.json" -FILES:${PN} += "${SB_CFG_DD}/suite-bootstrapping/iothub.crt" - -RDEPENDS:${PN} += "mosquitto" - -PROVIDES:${PN} += "kanto/suite-bootstrapping" -RPROVIDES:${PN} += "kanto/suite-bootstrapping" - -do_install() { - install -d "${D}/${SB_BIN_DD}" - - install -m 0755 "${GO_BUILD_BINDIR}/bootstrapping" "${D}${SB_BIN_DD}/suite-bootstrapping" - - if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then - install -d ${D}${SB_SYSUNIT_DD} - - # suite-bootstrapping - install -d ${D}${SB_CFG_DD}/suite-bootstrapping - - # iothub.crt - install -m 0644 ${S}/src/${GO_IMPORT}/cmd/bootstrapping/iothub.crt ${D}${SB_CFG_DD}/suite-bootstrapping - - # config.json - install -m 0644 ${WORKDIR}/config.json ${D}${SB_CFG_DD}/suite-bootstrapping - - # service.template as service - install -m 0644 ${WORKDIR}/service.template ${D}${SB_SYSUNIT_DD}/suite-bootstrapping.service - - # fill in the suite-bootstrapping systemd service template with the custom configs provided - sed -e 's,@SB_BIN_DD@,${SB_BIN_DD},g' \ - -e 's,@SB_CFG_DD@,${SB_CFG_DD},g' \ - -i ${D}${SB_SYSUNIT_DD}/suite-bootstrapping.service - - # fill in the config.json template with the custom configs provided - sed -e 's,@SB_CFG_DD@,${SB_CFG_DD},g' \ - -e 's,@SB_LOG_DD@,${SB_LOG_DD},g' \ - -i ${D}${SB_CFG_DD}/suite-bootstrapping/config.json - fi - - # provisioning.json - if [ -f "${THISDIR}/files/provisioning.json" ]; then - install -m 0644 ${THISDIR}/files/provisioning.json ${D}${SB_CFG_DD}/suite-bootstrapping - fi -}