]> git.proxmox.com Git - pve-storage.git/blobdiff - Makefile
Prepare for adding support for istgt and openiscsi Refactor code. Move any LUN relate...
[pve-storage.git] / Makefile
index 9bff9bf8402e4e3286c766ea24f4693e128e9469..5f52478e0228235f5a9a7ff7d3885df433553b94 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,8 @@
-RELEASE=2.0
+RELEASE=3.1
 
-VERSION=2.0
+VERSION=3.0
 PACKAGE=libpve-storage-perl
-PKGREL=9
+PKGREL=17
 
 DESTDIR=
 PREFIX=/usr
@@ -16,6 +16,8 @@ export PERLDIR=${PREFIX}/share/perl5
 
 #ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
 ARCH=all
+GITVERSION:=$(shell cat .git/refs/heads/master)
+
 DEB=${PACKAGE}_${VERSION}-${PKGREL}_${ARCH}.deb
 
 
@@ -53,6 +55,7 @@ deb ${DEB}:
        install -D -m 0644 copyright debian/${DOCDIR}/copyright
        install -m 0644 changelog.Debian debian/${DOCDIR}/
        gzip -9 debian/${DOCDIR}/changelog.Debian
+       echo "git clone git://git.proxmox.com/git/pve-storage.git\\ngit checkout ${GITVERSION}" > debian/${DOCDIR}/SOURCE
        dpkg-deb --build debian 
        mv debian.deb ${DEB}
        rm -rf debian