X-Git-Url: https://git.proxmox.com/?p=pve-firewall.git;a=blobdiff_plain;f=Makefile;h=c98886d1de8d78524df55c4e70f0f49a5e57b92b;hp=2b2fd8b30fa726a3efa8f1020ea39e60d010cfe8;hb=0398480886f82189988edcd00fa20683cbbed4ce;hpb=baba607ab07d35d44bbe4bc0805117a08eb7db8c diff --git a/Makefile b/Makefile index 2b2fd8b..c98886d 100644 --- a/Makefile +++ b/Makefile @@ -1,16 +1,14 @@ -VERSION=3.0 -PKGREL=19 +include /usr/share/dpkg/pkg-info.mk +include /usr/share/dpkg/architecture.mk PACKAGE=pve-firewall -BUILDDIR ?= ${PACKAGE}-${VERSION} - -ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH) +BUILDDIR ?= ${PACKAGE}-${DEB_VERSION_UPSTREAM} GITVERSION:=$(shell git rev-parse HEAD) -DEB=${PACKAGE}_${VERSION}-${PKGREL}_${ARCH}.deb -DSC=${PACKAGE}_${VERSION}-${PKGREL}.dsc -DEB2=${PACKAGE}-dbgsym_${VERSION}-${PKGREL}_${ARCH}.deb +DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_${DEB_BUILD_ARCH}.deb +DSC=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}.dsc +DEB2=${PACKAGE}-dbgsym_${DEB_VERSION_UPSTREAM_REVISION}_${DEB_BUILD_ARCH}.deb DEBS=$(DEB) $(DEB2) all: $(DEBS) @@ -50,4 +48,4 @@ clean: .PHONY: upload upload: $(DEBS) - tar cf - $(DEBS) | ssh repoman@repo.proxmox.com -- upload --product pve --dist stretch --arch ${ARCH} + tar cf - $(DEBS) | ssh repoman@repo.proxmox.com -- upload --product pve --dist buster --arch ${DEB_BUILD_ARCH}