]> git.proxmox.com Git - pve-sheepdog.git/commitdiff
add reference to git version
authorDietmar Maurer <dietmar@proxmox.com>
Mon, 2 Sep 2013 09:26:57 +0000 (11:26 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Mon, 2 Sep 2013 09:26:57 +0000 (11:26 +0200)
Makefile
debian/docs

index 25172fb5f070d6a08cc1a80be87cee7047c21d25..b8613f2bb1863f1d2176f157ae38582fdfdcbb78 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,10 @@ PKGREL=3
 SDVER=0.6.0
 BRANCH=stable-0.6
 
-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
@@ -17,6 +20,7 @@ ${DEB} deb: ${SDSRC}
        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 -X copyright-file ${DEB}
 
index e845566c06f9bf557d35e8292c37cf05d97a9769..310840d1b92254b867440e4c94a4ebc9e41adeed 100644 (file)
@@ -1 +1,2 @@
 README
+debian/SOURCE