]>
Commit | Line | Data |
---|---|---|
adde0671 FG |
1 | RELEASE=5.0 |
2 | ||
3 | PACKAGE=ceph | |
ec9abb22 | 4 | VER=12.0.3 |
8a4fb15e | 5 | DEBREL=pve1 |
adde0671 | 6 | |
adde0671 | 7 | SRCDIR=ceph |
ec9abb22 | 8 | BUILDSRC=${SRCDIR}-${VER} |
adde0671 FG |
9 | |
10 | ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH) | |
11 | GITVERSION:=$(shell cat .git/refs/heads/master) | |
12 | ||
92696cf4 FG |
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 | ||
adde0671 FG |
30 | DEBS=ceph_${VER}-${DEBREL}_${ARCH}.deb \ |
31 | ceph-base_${VER}-${DEBREL}_${ARCH}.deb \ | |
32 | ceph-common_${VER}-${DEBREL}_${ARCH}.deb \ | |
adde0671 | 33 | ceph-fuse_${VER}-${DEBREL}_${ARCH}.deb \ |
adde0671 | 34 | ceph-mds_${VER}-${DEBREL}_${ARCH}.deb \ |
adde0671 | 35 | ceph-mgr_${VER}-${DEBREL}_${ARCH}.deb \ |
adde0671 | 36 | ceph-mon_${VER}-${DEBREL}_${ARCH}.deb \ |
adde0671 | 37 | ceph-osd_${VER}-${DEBREL}_${ARCH}.deb \ |
adde0671 FG |
38 | ceph-resource-agents_${VER}-${DEBREL}_${ARCH}.deb \ |
39 | ceph-test_${VER}-${DEBREL}_${ARCH}.deb \ | |
adde0671 | 40 | libcephfs2_${VER}-${DEBREL}_${ARCH}.deb \ |
adde0671 FG |
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 \ | |
adde0671 FG |
45 | librados-dev_${VER}-${DEBREL}_${ARCH}.deb \ |
46 | libradosstriper1_${VER}-${DEBREL}_${ARCH}.deb \ | |
adde0671 FG |
47 | libradosstriper-dev_${VER}-${DEBREL}_${ARCH}.deb \ |
48 | librbd1_${VER}-${DEBREL}_${ARCH}.deb \ | |
adde0671 FG |
49 | librbd-dev_${VER}-${DEBREL}_${ARCH}.deb \ |
50 | librgw2_${VER}-${DEBREL}_${ARCH}.deb \ | |
adde0671 FG |
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 \ | |
adde0671 | 63 | rbd-fuse_${VER}-${DEBREL}_${ARCH}.deb \ |
adde0671 | 64 | rbd-mirror_${VER}-${DEBREL}_${ARCH}.deb \ |
92696cf4 | 65 | rbd-nbd_${VER}-${DEBREL}_${ARCH}.deb |
adde0671 | 66 | |
92696cf4 | 67 | all: ${DEBS} ${DBG_DEBS} |
adde0671 | 68 | @echo ${DEBS} |
92696cf4 | 69 | @echo ${DBG_DEBS} |
adde0671 FG |
70 | |
71 | .PHONY: deb | |
92696cf4 | 72 | deb: ${DEBS} ${DBG_DEBS} |
ec9abb22 FG |
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 | |
e841ecd4 | 82 | echo "${GITVERSION}\\nv${VER}" > ${BUILDSRC}/src/.git_version |
ec9abb22 | 83 | cd ${BUILDSRC}; dpkg-buildpackage -b -uc -us |
adde0671 FG |
84 | @echo ${DEBS} |
85 | ||
86 | .PHONY: download | |
ec9abb22 FG |
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 | |
adde0671 FG |
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: | |
ec9abb22 | 106 | rm -rf ${BUILDSRC} *_all.deb *_${ARCH}.deb *.changes *.dsc *.buildinfo *.tar.gz |
adde0671 FG |
107 | |
108 | .PHONY: dinstall | |
109 | dinstall: ${DEB} | |
110 | dpkg -i ${DEB} |