]> git.proxmox.com Git - ceph.git/blobdiff - Makefile
build: use dgit for download target
[ceph.git] / Makefile
index f885c12831db06d5aa83d231587bd8d779164c8f..0219426dfb5fad98b2ae34b69cb2f394fc5e0cf2 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -99,15 +99,16 @@ ${DSC}: ${BUILDSRC}
        cd ${BUILDSRC}; dpkg-buildpackage -S -uc -us -d -nc
        @echo ${DSC}
 
+# NOTE: always downloads latest version!
 .PHONY: download
 download:
-       # FIXME: better verification (download dsc and use dscverify with ceph.com release key?)
-       dget --allow-unauthenticated --download-only 'https://download.ceph.com/debian-nautilus/pool/main/c/ceph/ceph_${VER}.orig.tar.gz'
        rm -rf ${SRCDIR}.tmp ${SRCDIR}
-       mkdir ${SRCDIR}.tmp
-       tar -C ${SRCDIR}.tmp --strip-components=1 -xf ceph_${VER}.orig.tar.gz
-       # needed because boost and zstd builds fail otherwise
-       find ${SRCDIR}.tmp -type f -name ".gitignore" -delete
+       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
+       @echo "WARNING"
+       @echo "Check output above for verification errors!"
+       @echo "WARNING"
+       rm -rf ${SRCDIR}.tmp/.git
+       find ${SRCDIR}.tmp/ -type f -name '.gitignore' -delete
        mv ${SRCDIR}.tmp/debian/changelog ${SRCDIR}.tmp/changelog.upstream
        mv ${SRCDIR}.tmp ${SRCDIR}