]> git.proxmox.com Git - ceph.git/blame - Makefile
buildsys: use download.ceph.com to download source tar ball
[ceph.git] / Makefile
CommitLineData
11fdf7f2 1RELEASE=6.0
adde0671
FG
2
3PACKAGE=ceph
11fdf7f2 4VER=14.2.1
9257126f 5DEBREL=pve2
adde0671 6
adde0671 7SRCDIR=ceph
ec9abb22 8BUILDSRC=${SRCDIR}-${VER}
adde0671
FG
9
10ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
f2664c11 11GITVERSION:=$(shell git rev-parse HEAD)
adde0671 12
92696cf4
FG
13DBG_DEBS=ceph-common-dbg_${VER}-${DEBREL}_${ARCH}.deb \
14ceph-fuse-dbg_${VER}-${DEBREL}_${ARCH}.deb \
15ceph-mds-dbg_${VER}-${DEBREL}_${ARCH}.deb \
16ceph-mgr-dbg_${VER}-${DEBREL}_${ARCH}.deb \
17ceph-mon-dbg_${VER}-${DEBREL}_${ARCH}.deb \
18ceph-osd-dbg_${VER}-${DEBREL}_${ARCH}.deb \
19ceph-test-dbg_${VER}-${DEBREL}_${ARCH}.deb \
20libcephfs2-dbg_${VER}-${DEBREL}_${ARCH}.deb \
21librados2-dbg_${VER}-${DEBREL}_${ARCH}.deb \
22libradosstriper1-dbg_${VER}-${DEBREL}_${ARCH}.deb \
23librbd1-dbg_${VER}-${DEBREL}_${ARCH}.deb \
24librgw2-dbg_${VER}-${DEBREL}_${ARCH}.deb \
25radosgw-dbg_${VER}-${DEBREL}_${ARCH}.deb \
26rbd-fuse-dbg_${VER}-${DEBREL}_${ARCH}.deb \
27rbd-mirror-dbg_${VER}-${DEBREL}_${ARCH}.deb \
28rbd-nbd-dbg_${VER}-${DEBREL}_${ARCH}.deb
29
06dae762 30MAIN_DEB=ceph_${VER}-${DEBREL}_${ARCH}.deb
1a3c3a05 31DEBS_REST=ceph-base_${VER}-${DEBREL}_${ARCH}.deb \
adde0671 32ceph-common_${VER}-${DEBREL}_${ARCH}.deb \
adde0671 33ceph-fuse_${VER}-${DEBREL}_${ARCH}.deb \
adde0671 34ceph-mds_${VER}-${DEBREL}_${ARCH}.deb \
adde0671 35ceph-mgr_${VER}-${DEBREL}_${ARCH}.deb \
adde0671 36ceph-mon_${VER}-${DEBREL}_${ARCH}.deb \
adde0671 37ceph-osd_${VER}-${DEBREL}_${ARCH}.deb \
adde0671
FG
38ceph-resource-agents_${VER}-${DEBREL}_${ARCH}.deb \
39ceph-test_${VER}-${DEBREL}_${ARCH}.deb \
adde0671 40libcephfs2_${VER}-${DEBREL}_${ARCH}.deb \
adde0671
FG
41libcephfs-dev_${VER}-${DEBREL}_${ARCH}.deb \
42libcephfs-java_${VER}-${DEBREL}_all.deb \
43libcephfs-jni_${VER}-${DEBREL}_${ARCH}.deb \
44librados2_${VER}-${DEBREL}_${ARCH}.deb \
adde0671
FG
45librados-dev_${VER}-${DEBREL}_${ARCH}.deb \
46libradosstriper1_${VER}-${DEBREL}_${ARCH}.deb \
adde0671
FG
47libradosstriper-dev_${VER}-${DEBREL}_${ARCH}.deb \
48librbd1_${VER}-${DEBREL}_${ARCH}.deb \
adde0671
FG
49librbd-dev_${VER}-${DEBREL}_${ARCH}.deb \
50librgw2_${VER}-${DEBREL}_${ARCH}.deb \
adde0671 51librgw-dev_${VER}-${DEBREL}_${ARCH}.deb \
5e12d598 52python3-ceph-argparse_${VER}-${DEBREL}_all.deb \
adde0671
FG
53python3-cephfs_${VER}-${DEBREL}_${ARCH}.deb \
54python3-rados_${VER}-${DEBREL}_${ARCH}.deb \
55python3-rbd_${VER}-${DEBREL}_${ARCH}.deb \
56python3-rgw_${VER}-${DEBREL}_${ARCH}.deb \
57python-ceph_${VER}-${DEBREL}_${ARCH}.deb \
58python-cephfs_${VER}-${DEBREL}_${ARCH}.deb \
59python-rados_${VER}-${DEBREL}_${ARCH}.deb \
60python-rbd_${VER}-${DEBREL}_${ARCH}.deb \
61python-rgw_${VER}-${DEBREL}_${ARCH}.deb \
62radosgw_${VER}-${DEBREL}_${ARCH}.deb \
81bbc789 63rados-objclass-dev_${VER}-${DEBREL}_${ARCH}.deb \
adde0671 64rbd-fuse_${VER}-${DEBREL}_${ARCH}.deb \
adde0671 65rbd-mirror_${VER}-${DEBREL}_${ARCH}.deb \
92696cf4 66rbd-nbd_${VER}-${DEBREL}_${ARCH}.deb
06dae762 67DEBS=$(MAIN_DEB) $(DEBS_REST)
adde0671 68
9e089b1d
FG
69DSC=ceph_${VER}-${DEBREL}.dsc
70
92696cf4 71all: ${DEBS} ${DBG_DEBS}
adde0671 72 @echo ${DEBS}
92696cf4 73 @echo ${DBG_DEBS}
adde0671 74
9e089b1d
FG
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
11963c23 85 cp changelog.Debian $@.tmp/debian/changelog
9e089b1d
FG
86 mv $@.tmp $@
87
adde0671 88.PHONY: deb
92696cf4 89deb: ${DEBS} ${DBG_DEBS}
06dae762 90${DEBS_REST} ${DBG_DEBS}: $(MAIN_DEB)
9e089b1d 91$(MAIN_DEB): ${BUILDSRC}
ec9abb22 92 cd ${BUILDSRC}; dpkg-buildpackage -b -uc -us
5e12d598 93 lintian ${DEBS}
adde0671
FG
94 @echo ${DEBS}
95
9e089b1d
FG
96.PHONY: dsc
97dsc: ${DSC}
98${DSC}: ${BUILDSRC}
99 cd ${BUILDSRC}; dpkg-buildpackage -S -uc -us -d -nc
100 @echo ${DSC}
101
adde0671 102.PHONY: download
ec9abb22 103download:
241c1dbe
TL
104 # FIXME: better verification (download dsc and use dscverify with ceph.com release key?)
105 dget --allow-unauthenticated --download-only 'https://download.ceph.com/debian-nautilus/pool/main/c/ceph/ceph_${VER}.orig.tar.gz'
106 rm -rf ${SRCDIR}.tmp ${SRCDIR}
107 mkdir ${SRCDIR}.tmp
108 tar -C ${SRCDIR}.tmp --strip-components=1 -xf ceph_${VER}.orig.tar.gz
ec9abb22 109 # needed because boost and zstd builds fail otherwise
241c1dbe
TL
110 find ${SRCDIR}.tmp -type f -name ".gitignore" -delete
111 mv ${SRCDIR}.tmp/debian/changelog ${SRCDIR}.tmp/changelog.upstream
112 mv ${SRCDIR}.tmp ${SRCDIR}
adde0671
FG
113
114.PHONY: upload
115upload: ${DEBS}
116 tar cf - ${DEBS} | ssh repoman@repo.proxmox.com upload --product ceph-luminous --dist stretch --arch ${ARCH}
117
118distclean: clean
119
120.PHONY: clean
121clean:
e6eda25e 122 rm -rf ${BUILDSRC} ${BUILDSRC}.tmp *_all.deb *_${ARCH}.deb *.changes *.dsc *.buildinfo *.tar.gz
adde0671
FG
123
124.PHONY: dinstall
125dinstall: ${DEB}
126 dpkg -i ${DEB}