X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=meta-starlingx%2Fmeta-stx-cloud%2Frecipes-extended%2Fregistry-token-server%2Fregistry-token-server_git.bb;fp=meta-starlingx%2Fmeta-stx-cloud%2Frecipes-extended%2Fregistry-token-server%2Fregistry-token-server_git.bb;h=0000000000000000000000000000000000000000;hb=6fc6934434f70595536a387ece31bc30141cafb5;hp=ffd5bb7954b8a87274094e0bcc00b054ab2f68d2;hpb=eb1e26510491ba49de693ab3b0498edcb06be6c5;p=pti%2Frtp.git diff --git a/meta-starlingx/meta-stx-cloud/recipes-extended/registry-token-server/registry-token-server_git.bb b/meta-starlingx/meta-stx-cloud/recipes-extended/registry-token-server/registry-token-server_git.bb deleted file mode 100644 index ffd5bb7..0000000 --- a/meta-starlingx/meta-stx-cloud/recipes-extended/registry-token-server/registry-token-server_git.bb +++ /dev/null @@ -1,74 +0,0 @@ - -DESCRIPTION = "StarlingX distributedcloud packages collection" -HOMEPAGE = "https://opendev.org/starlingx" -SECTION = "network" -LICENSE = "Apache-2.0" -LIC_FILES_CHKSUM = "file://src/registry-token-server/registry-token-server/src/LICENSE;md5=d2794c0df5b907fdace235a619d80314" - -PROTOCOL = "https" -BRANCH = "r/stx.3.0" -SRCNAME = "containers" -SRCREV = "1a4b803e946b488c1f3adb25ab0614d1b0c3c9b8" -PV = "1.0.0+git${SRCPV}" -S = "${WORKDIR}/git" - -SRC_URI = "git://opendev.org/starlingx/${SRCNAME}.git;protocol=${PROTOCOL};rev=${SRCREV};branch=${BRANCH}" - -GO_IMPORT = "registry-token-server" - -RDEPENDS_${PN}-dev_append = " \ - systemd \ - " - -DEPENDS += "\ - go-logrus \ - docker-distribution \ - go-libtrust \ - go-patricia \ - go-mux \ - go-context \ - go-phercloud \ - " - -RDEPENDS_${PN} = " \ - docker-distribution \ - docker-ce \ - " - -inherit go goarch ${@bb.utils.contains('VIRTUAL-RUNTIME_init_manager','systemd','systemd','', d)} - -do_compile() { - mkdir -p _build/src - ln -sfn ${S}/src/registry-token-server/registry-token-server/src/ ./_build/src/registry-token-server - - # Pass the needed cflags/ldflags so that cgo - # can find the needed headers files and libraries - export GOARCH=${TARGET_GOARCH} - export CGO_ENABLED="1" - export CGO_CFLAGS="${CFLAGS} --sysroot=${STAGING_DIR_TARGET}" - export CGO_LDFLAGS="${LDFLAGS} --sysroot=${STAGING_DIR_TARGET}" - - export GOPATH="${WORKDIR}/build/_build:${STAGING_DIR_TARGET}/${prefix}/local/go" - cd _build/src/${GO_IMPORT} - #oe_runmake registry-token-server - export GOROOT=${STAGING_DIR_TARGET}/${prefix}/local/go - go build -o ${WORKDIR}/build/bin/registry-token-server registry-token-server -} - -SYSTEMD_PACKAGES = "${PN}" -SYSTEMD_SERVICE_${PN} = "registry-token-server.service" -SYSTEMD_AUTO_ENABLE = "disable" - -do_install() { - SRCPATH="${S}/src/registry-token-server/registry-token-server/centos/files" - install -d ${D}/${bindir} - install -m 0755 bin/registry-token-server ${D}/${bindir} - install -d -m 0755 ${D}/${sysconfdir}/registry-token-server/registry - install -m 0644 ${SRCPATH}//token_server.conf ${D}/${sysconfdir}/registry-token-server/registry - - if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then - install -d ${D}${systemd_unitdir}/system - install -m 0644 ${SRCPATH}/registry-token-server.service ${D}${systemd_unitdir}/system/ - fi -} -