]> git.proxmox.com Git - ceph.git/blame - Makefile
bump version to 15.2.17-pve1~bpo10
[ceph.git] / Makefile
CommitLineData
adde0671 1PACKAGE=ceph
4bffc392
TL
2VER != dpkg-parsechangelog -l changelog.Debian -Sversion | cut -d- -f1
3PKGVER != dpkg-parsechangelog -l changelog.Debian -Sversion
a887fe9a 4DEBREL=pve1
adde0671 5
adde0671 6SRCDIR=ceph
ec9abb22 7BUILDSRC=${SRCDIR}-${VER}
adde0671
FG
8
9ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
f2664c11 10GITVERSION:=$(shell git rev-parse HEAD)
adde0671 11
4bffc392
TL
12DBG_DEBS=ceph-common-dbg_${PKGVER}_${ARCH}.deb \
13ceph-fuse-dbg_${PKGVER}_${ARCH}.deb \
14ceph-mds-dbg_${PKGVER}_${ARCH}.deb \
15ceph-mgr-dbg_${PKGVER}_${ARCH}.deb \
16ceph-mon-dbg_${PKGVER}_${ARCH}.deb \
17ceph-osd-dbg_${PKGVER}_${ARCH}.deb \
18ceph-test-dbg_${PKGVER}_${ARCH}.deb \
19libcephfs2-dbg_${PKGVER}_${ARCH}.deb \
20librados2-dbg_${PKGVER}_${ARCH}.deb \
21libradosstriper1-dbg_${PKGVER}_${ARCH}.deb \
22librbd1-dbg_${PKGVER}_${ARCH}.deb \
23librgw2-dbg_${PKGVER}_${ARCH}.deb \
24radosgw-dbg_${PKGVER}_${ARCH}.deb \
25rbd-fuse-dbg_${PKGVER}_${ARCH}.deb \
26rbd-mirror-dbg_${PKGVER}_${ARCH}.deb \
27rbd-nbd-dbg_${PKGVER}_${ARCH}.deb
92696cf4 28
4bffc392 29MAIN_DEB=ceph_${PKGVER}_${ARCH}.deb
6c8f92be
FG
30DEBS_REST=cephadm_${PKGVER}_${ARCH}.deb \
31ceph-base_${PKGVER}_${ARCH}.deb \
4bffc392
TL
32ceph-common_${PKGVER}_${ARCH}.deb \
33ceph-fuse_${PKGVER}_${ARCH}.deb \
6c8f92be
FG
34ceph-grafana-dashboards_${PKGVER}_all.deb \
35ceph-immutable-object-cache_${PKGVER}_${ARCH}.deb \
4bffc392
TL
36ceph-mds_${PKGVER}_${ARCH}.deb \
37ceph-mgr_${PKGVER}_${ARCH}.deb \
6c8f92be
FG
38ceph-mgr-cephadm_${PKGVER}_all.deb \
39ceph-mgr-dashboard_${PKGVER}_all.deb \
40ceph-mgr-diskprediction-cloud_${PKGVER}_all.deb \
41ceph-mgr-diskprediction-local_${PKGVER}_all.deb \
42ceph-mgr-k8sevents_${PKGVER}_all.deb \
43ceph-mgr-modules-core_${PKGVER}_all.deb \
44ceph-mgr-rook_${PKGVER}_all.deb \
4bffc392
TL
45ceph-mon_${PKGVER}_${ARCH}.deb \
46ceph-osd_${PKGVER}_${ARCH}.deb \
6c8f92be 47ceph-prometheus-alerts_${PKGVER}_all.deb \
4bffc392
TL
48ceph-resource-agents_${PKGVER}_${ARCH}.deb \
49ceph-test_${PKGVER}_${ARCH}.deb \
6c8f92be 50cephfs-shell_${PKGVER}_all.deb \
4bffc392
TL
51libcephfs2_${PKGVER}_${ARCH}.deb \
52libcephfs-dev_${PKGVER}_${ARCH}.deb \
53libcephfs-java_${PKGVER}_all.deb \
54libcephfs-jni_${PKGVER}_${ARCH}.deb \
55librados2_${PKGVER}_${ARCH}.deb \
56librados-dev_${PKGVER}_${ARCH}.deb \
6c8f92be 57libradospp-dev_${PKGVER}_${ARCH}.deb \
4bffc392
TL
58libradosstriper1_${PKGVER}_${ARCH}.deb \
59libradosstriper-dev_${PKGVER}_${ARCH}.deb \
60librbd1_${PKGVER}_${ARCH}.deb \
61librbd-dev_${PKGVER}_${ARCH}.deb \
62librgw2_${PKGVER}_${ARCH}.deb \
63librgw-dev_${PKGVER}_${ARCH}.deb \
5b522311 64python3-ceph_${PKGVER}_${ARCH}.deb \
6c8f92be
FG
65python3-ceph-common_${PKGVER}_all.deb \
66python3-ceph-argparse_${PKGVER}_all.deb \
5b522311
TL
67python3-cephfs_${PKGVER}_${ARCH}.deb \
68python3-rados_${PKGVER}_${ARCH}.deb \
69python3-rbd_${PKGVER}_${ARCH}.deb \
70python3-rgw_${PKGVER}_${ARCH}.deb \
4bffc392
TL
71radosgw_${PKGVER}_${ARCH}.deb \
72rados-objclass-dev_${PKGVER}_${ARCH}.deb \
73rbd-fuse_${PKGVER}_${ARCH}.deb \
74rbd-mirror_${PKGVER}_${ARCH}.deb \
75rbd-nbd_${PKGVER}_${ARCH}.deb
06dae762 76DEBS=$(MAIN_DEB) $(DEBS_REST)
adde0671 77
4bffc392 78DSC=ceph_${PKGVER}.dsc
9e089b1d 79
92696cf4 80all: ${DEBS} ${DBG_DEBS}
adde0671 81 @echo ${DEBS}
92696cf4 82 @echo ${DBG_DEBS}
adde0671 83
9e089b1d
FG
84${BUILDSRC}: ${SRCDIR} patches
85 rm -rf $@
86 mkdir $@.tmp
87 rsync -ra ${SRCDIR}/ $@.tmp
88 cd $@.tmp; ln -s ../patches patches
89 cd $@.tmp; quilt push -a
90 cd $@.tmp; rm -rf .pc ./patches
91 echo "git clone git://git.proxmox.com/git/ceph.git\\ngit checkout ${GITVERSION}" > $@.tmp/debian/SOURCE
92 echo "debian/SOURCE" >> $@.tmp/debian/docs
0fca7fb4 93 echo "${GITVERSION}\\n${VER}" > $@.tmp/src/.git_version
11963c23 94 cp changelog.Debian $@.tmp/debian/changelog
9e089b1d
FG
95 mv $@.tmp $@
96
adde0671 97.PHONY: deb
92696cf4 98deb: ${DEBS} ${DBG_DEBS}
06dae762 99${DEBS_REST} ${DBG_DEBS}: $(MAIN_DEB)
9e089b1d 100$(MAIN_DEB): ${BUILDSRC}
ec9abb22 101 cd ${BUILDSRC}; dpkg-buildpackage -b -uc -us
5e12d598 102 lintian ${DEBS}
adde0671
FG
103 @echo ${DEBS}
104
9e089b1d
FG
105.PHONY: dsc
106dsc: ${DSC}
107${DSC}: ${BUILDSRC}
108 cd ${BUILDSRC}; dpkg-buildpackage -S -uc -us -d -nc
109 @echo ${DSC}
110
931c18d5 111# NOTE: always downloads latest version!
adde0671 112.PHONY: download
ec9abb22 113download:
241c1dbe 114 rm -rf ${SRCDIR}.tmp ${SRCDIR}
048b4641 115 dgit -cdgit-distro.ceph.archive-query=aptget: -cdgit-distro.ceph.mirror=http://download.ceph.com/debian-octopus -cdgit-distro.ceph.git-check=false --apt-get:--option=Dir::Etc::Trusted=${CURDIR}/upstream-key.asc -d ceph clone ceph bionic ./${SRCDIR}.tmp
931c18d5
FG
116 @echo "WARNING"
117 @echo "Check output above for verification errors!"
118 @echo "WARNING"
119 rm -rf ${SRCDIR}.tmp/.git
120 find ${SRCDIR}.tmp/ -type f -name '.gitignore' -delete
241c1dbe
TL
121 mv ${SRCDIR}.tmp/debian/changelog ${SRCDIR}.tmp/changelog.upstream
122 mv ${SRCDIR}.tmp ${SRCDIR}
adde0671
FG
123
124.PHONY: upload
125upload: ${DEBS}
f21c6c9b 126 tar cf - ${DEBS} | ssh repoman@repo.proxmox.com upload --product ceph-octopus --dist buster --arch ${ARCH}
adde0671
FG
127
128distclean: clean
129
130.PHONY: clean
131clean:
e6eda25e 132 rm -rf ${BUILDSRC} ${BUILDSRC}.tmp *_all.deb *_${ARCH}.deb *.changes *.dsc *.buildinfo *.tar.gz
adde0671
FG
133
134.PHONY: dinstall
135dinstall: ${DEB}
136 dpkg -i ${DEB}