]> git.proxmox.com Git - novnc-pve.git/commitdiff
add SOURCE file (reference to git repository)
authorDietmar Maurer <dietmar@proxmox.com>
Fri, 13 Jun 2014 07:29:23 +0000 (09:29 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 13 Jun 2014 07:29:23 +0000 (09:29 +0200)
Makefile
debian/docs

index a59660bc431a9c46a8e63aa5e6e843b36e4f84ef..040eeaa30ac0f241a188c5a962ab84599908bd11 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -8,6 +8,7 @@ NOVNCSRC=${NOVNCDIR}.tgz
 NOVNCVER=0.4
 
 ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
+GITVERSION:=$(shell cat .git/refs/heads/master)
 
 DEB=${PACKAGE}_${NOVNCVER}-${PKGREL}_${ARCH}.deb
 
@@ -22,7 +23,10 @@ deb ${DEB}: ${TARSRC}
        rm -rf ${NOVNCDIR}
        tar xf ${NOVNCSRC}
        mv ${NOVNCDIR}/debian ${NOVNCDIR}/debian.org
-       cp -a debian ${NOVNCDIR}/debian 
+       cp -a debian ${NOVNCDIR}/debian
+       # fix file permissions
+       chmod 0644 ${NOVNCDIR}/include/jsunzip.js
+       echo "git clone git://git.proxmox.com/git/novnc-pve.git\\ngit checkout ${GITVERSION}" > ${NOVNCDIR}/debian/SOURCE
        cd ${NOVNCDIR}; dpkg-buildpackage -b -uc -us
        lintian ${DEB}
 
index 443a0a42a0a79ac533f0824a3d7c6311a600a3bf..e88c6696514706c4dea3c3289571d06ce0c941f1 100644 (file)
@@ -1,2 +1,3 @@
 README.md
 LICENSE.txt
+debian/SOURCE