X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=Makefile;h=6adbdb4dd4deed3bd6ea774a7c05e4feceed4b76;hb=8a3cd03242ad20c4511ea9cbe635902b2b78f2d9;hp=233092df0905d59043155aba31c20ae5fba6a189;hpb=02f0ad7fc84c46384094f4fb2e4fcf8bcff36a3f;p=pve-cluster.git diff --git a/Makefile b/Makefile index 233092d..6adbdb4 100644 --- a/Makefile +++ b/Makefile @@ -1,12 +1,12 @@ +include /usr/share/dpkg/pkg-info.mk +include /usr/share/dpkg/architecture.mk + PACKAGE=pve-cluster -PKGVER=5.0 -PKGREL=37 -ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH) GITVERSION:=$(shell git rev-parse HEAD) -DEB=${PACKAGE}_${PKGVER}-${PKGREL}_${ARCH}.deb -DBG_DEB=${PACKAGE}-dbgsym_${PKGVER}-${PKGREL}_${ARCH}.deb +DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_${DEB_BUILD_ARCH}.deb +DBGDEB=${PACKAGE}-dbgsym_${DEB_VERSION_UPSTREAM_REVISION}_${DEB_BUILD_ARCH}.deb PERL_APIVER := `perl -MConfig -e 'print $$Config{debian_abi}//$$Config{version};'` @@ -26,7 +26,6 @@ ${DEB}: rm -rf build cp -a data build cp -a debian build/debian - sed -e "s|@PERLAPI@|perlapi-$(PERL_APIVER)|g" debian/control.in > build/debian/control echo "git clone git://git.proxmox.com/git/pve-cluster.git\\ngit checkout ${GITVERSION}" > build/debian/SOURCE cd build; dpkg-buildpackage -rfakeroot -b -us -uc lintian ${DEB} @@ -34,8 +33,8 @@ ${DEB}: .PHONY: upload upload: ${DEB} ${DBG_DEB} - tar cf - ${DEB} ${DBG_DEB}| ssh -X repoman@repo.proxmox.com -- upload --product pve --dist stretch --arch ${ARCH} + tar cf - ${DEB} ${DBGDEB}| ssh -X repoman@repo.proxmox.com -- upload --product pve --dist buster --arch ${DEB_BUILD_ARCH} .PHONY: clean clean: - rm -rf *~ build *_${ARCH}.deb *.changes *.dsc ${CSDIR} *.buildinfo + rm -rf *~ build *.deb *.changes *.dsc ${CSDIR} *.buildinfo