]> git.proxmox.com Git - libiscsi.git/blobdiff - Makefile
add reference to git version
[libiscsi.git] / Makefile
index 3ced958fdb00984e7359296a6bef88f2ae74b6e2..4005d8dadb3f0ff4956b13763783981a248a0bf5 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,12 @@
-RELEASE=2.1
+RELEASE=3.0
 
-PKGVERSION=1.5.0
+PKGVERSION=1.9.0
 PKGRELEASE=1
 PKGDIR=libiscsi-${PKGVERSION}
 PKGSRC=libiscsi-${PKGVERSION}.tar.gz
 
 ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
+GITVERSION:=$(shell cat .git/refs/heads/master)
 
 DEBS=                                                                  \
        libiscsi-bin_${PKGVERSION}-${PKGRELEASE}_${ARCH}.deb            \
@@ -20,6 +21,7 @@ ${DEBS}: ${PKGSRC}
        rm -rf ${PKGDIR}
        tar xf ${PKGSRC} 
        cp -a debian ${PKGDIR}/debian
+       echo "git clone git://git.proxmox.com/git/libiscsi.git\\ngit checkout ${GITVERSION}" > ${PKGDIR}/debian/SOURCE
        cat ${PKGDIR}/COPYING >>${PKGDIR}/debian/copyright
        cd ${PKGDIR}; dpkg-buildpackage -rfakeroot -b -us -uc