]> git.proxmox.com Git - pve-sheepdog.git/blobdiff - Makefile
set RELEASE=4.1
[pve-sheepdog.git] / Makefile
index c9dccaa004ff7a861bd8ef28ace209821d9a7c34..4a4a28da3154a80886781480a20e55f810944811 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,13 @@
-RELEASE=2.1
+RELEASE=4.1
 
 PACKAGE=pve-sheepdog
-PKGREL=5
-SDVER=0.4.0
+PKGREL=1
+SDVER=0.9.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 -b stable-0.9 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}