-RELEASE=5.0
+RELEASE=6.0
PACKAGE=ceph
-VER=12.0.3
-DEBREL=pve2
+VER=14.2.1
+DEBREL=pve1
SRCDIR=ceph
BUILDSRC=${SRCDIR}-${VER}
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)
+
+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
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