]> git.proxmox.com Git - pve-sheepdog.git/blobdiff - Makefile
bump version to 0.6.3-2
[pve-sheepdog.git] / Makefile
index d07608dd8675e13327b934b492cc55e3539cb1ac..646215aa2920d7c1359a3771a5b19dc8c102fd47 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,13 @@
-RELEASE=2.2
+RELEASE=3.1
 
 PACKAGE=pve-sheepdog
-PKGREL=1
-SDVER=0.5.3
+PKGREL=2
+SDVER=0.6.3
 
-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,18 @@ 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 sheepdog.git
+       cd sheepdog.git; git checkout -b local v${SDVER}
+       rsync -a --exclude .git --exclude .gitignore sheepdog.git/ ${SDDIR}
        tar czf ${SDSRC}.tmp  ${SDDIR}
        rm -rf ${SDDIR}
        mv ${SDSRC}.tmp ${SDSRC}