]> git.proxmox.com Git - pve-sheepdog.git/blobdiff - Makefile
update sources to v1.0
[pve-sheepdog.git] / Makefile
index dc2d79fb0bb7607535062d2e6aa34cc5fab67590..9b82e61237cfb5d0a04a58c5917691038f39bd6f 100644 (file)
--- 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}