6 BUILDSRC
=${SRCDIR}-${VER}
8 ARCH
:=$(shell dpkg-architecture
-qDEB_BUILD_ARCH
)
9 GITVERSION
:=$(shell git rev-parse HEAD
)
11 DBG_DEBS
=ceph-common-dbg_
${VER}-${DEBREL}_
${ARCH}.deb \
12 ceph-fuse-dbg_
${VER}-${DEBREL}_
${ARCH}.deb \
13 ceph-mds-dbg_
${VER}-${DEBREL}_
${ARCH}.deb \
14 ceph-mgr-dbg_
${VER}-${DEBREL}_
${ARCH}.deb \
15 ceph-mon-dbg_
${VER}-${DEBREL}_
${ARCH}.deb \
16 ceph-osd-dbg_
${VER}-${DEBREL}_
${ARCH}.deb \
17 ceph-test-dbg_
${VER}-${DEBREL}_
${ARCH}.deb \
18 libcephfs2-dbg_
${VER}-${DEBREL}_
${ARCH}.deb \
19 librados2-dbg_
${VER}-${DEBREL}_
${ARCH}.deb \
20 libradosstriper1-dbg_
${VER}-${DEBREL}_
${ARCH}.deb \
21 librbd1-dbg_
${VER}-${DEBREL}_
${ARCH}.deb \
22 librgw2-dbg_
${VER}-${DEBREL}_
${ARCH}.deb \
23 radosgw-dbg_
${VER}-${DEBREL}_
${ARCH}.deb \
24 rbd-fuse-dbg_
${VER}-${DEBREL}_
${ARCH}.deb \
25 rbd-mirror-dbg_
${VER}-${DEBREL}_
${ARCH}.deb \
26 rbd-nbd-dbg_
${VER}-${DEBREL}_
${ARCH}.deb
28 MAIN_DEB
=ceph_
${VER}-${DEBREL}_
${ARCH}.deb
29 DEBS_REST
=ceph-base_
${VER}-${DEBREL}_
${ARCH}.deb \
30 ceph-common_
${VER}-${DEBREL}_
${ARCH}.deb \
31 ceph-fuse_
${VER}-${DEBREL}_
${ARCH}.deb \
32 ceph-mds_
${VER}-${DEBREL}_
${ARCH}.deb \
33 ceph-mgr_
${VER}-${DEBREL}_
${ARCH}.deb \
34 ceph-mon_
${VER}-${DEBREL}_
${ARCH}.deb \
35 ceph-osd_
${VER}-${DEBREL}_
${ARCH}.deb \
36 ceph-resource-agents_
${VER}-${DEBREL}_
${ARCH}.deb \
37 ceph-test_
${VER}-${DEBREL}_
${ARCH}.deb \
38 libcephfs2_
${VER}-${DEBREL}_
${ARCH}.deb \
39 libcephfs-dev_
${VER}-${DEBREL}_
${ARCH}.deb \
40 libcephfs-java_
${VER}-${DEBREL}_all.deb \
41 libcephfs-jni_
${VER}-${DEBREL}_
${ARCH}.deb \
42 librados2_
${VER}-${DEBREL}_
${ARCH}.deb \
43 librados-dev_
${VER}-${DEBREL}_
${ARCH}.deb \
44 libradosstriper1_
${VER}-${DEBREL}_
${ARCH}.deb \
45 libradosstriper-dev_
${VER}-${DEBREL}_
${ARCH}.deb \
46 librbd1_
${VER}-${DEBREL}_
${ARCH}.deb \
47 librbd-dev_
${VER}-${DEBREL}_
${ARCH}.deb \
48 librgw2_
${VER}-${DEBREL}_
${ARCH}.deb \
49 librgw-dev_
${VER}-${DEBREL}_
${ARCH}.deb \
50 python3-ceph-argparse_
${VER}-${DEBREL}_all.deb \
51 python3-cephfs_
${VER}-${DEBREL}_
${ARCH}.deb \
52 python3-rados_
${VER}-${DEBREL}_
${ARCH}.deb \
53 python3-rbd_
${VER}-${DEBREL}_
${ARCH}.deb \
54 python3-rgw_
${VER}-${DEBREL}_
${ARCH}.deb \
55 python-ceph_
${VER}-${DEBREL}_
${ARCH}.deb \
56 python-cephfs_
${VER}-${DEBREL}_
${ARCH}.deb \
57 python-rados_
${VER}-${DEBREL}_
${ARCH}.deb \
58 python-rbd_
${VER}-${DEBREL}_
${ARCH}.deb \
59 python-rgw_
${VER}-${DEBREL}_
${ARCH}.deb \
60 radosgw_
${VER}-${DEBREL}_
${ARCH}.deb \
61 rados-objclass-dev_
${VER}-${DEBREL}_
${ARCH}.deb \
62 rbd-fuse_
${VER}-${DEBREL}_
${ARCH}.deb \
63 rbd-mirror_
${VER}-${DEBREL}_
${ARCH}.deb \
64 rbd-nbd_
${VER}-${DEBREL}_
${ARCH}.deb
65 DEBS
=$(MAIN_DEB
) $(DEBS_REST
)
67 DSC
=ceph_
${VER}-${DEBREL}.dsc
69 all: ${DEBS} ${DBG_DEBS}
73 ${BUILDSRC}: ${SRCDIR} patches
76 rsync
-ra
${SRCDIR}/ $@.tmp
77 cd
$@.tmp
; ln
-s ..
/patches patches
78 cd
$@.tmp
; quilt push
-a
79 cd
$@.tmp
; rm -rf .
pc .
/patches
80 echo
"git clone git://git.proxmox.com/git/ceph.git\\ngit checkout ${GITVERSION}" > $@.tmp
/debian
/SOURCE
81 echo
"debian/SOURCE" >> $@.tmp
/debian
/docs
82 echo
"${GITVERSION}\\nv${VER}" > $@.tmp
/src
/.git_version
83 cp changelog.Debian
$@.tmp
/debian
/changelog
87 deb
: ${DEBS} ${DBG_DEBS}
88 ${DEBS_REST} ${DBG_DEBS}: $(MAIN_DEB
)
89 $(MAIN_DEB
): ${BUILDSRC}
90 cd
${BUILDSRC}; dpkg-buildpackage
-b
-uc
-us
97 cd
${BUILDSRC}; dpkg-buildpackage
-S
-uc
-us
-d
-nc
100 # NOTE: always downloads latest version!
103 rm -rf
${SRCDIR}.tmp
${SRCDIR}
104 dgit
-cdgit-distro.ceph.archive-query
=aptget
: -cdgit-distro.ceph.mirror
=http
://download.ceph.com
/debian-nautilus
-cdgit-distro.ceph.git-check
=false
--apt-get
:--option
=Dir
::Etc
::Trusted
=${CURDIR}/upstream-key.asc
-d ceph clone ceph xenial .
/${SRCDIR}.tmp
106 @echo
"Check output above for verification errors!"
108 rm -rf
${SRCDIR}.tmp
/.git
109 find
${SRCDIR}.tmp
/ -type f
-name
'.gitignore' -delete
110 mv
${SRCDIR}.tmp
/debian
/changelog
${SRCDIR}.tmp
/changelog.upstream
111 mv
${SRCDIR}.tmp
${SRCDIR}
115 tar cf
- ${DEBS} | ssh repoman@repo.proxmox.com upload
--product ceph-luminous
--dist stretch
--arch
${ARCH}
121 rm -rf
${BUILDSRC} ${BUILDSRC}.tmp
*_all.deb
*_
${ARCH}.deb
*.changes
*.dsc
*.buildinfo
*.
tar.gz