From 323c03f9edd1370b938cae0806e4b43f5d20d996 Mon Sep 17 00:00:00 2001 From: tannevaled Date: Tue, 3 Dec 2024 21:10:58 +0100 Subject: [PATCH] +ceph.com/cephadm (#8090) Co-authored-by: Jacob Heider --- projects/ceph.com/cephadm/package.yml | 34 +++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 projects/ceph.com/cephadm/package.yml diff --git a/projects/ceph.com/cephadm/package.yml b/projects/ceph.com/cephadm/package.yml new file mode 100644 index 0000000000..4f0da12d2a --- /dev/null +++ b/projects/ceph.com/cephadm/package.yml @@ -0,0 +1,34 @@ +distributable: + url: git+https://github.com/ceph/ceph.git + ref: v{{version}} + +display-name: cephadm + +versions: + github: ceph/ceph/tags + +dependencies: + pkgx.sh: ^1 + +build: + dependencies: + python.org: ^3 + gnu.org/coreutils: '*' + env: + linux: + TMPDIR: $(mktemp -d -p /tmp) + BUILD_FLAGS: + - --set-version-var CEPH_GIT_VER="$(git rev-parse HEAD)" + - --set-version-var CEPH_GIT_NICE_VER="$(git describe)" + - --set-version-var CEPH_RELEASE="$(sed -n '1p' ./src/ceph_release)" + - --set-version-var CEPH_RELEASE_NAME="$(sed -n '2p' ./src/ceph_release)" + - --set-version-var CEPH_RELEASE_TYPE="$(sed -n '3p' ./src/ceph_release)" + script: + - bkpyvenv stage {{prefix}} {{version}} + - ./src/cephadm/build.sh ${BUILD_FLAGS} {{prefix}}/venv/bin/cephadm + - bkpyvenv seal {{prefix}} cephadm + +provides: + - bin/cephadm + +test: test "$(cephadm version|cut -d' ' -f3)" = {{version.tag}}