Skip to content

Commit

Permalink
+ceph.com/cephadm (#8090)
Browse files Browse the repository at this point in the history
Co-authored-by: Jacob Heider <jacob@pkgx.dev>
  • Loading branch information
tannevaled and jhheider authored Dec 3, 2024
1 parent 4947b13 commit 323c03f
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions projects/ceph.com/cephadm/package.yml
Original file line number Diff line number Diff line change
@@ -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}}

0 comments on commit 323c03f

Please sign in to comment.