+include /usr/share/dpkg/pkg-info.mk
+include /usr/share/dpkg/architecture.mk
+
PACKAGE=lxc-pve
-LXCVER=3.0.2+pve1
-DEBREL=5
SRCDIR=lxc
-BUILDSRC := $(PACKAGE)-$(LXCVER)
-
-ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
+BUILDSRC := $(PACKAGE)-$(DEB_VERSION_UPSTREAM)
-DEB_BASE=$(PACKAGE)_$(LXCVER)-$(DEBREL)
-DEB1=$(DEB_BASE)_$(ARCH).deb
-DEB2=$(PACKAGE)-dev_$(LXCVER)-$(DEBREL)_$(ARCH).deb \
- $(PACKAGE)-dbgsym_$(LXCVER)-$(DEBREL)_$(ARCH).deb
+DEB_BASE=$(PACKAGE)_$(DEB_VERSION_UPSTREAM_REVISION)
+DEB1=$(DEB_BASE)_$(DEB_BUILD_ARCH).deb
+DEB2=$(PACKAGE)-dev_$(DEB_VERSION_UPSTREAM_REVISION)_$(DEB_BUILD_ARCH).deb \
+ $(PACKAGE)-dbgsym_$(DEB_VERSION_UPSTREAM_REVISION)_$(DEB_BUILD_ARCH).deb
DEBS=$(DEB1) $(DEB2)
DSC=$(DEB_BASE).dsc
TARGZ=$(DEB_BASE).tar.gz
.PHONY: upload
upload: $(DEBS)
- tar cf - $(DEBS) | ssh repoman@repo.proxmox.com upload --product pve --dist stretch
+ tar cf - $(DEBS) | ssh repoman@repo.proxmox.com upload --product pve --dist buster
distclean: clean
.PHONY: clean
clean:
- rm -rf $(BUILDSRC) *_$(ARCH).deb *_$(ARCH).dsc *.tar.gz *.changes *.dsc *.buildinfo
+ rm -rf $(BUILDSRC) *.deb *.dsc *.tar.gz *.changes *.dsc *.buildinfo
.PHONY: dinstall
dinstall: $(DEBS)