]> git.proxmox.com Git - fence-agents-pve.git/blobdiff - Makefile
add reference to git version
[fence-agents-pve.git] / Makefile
index 6a5c445e02521898c6f20fa15fd3ccd8e13db283..5d242fb685d78b023d13c06d990d0c7a0f7d70f1 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,12 +1,14 @@
-RELEASE=3.0
+RELEASE=3.1
 
 PACKAGE=fence-agents-pve
-PKGREL=1
+PKGREL=2
 FAVER=4.0.0
 FADIR=fence-agents-${FAVER}
 FASRC=${FADIR}.tar.gz
 
 ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
+GITVERSION:=$(shell cat .git/refs/heads/master)
+
 DEB=${PACKAGE}_${FAVER}-${PKGREL}_${ARCH}.deb
 
 all: ${DEB}
@@ -16,6 +18,7 @@ ${DEB} deb: ${FASRC}
        tar xf ${FASRC}
        cp -av debian ${FADIR}/debian
        cat ${FADIR}/doc/COPYRIGHT >>${FADIR}/debian/copyright
+       echo "git clone git://git.proxmox.com/git/fence-agents-pve.git\\ngit checkout ${GITVERSION}" > ${FADIR}/debian/SOURCE
        cd ${FADIR}; dpkg-buildpackage -rfakeroot -b -us -uc
        lintian -X copyright-file ${DEB}