]> git.proxmox.com Git - pve-access-control.git/blobdiff - Makefile
implement helper to generate SPICE remote-viewer configuration
[pve-access-control.git] / Makefile
index 03310c4ff86d46f55dd4431f419a2dac012c638d..5a6f421a69199f73510d1152ee068f4ebe906ef9 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,8 @@
-RELEASE=2.0
+RELEASE=3.1
 
-VERSION=1.0
+VERSION=3.0
 PACKAGE=libpve-access-control
-PKGREL=21
+PKGREL=9
 
 DESTDIR=
 PREFIX=/usr
@@ -15,6 +15,8 @@ MAN1DIR=${MANDIR}/man1/
 export PERLDIR=${PREFIX}/share/perl5
 
 ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
+GITVERSION:=$(shell cat .git/refs/heads/master)
+
 DEB=${PACKAGE}_${VERSION}-${PKGREL}_${ARCH}.deb
 
 all: ${DEB}
@@ -51,6 +53,7 @@ deb ${DEB}:
        make DESTDIR=`pwd`/build install
        install -d -m 0755 build/DEBIAN
        sed -e s/@@VERSION@@/${VERSION}/ -e s/@@PKGRELEASE@@/${PKGREL}/ -e s/@@ARCH@@/${ARCH}/ <control.in >build/DEBIAN/control
+       echo "git clone git://git.proxmox.com/git/pve-access-control.git\\ngit checkout ${GITVERSION}" >  build/${DOCDIR}/SOURCE
        install -D -m 0644 copyright build/${DOCDIR}/copyright
        install -m 0644 changelog.Debian build/${DOCDIR}/
        gzip -9 build/${DOCDIR}/changelog.Debian