From 8bc0311e58faa979843a75793f8a2d6cef07c8b1 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Fri, 23 Aug 2013 07:50:26 +0200 Subject: [PATCH] add refrerence to git version --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 6ed6efd..29e81e8 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ # Source from CPAN -# Note: We compileour own package because of Debian bug #704134 +# Note: We compile our own package because of Debian bug #704134 # see: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=704134 RELEASE=3.0 @@ -14,6 +14,8 @@ DEBSRC=libnet-http-perl_6.03-2.debian.tar.gz PKGDIR=Net-HTTP-${VERSION} PKGSRC=${PKGDIR}.tar.gz +GITVERSION:=$(shell cat .git/refs/heads/master) + ARCH=all DEB=${PACKAGE}_${VERSION}-${PKGREL}_${ARCH}.deb @@ -28,6 +30,8 @@ deb ${DEB}: rm -rf ${PKGDIR} tar xf ${PKGSRC} cd ${PKGDIR}; tar xf ../${DEBSRC} + echo "git clone git://git.proxmox.com/git/libnet-http-perl.git\\ngit checkout ${GITVERSION}" > ${PKGDIR}/debian/SOURCE + echo "debian/SOURCE" >> ${PKGDIR}/debian/docs cd ${PKGDIR}; patch -p1 <../update-changelog.patch cd ${PKGDIR}; dpkg-buildpackage -rfakeroot -b -us -uc lintian ${DEB} -- 2.39.2