+include /usr/share/dpkg/pkg-info.mk
+include /usr/share/dpkg/architecture.mk
include defines.mk
-export SOURCE_DATE_EPOCH ?= $(shell dpkg-parsechangelog -STimestamp)
+export PVERELEASE=${DEB_VERSION_UPSTREAM}
+export VERSION=${DEB_VERSION_UPSTREAM_REVISION}
DESTDIR=
SUBDIRS = aplinfo PVE bin www services configs network-hooks test
-ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
GITVERSION:=$(shell git rev-parse HEAD)
# possibly set via debian/rules(.env)
REPOID?=$(shell git rev-parse --short=8 HEAD)
-DEB=${PACKAGE}_${VERSION}-${PACKAGERELEASE}_${ARCH}.deb
+DEB=${PACKAGE}_${VERSION}_${DEB_BUILD_ARCH}.deb
all: ${SUBDIRS}
set -e && for i in ${SUBDIRS}; do ${MAKE} -C $$i; done
.PHONY: check
-check: bin tests
+check: bin test
${MAKE} -C bin check
${MAKE} -C test check
upload: ${DEB} check
# check if working directory is clean
git diff --exit-code --stat && git diff --exit-code --stat --staged
- tar cf - ${DEB} | ssh -X repoman@repo.proxmox.com upload --product pve --dist stretch
+ tar cf - ${DEB} | ssh -X repoman@repo.proxmox.com upload --product pve --dist buster
.PHONY: install
install: vzdump-hook-script.pl