X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=Makefile;h=9b82e61237cfb5d0a04a58c5917691038f39bd6f;hb=18eae05ccdd73325a8ba3faabce409d1bbaf859d;hp=dc2d79fb0bb7607535062d2e6aa34cc5fab67590;hpb=b788d463994a25162fbf5f6fb7e79608648575ca;p=pve-sheepdog.git diff --git a/Makefile b/Makefile index dc2d79f..9b82e61 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,13 @@ -RELEASE=2.3 +RELEASE=4.2 PACKAGE=pve-sheepdog PKGREL=1 -SDVER=0.5.6 +SDVER=1.0.0 -DEB=${PACKAGE}_${SDVER}-${PKGREL}_amd64.deb +ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH) +GITVERSION:=$(shell cat .git/refs/heads/master) + +DEB=${PACKAGE}_${SDVER}-${PKGREL}_${ARCH}.deb SDDIR=sheepdog-${SDVER} SDSRC=${SDDIR}.tar.gz @@ -14,16 +17,17 @@ all: ${DEB} ${DEB} deb: ${SDSRC} rm -rf ${SDDIR} tar xf ${SDSRC} + mv ${SDDIR}/debian ${SDDIR}/debian.org cp -av debian ${SDDIR}/debian + echo "git clone git://git.proxmox.com/git/pve-sheepdog.git\\ngit checkout ${GITVERSION}" > ${SDDIR}/debian/SOURCE cd ${SDDIR}; dpkg-buildpackage -rfakeroot -b -us -uc - lintian ${DEB} + lintian -X copyright-file ${DEB} .PHONY: download ${SDSRC} download: rm -rf ${SDDIR} sheepdog.git - git clone git://github.com/collie/sheepdog.git sheepdog.git - cd sheepdog.git; git checkout -b local v${SDVER} - rsync -a --exclude .git --exclude .gitignore sheepdog.git/ ${SDDIR} + git clone git://github.com/sheepdog/sheepdog.git -b v1.0 sheepdog.git + rsync -a --exclude .git --exclude .gitignore sheepdog.git/ ${SDDIR} tar czf ${SDSRC}.tmp ${SDDIR} rm -rf ${SDDIR} mv ${SDSRC}.tmp ${SDSRC}