]> git.proxmox.com Git - pve-omping.git/commitdiff
add reference to git version
authorDietmar Maurer <dietmar@proxmox.com>
Mon, 2 Sep 2013 09:04:00 +0000 (11:04 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Mon, 2 Sep 2013 09:04:24 +0000 (11:04 +0200)
Makefile
debian/docs [new file with mode: 0644]

index b1b5f6fc99f9d29ca49c4b237f884c076ab3724a..2b89736a998961e1b5e2536c50197a7e4a8ea736 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -7,6 +7,7 @@ PKGDIR=${PACKAGE}-${PKGVERSION}
 PKGSRC=${PACKAGE}_${PKGVERSION}.orig.tar.gz
 
 ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
+GITVERSION:=$(shell cat .git/refs/heads/master)
 
 DEBS= ${PACKAGE}_${PKGVERSION}-${PKGRELEASE}_${ARCH}.deb
 
@@ -16,6 +17,7 @@ ${DEBS}: ${PKGSRC}
        rm -rf ${PKGDIR}
        tar xf ${PKGSRC} 
        cp -a debian ${PKGDIR}/debian
+       echo "git clone git://git.proxmox.com/git/pve-omping.git\\ngit checkout ${GITVERSION}" > ${PKGDIR}/debian/SOURCE
        cd ${PKGDIR}; dpkg-buildpackage -rfakeroot -b -us -uc
 
 .PHONY: upload
diff --git a/debian/docs b/debian/docs
new file mode 100644 (file)
index 0000000..8696672
--- /dev/null
@@ -0,0 +1 @@
+debian/SOURCE