]> git.proxmox.com Git - ceph.git/blob - Makefile
bump version to 18.2.2-pve1
[ceph.git] / Makefile
1 RELEASE=5.4
2
3 PACKAGE=ceph
4 VER=12.2.12
5 DEBREL=pve1
6
7 SRCDIR=ceph
8 BUILDSRC=${SRCDIR}-${VER}
9
10 ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
11 GITVERSION:=$(shell git rev-parse HEAD)
12
13 DBG_DEBS=ceph-common-dbg_${VER}-${DEBREL}_${ARCH}.deb \
14 ceph-fuse-dbg_${VER}-${DEBREL}_${ARCH}.deb \
15 ceph-mds-dbg_${VER}-${DEBREL}_${ARCH}.deb \
16 ceph-mgr-dbg_${VER}-${DEBREL}_${ARCH}.deb \
17 ceph-mon-dbg_${VER}-${DEBREL}_${ARCH}.deb \
18 ceph-osd-dbg_${VER}-${DEBREL}_${ARCH}.deb \
19 ceph-test-dbg_${VER}-${DEBREL}_${ARCH}.deb \
20 libcephfs2-dbg_${VER}-${DEBREL}_${ARCH}.deb \
21 librados2-dbg_${VER}-${DEBREL}_${ARCH}.deb \
22 libradosstriper1-dbg_${VER}-${DEBREL}_${ARCH}.deb \
23 librbd1-dbg_${VER}-${DEBREL}_${ARCH}.deb \
24 librgw2-dbg_${VER}-${DEBREL}_${ARCH}.deb \
25 radosgw-dbg_${VER}-${DEBREL}_${ARCH}.deb \
26 rbd-fuse-dbg_${VER}-${DEBREL}_${ARCH}.deb \
27 rbd-mirror-dbg_${VER}-${DEBREL}_${ARCH}.deb \
28 rbd-nbd-dbg_${VER}-${DEBREL}_${ARCH}.deb
29
30 MAIN_DEB=ceph_${VER}-${DEBREL}_${ARCH}.deb
31 DEBS_REST=ceph-base_${VER}-${DEBREL}_${ARCH}.deb \
32 ceph-common_${VER}-${DEBREL}_${ARCH}.deb \
33 ceph-fuse_${VER}-${DEBREL}_${ARCH}.deb \
34 ceph-mds_${VER}-${DEBREL}_${ARCH}.deb \
35 ceph-mgr_${VER}-${DEBREL}_${ARCH}.deb \
36 ceph-mon_${VER}-${DEBREL}_${ARCH}.deb \
37 ceph-osd_${VER}-${DEBREL}_${ARCH}.deb \
38 ceph-resource-agents_${VER}-${DEBREL}_${ARCH}.deb \
39 ceph-test_${VER}-${DEBREL}_${ARCH}.deb \
40 libcephfs2_${VER}-${DEBREL}_${ARCH}.deb \
41 libcephfs-dev_${VER}-${DEBREL}_${ARCH}.deb \
42 libcephfs-java_${VER}-${DEBREL}_all.deb \
43 libcephfs-jni_${VER}-${DEBREL}_${ARCH}.deb \
44 librados2_${VER}-${DEBREL}_${ARCH}.deb \
45 librados-dev_${VER}-${DEBREL}_${ARCH}.deb \
46 libradosstriper1_${VER}-${DEBREL}_${ARCH}.deb \
47 libradosstriper-dev_${VER}-${DEBREL}_${ARCH}.deb \
48 librbd1_${VER}-${DEBREL}_${ARCH}.deb \
49 librbd-dev_${VER}-${DEBREL}_${ARCH}.deb \
50 librgw2_${VER}-${DEBREL}_${ARCH}.deb \
51 librgw-dev_${VER}-${DEBREL}_${ARCH}.deb \
52 python3-ceph-argparse_${VER}-${DEBREL}_${ARCH}.deb \
53 python3-cephfs_${VER}-${DEBREL}_${ARCH}.deb \
54 python3-rados_${VER}-${DEBREL}_${ARCH}.deb \
55 python3-rbd_${VER}-${DEBREL}_${ARCH}.deb \
56 python3-rgw_${VER}-${DEBREL}_${ARCH}.deb \
57 python-ceph_${VER}-${DEBREL}_${ARCH}.deb \
58 python-cephfs_${VER}-${DEBREL}_${ARCH}.deb \
59 python-rados_${VER}-${DEBREL}_${ARCH}.deb \
60 python-rbd_${VER}-${DEBREL}_${ARCH}.deb \
61 python-rgw_${VER}-${DEBREL}_${ARCH}.deb \
62 radosgw_${VER}-${DEBREL}_${ARCH}.deb \
63 rados-objclass-dev_${VER}-${DEBREL}_${ARCH}.deb \
64 rbd-fuse_${VER}-${DEBREL}_${ARCH}.deb \
65 rbd-mirror_${VER}-${DEBREL}_${ARCH}.deb \
66 rbd-nbd_${VER}-${DEBREL}_${ARCH}.deb
67 DEBS=$(MAIN_DEB) $(DEBS_REST)
68
69 DSC=ceph_${VER}-${DEBREL}.dsc
70
71 all: ${DEBS} ${DBG_DEBS}
72 @echo ${DEBS}
73 @echo ${DBG_DEBS}
74
75 ${BUILDSRC}: ${SRCDIR} patches
76 rm -rf $@
77 mkdir $@.tmp
78 rsync -ra ${SRCDIR}/ $@.tmp
79 cd $@.tmp; ln -s ../patches patches
80 cd $@.tmp; quilt push -a
81 cd $@.tmp; rm -rf .pc ./patches
82 echo "git clone git://git.proxmox.com/git/ceph.git\\ngit checkout ${GITVERSION}" > $@.tmp/debian/SOURCE
83 echo "debian/SOURCE" >> $@.tmp/debian/docs
84 echo "${GITVERSION}\\nv${VER}" > $@.tmp/src/.git_version
85 cp changelog.Debian $@.tmp/debian/changelog
86 mv $@.tmp $@
87
88 .PHONY: deb
89 deb: ${DEBS} ${DBG_DEBS}
90 ${DEBS_REST} ${DBG_DEBS}: $(MAIN_DEB)
91 $(MAIN_DEB): ${BUILDSRC}
92 cd ${BUILDSRC}; dpkg-buildpackage -b -uc -us
93 @echo ${DEBS}
94
95 .PHONY: dsc
96 dsc: ${DSC}
97 ${DSC}: ${BUILDSRC}
98 cd ${BUILDSRC}; dpkg-buildpackage -S -uc -us -d -nc
99 @echo ${DSC}
100
101 .PHONY: download
102 download:
103 rm -rf ${SRCDIR}.tmp
104 git clone --recursive -b v${VER} https://github.com/ceph/ceph ${SRCDIR}.tmp
105 cd ${SRCDIR}.tmp; ./make-dist
106 rm -rf ${SRCDIR}
107 mkdir ${SRCDIR}
108 tar -C ${SRCDIR} --strip-components=1 -xf ${SRCDIR}.tmp/ceph-*.tar.bz2
109 # needed because boost and zstd builds fail otherwise
110 find ${SRCDIR} -type f -name ".gitignore" -delete
111 mv ${SRCDIR}/debian/changelog ${SRCDIR}/changelog.upstream
112 rm -rf ${SRCDIR}.tmp
113
114 .PHONY: upload
115 upload: ${DEBS}
116 tar cf - ${DEBS} | ssh repoman@repo.proxmox.com upload --product ceph-luminous --dist stretch --arch ${ARCH}
117
118 distclean: clean
119
120 .PHONY: clean
121 clean:
122 rm -rf ${BUILDSRC} *_all.deb *_${ARCH}.deb *.changes *.dsc *.buildinfo *.tar.gz
123
124 .PHONY: dinstall
125 dinstall: ${DEB}
126 dpkg -i ${DEB}