-RELEASE=5.0
+RELEASE=5.2
PACKAGE=ceph
-VER=12.0.3
+VER=12.2.8
DEBREL=pve1
SRCDIR=ceph
BUILDSRC=${SRCDIR}-${VER}
ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
-GITVERSION:=$(shell cat .git/refs/heads/master)
+GITVERSION:=$(shell git rev-parse HEAD)
DBG_DEBS=ceph-common-dbg_${VER}-${DEBREL}_${ARCH}.deb \
ceph-fuse-dbg_${VER}-${DEBREL}_${ARCH}.deb \
rbd-mirror-dbg_${VER}-${DEBREL}_${ARCH}.deb \
rbd-nbd-dbg_${VER}-${DEBREL}_${ARCH}.deb
-DEBS=ceph_${VER}-${DEBREL}_${ARCH}.deb \
-ceph-base_${VER}-${DEBREL}_${ARCH}.deb \
+MAIN_DEB=ceph_${VER}-${DEBREL}_${ARCH}.deb
+DEBS_REST=ceph-base_${VER}-${DEBREL}_${ARCH}.deb \
ceph-common_${VER}-${DEBREL}_${ARCH}.deb \
ceph-fuse_${VER}-${DEBREL}_${ARCH}.deb \
ceph-mds_${VER}-${DEBREL}_${ARCH}.deb \
python-rbd_${VER}-${DEBREL}_${ARCH}.deb \
python-rgw_${VER}-${DEBREL}_${ARCH}.deb \
radosgw_${VER}-${DEBREL}_${ARCH}.deb \
+rados-objclass-dev_${VER}-${DEBREL}_${ARCH}.deb \
rbd-fuse_${VER}-${DEBREL}_${ARCH}.deb \
rbd-mirror_${VER}-${DEBREL}_${ARCH}.deb \
rbd-nbd_${VER}-${DEBREL}_${ARCH}.deb
+DEBS=$(MAIN_DEB) $(DEBS_REST)
all: ${DEBS} ${DBG_DEBS}
@echo ${DEBS}
.PHONY: deb
deb: ${DEBS} ${DBG_DEBS}
-${DEBS} ${DBG_DEBS}: patches
+${DEBS_REST} ${DBG_DEBS}: $(MAIN_DEB)
+$(MAIN_DEB): patches
rm -rf ${BUILDSRC}
mkdir ${BUILDSRC}
rsync -ra ${SRCDIR}/ ${BUILDSRC}
cd ${BUILDSRC}; rm -rf .pc ./patches
echo "git clone git://git.proxmox.com/git/ceph.git\\ngit checkout ${GITVERSION}" > ${BUILDSRC}/debian/SOURCE
echo "debian/SOURCE" >> ${BUILDSRC}/debian/docs
+ echo "${GITVERSION}\\nv${VER}" > ${BUILDSRC}/src/.git_version
cd ${BUILDSRC}; dpkg-buildpackage -b -uc -us
@echo ${DEBS}