X-Git-Url: https://git.proxmox.com/?p=pve-access-control.git;a=blobdiff_plain;f=Makefile;h=cacb7968bb3fb36f20185390e18ec0f6aedbb812;hp=5e6ddc34b7e60e2f58280dedee04913c7c9a18da;hb=26361123dfae49411278c0195448b1d256676a90;hpb=b78ce7c2529a381669792a909d6b55b7790969d7 diff --git a/Makefile b/Makefile index 5e6ddc3..cacb796 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,8 @@ -RELEASE=3.0 +RELEASE=3.1 VERSION=3.0 PACKAGE=libpve-access-control -PKGREL=2 +PKGREL=11 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}/ 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