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