X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=Makefile;h=bf04ef0ddbfb97771f9a2f2fef5f1e28318c3ba9;hb=dbe510aa925171559d44a19487ea2abfd5fbb4cb;hp=2b3fa07cb8b1e825e321e85d000ec0147b327eab;hpb=f8333c797d206f400142a56a3d220e3a514de597;p=pve-cluster.git diff --git a/Makefile b/Makefile index 2b3fa07..bf04ef0 100644 --- a/Makefile +++ b/Makefile @@ -1,12 +1,12 @@ PACKAGE=pve-cluster PKGVER=5.0 -PKGREL=1 +PKGREL=32 ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH) -GITVERSION:=$(shell cat .git/refs/heads/master) +GITVERSION:=$(shell git rev-parse HEAD) DEB=${PACKAGE}_${PKGVER}-${PKGREL}_${ARCH}.deb -DBG_DEB=${PACKAGE}-dbg_${PKGVER}-${PKGREL}_${ARCH}.deb +DBG_DEB=${PACKAGE}-dbgsym_${PKGVER}-${PKGREL}_${ARCH}.deb PERL_APIVER := `perl -MConfig -e 'print $$Config{debian_abi}//$$Config{version};'` @@ -28,14 +28,13 @@ ${DEB}: 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; ./autogen.sh cd build; dpkg-buildpackage -rfakeroot -b -us -uc lintian ${DEB} .PHONY: upload upload: ${DEB} ${DBG_DEB} - tar cf - ${DEB} ${DBG_DEB}| ssh repoman@repo.proxmox.com -- upload --product pve --dist stretch --arch ${ARCH} + tar cf - ${DEB} ${DBG_DEB}| ssh -X repoman@repo.proxmox.com -- upload --product pve --dist stretch --arch ${ARCH} .PHONY: clean clean: