]> git.proxmox.com Git - ceph.git/blobdiff - Makefile
bump version to 12.2.11-pve1
[ceph.git] / Makefile
index 90f3a9f0c8248c7edc630c5715b61da1035f0ebd..582d27904b437728e04302019a1f1b846bb211dc 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,14 +1,14 @@
-RELEASE=5.0
+RELEASE=5.3
 
 PACKAGE=ceph
-VER=12.0.3
-DEBREL=pve2
+VER=12.2.11
+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 \
@@ -27,8 +27,8 @@ rbd-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 \
@@ -60,29 +60,44 @@ python-rados_${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)
+
+DSC=ceph_${VER}-${DEBREL}.dsc
 
 all: ${DEBS} ${DBG_DEBS}
        @echo ${DEBS}
        @echo ${DBG_DEBS}
 
+${BUILDSRC}: ${SRCDIR} patches
+       rm -rf $@
+       mkdir $@.tmp
+       rsync -ra ${SRCDIR}/ $@.tmp
+       cd $@.tmp; ln -s ../patches patches
+       cd $@.tmp; quilt push -a
+       cd $@.tmp; rm -rf .pc ./patches
+       echo "git clone git://git.proxmox.com/git/ceph.git\\ngit checkout ${GITVERSION}" >  $@.tmp/debian/SOURCE
+       echo "debian/SOURCE" >> $@.tmp/debian/docs
+       echo "${GITVERSION}\\nv${VER}" > $@.tmp/src/.git_version
+       cp changelog.Debian $@.tmp/debian/changelog
+       mv $@.tmp $@
+
 .PHONY: deb
 deb: ${DEBS} ${DBG_DEBS}
-${DEBS} ${DBG_DEBS}: patches
-       rm -rf ${BUILDSRC}
-       mkdir ${BUILDSRC}
-       rsync -ra ${SRCDIR}/ ${BUILDSRC}
-       cd ${BUILDSRC}; ln -s ../patches patches
-       cd ${BUILDSRC}; quilt push -a
-       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
+${DEBS_REST} ${DBG_DEBS}: $(MAIN_DEB)
+$(MAIN_DEB): ${BUILDSRC}
        cd ${BUILDSRC}; dpkg-buildpackage -b -uc -us
        @echo ${DEBS}
 
+.PHONY: dsc
+dsc: ${DSC}
+${DSC}: ${BUILDSRC}
+       cd ${BUILDSRC}; dpkg-buildpackage -S -uc -us -d -nc
+       @echo ${DSC}
+
 .PHONY: download
 download:
        rm -rf ${SRCDIR}.tmp
@@ -93,6 +108,7 @@ download:
        tar -C ${SRCDIR} --strip-components=1 -xf ${SRCDIR}.tmp/ceph-*.tar.bz2
        # needed because boost and zstd builds fail otherwise
        find ${SRCDIR} -type f -name ".gitignore" -delete
+       mv ${SRCDIR}/debian/changelog ${SRCDIR}/changelog.upstream
        rm -rf ${SRCDIR}.tmp
 
 .PHONY: upload