X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=Makefile;h=ef8b026e7d8096a1ff99ef38d439ee87aea7f39e;hb=158514a8362ac7ffdecd1562fc2be6b8e113718c;hp=1f650a96e2f89a2e016e4eb7e41d34ea840abf38;hpb=4473c96caf4cd849c22e23ec77dd59eec324b92b;p=pve-access-control.git diff --git a/Makefile b/Makefile index 1f650a9..ef8b026 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,10 @@ -VERSION=5.1 +include /usr/share/dpkg/pkg-info.mk +include /usr/share/dpkg/architecture.mk + PACKAGE=libpve-access-control -PKGREL=7 -BUILDDIR ?= ${PACKAGE}-${VERSION} + +BUILDDIR ?= ${PACKAGE}-${DEB_VERSION_UPSTREAM} DESTDIR= PREFIX=/usr @@ -16,13 +18,10 @@ ZSHCOMPLDIR=${PREFIX}/share/zsh/vendor-completions/ export PERLDIR=${PREFIX}/share/perl5 -export SOURCE_DATE_EPOCH ?= $(shell dpkg-parsechangelog -STimestamp) - -ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH) GITVERSION:=$(shell cat .git/refs/heads/master) -DEB=${PACKAGE}_${VERSION}-${PKGREL}_${ARCH}.deb -DSC=${PACKAGE}_${VERSION}-${PKGREL}.dsc +DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_all.deb +DSC=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}.dsc # this requires package pve-doc-generator export NOVIEW=1 @@ -52,7 +51,6 @@ install: pveum.1 oathkeygen pveum.bash-completion pveum.zsh-completion install -d ${DESTDIR}/${MAN1DIR} install -d ${DESTDIR}/${DOCDIR} install -m 0644 pveum.1 ${DESTDIR}/${MAN1DIR} - gzip -9 -n ${DESTDIR}/${MAN1DIR}/pveum.1 install -m 0644 -D pveum.bash-completion ${DESTDIR}${BASHCOMPLDIR}/pveum install -m 0644 -D pveum.zsh-completion ${DESTDIR}${ZSHCOMPLDIR}/_pveum @@ -80,7 +78,7 @@ ${DSC}: ${BUILDDIR} .PHONY: upload upload: ${DEB} - tar cf - ${DEB} | ssh repoman@repo.proxmox.com -- upload --product pve --dist stretch --arch ${ARCH} + tar cf - ${DEB} | ssh repoman@repo.proxmox.com -- upload --product pve --dist buster --arch ${DEB_BUILD_ARCH} .PHONY: clean clean: