]> git.proxmox.com Git - ceph.git/blob - Makefile
update sources to 12.2.7
[ceph.git] / Makefile
1 RELEASE=5.2
2
3 PACKAGE=ceph
4 VER=12.2.7
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 all: ${DEBS} ${DBG_DEBS}
70 @echo ${DEBS}
71 @echo ${DBG_DEBS}
72
73 .PHONY: deb
74 deb: ${DEBS} ${DBG_DEBS}
75 ${DEBS_REST} ${DBG_DEBS}: $(MAIN_DEB)
76 $(MAIN_DEB): patches
77 rm -rf ${BUILDSRC}
78 mkdir ${BUILDSRC}
79 rsync -ra ${SRCDIR}/ ${BUILDSRC}
80 cd ${BUILDSRC}; ln -s ../patches patches
81 cd ${BUILDSRC}; quilt push -a
82 cd ${BUILDSRC}; rm -rf .pc ./patches
83 echo "git clone git://git.proxmox.com/git/ceph.git\\ngit checkout ${GITVERSION}" > ${BUILDSRC}/debian/SOURCE
84 echo "debian/SOURCE" >> ${BUILDSRC}/debian/docs
85 echo "${GITVERSION}\\nv${VER}" > ${BUILDSRC}/src/.git_version
86 cd ${BUILDSRC}; dpkg-buildpackage -b -uc -us
87 @echo ${DEBS}
88
89 .PHONY: download
90 download:
91 rm -rf ${SRCDIR}.tmp
92 git clone --recursive -b v${VER} https://github.com/ceph/ceph ${SRCDIR}.tmp
93 cd ${SRCDIR}.tmp; ./make-dist
94 rm -rf ${SRCDIR}
95 mkdir ${SRCDIR}
96 tar -C ${SRCDIR} --strip-components=1 -xf ${SRCDIR}.tmp/ceph-*.tar.bz2
97 # needed because boost and zstd builds fail otherwise
98 find ${SRCDIR} -type f -name ".gitignore" -delete
99 rm -rf ${SRCDIR}.tmp
100
101 .PHONY: upload
102 upload: ${DEBS}
103 tar cf - ${DEBS} | ssh repoman@repo.proxmox.com upload --product ceph-luminous --dist stretch --arch ${ARCH}
104
105 distclean: clean
106
107 .PHONY: clean
108 clean:
109 rm -rf ${BUILDSRC} *_all.deb *_${ARCH}.deb *.changes *.dsc *.buildinfo *.tar.gz
110
111 .PHONY: dinstall
112 dinstall: ${DEB}
113 dpkg -i ${DEB}