]> git.proxmox.com Git - pve-sheepdog.git/blobdiff - Makefile
add source for 0.8.2
[pve-sheepdog.git] / Makefile
index 19f97b88065b59677bd6e310e29af9bf55532198..6f7695da92254144da62c78f9a3e39e03156d617 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,13 @@
-RELEASE=2.1
+RELEASE=3.1
 
 PACKAGE=pve-sheepdog
-PKGREL=3
-SDVER=0.4.0
+PKGREL=1
+SDVER=0.8.2
 
-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 --suppress-tags possible-gpl-code-linked-with-openssl ${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}