From: Dietmar Maurer Date: Thu, 22 Aug 2013 10:24:06 +0000 (+0200) Subject: add reference to git version X-Git-Url: https://git.proxmox.com/?p=fence-agents-pve.git;a=commitdiff_plain;h=473052370c89632d4df3b514581d246b70ba07df add reference to git version --- diff --git a/Makefile b/Makefile index 9e1e85f..5d242fb 100644 --- a/Makefile +++ b/Makefile @@ -7,6 +7,8 @@ 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} diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..8696672 --- /dev/null +++ b/debian/docs @@ -0,0 +1 @@ +debian/SOURCE