8 BUILDSRC
=${SRCDIR}-${VER}
10 ARCH
:=$(shell dpkg-architecture
-qDEB_BUILD_ARCH
)
11 GITVERSION
:=$(shell git rev-parse HEAD
)
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
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
)
69 DSC
=ceph_
${VER}-${DEBREL}.dsc
71 all: ${DEBS} ${DBG_DEBS}
75 ${BUILDSRC}: ${SRCDIR} patches
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
89 deb
: ${DEBS} ${DBG_DEBS}
90 ${DEBS_REST} ${DBG_DEBS}: $(MAIN_DEB
)
91 $(MAIN_DEB
): ${BUILDSRC}
92 cd
${BUILDSRC}; dpkg-buildpackage
-b
-uc
-us
98 cd
${BUILDSRC}; dpkg-buildpackage
-S
-uc
-us
-d
-nc
104 git clone
--recursive
-b v
${VER} https
://github.com
/ceph
/ceph
${SRCDIR}.tmp
105 cd
${SRCDIR}.tmp
; .
/make-dist
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
116 tar cf
- ${DEBS} | ssh repoman@repo.proxmox.com upload
--product ceph-luminous
--dist stretch
--arch
${ARCH}
122 rm -rf
${BUILDSRC} ${BUILDSRC}.tmp
*_all.deb
*_
${ARCH}.deb
*.changes
*.dsc
*.buildinfo
*.
tar.gz