X-Git-Url: https://git.proxmox.com/?p=pve-access-control.git;a=blobdiff_plain;f=Makefile;h=5a6f421a69199f73510d1152ee068f4ebe906ef9;hp=7e2db08cddf7c7a6e899c3ba9979316d87f5cfea;hb=e4f8fc2e7e5f31691629a5361000636f8a2b2398;hpb=eb09b155c89d58ffd3f3ebd1c14b9e3622f027d2 diff --git a/Makefile b/Makefile index 7e2db08..5a6f421 100644 --- 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=3 +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} @@ -25,10 +27,12 @@ dinstall: deb %.1.gz: %.1.pod rm -f $@ - cat $<|pod2man -n $* -s 1 -r ${VERSION} -c "Proxmox Documentation"|gzip -c9 >$@ + cat $<|pod2man -n $* -s 1 -r ${VERSION} -c "Proxmox Documentation"|gzip -c9 >$@.tmp + mv $@.tmp $@ pveum.1.pod: pveum - perl -I. ./pveum printmanpod >$@ + perl -I. ./pveum printmanpod >$@.tmp + mv $@.tmp $@ .PHONY: install install: pveum.1.pod pveum.1.gz @@ -49,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