X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=Makefile;h=e288a2eef9b2b41d5e7ec07a7f13ef4de89fdead;hb=0a8764f4fb52c3e1844c395bcfaac66480dd6843;hp=8bd3bdf725a065233469f2e0dfd92698ad3ca13a;hpb=af5eee0cb17fc7526b3cd216de7110b2175a94de;p=corosync-pve.git diff --git a/Makefile b/Makefile index 8bd3bdf..e288a2e 100644 --- a/Makefile +++ b/Makefile @@ -1,13 +1,14 @@ -RELEASE=2.3 +RELEASE=4.0 # source from http://www.corosync.org -CSVERSION=1.4.4 -CSRELEASE=3 +CSVERSION=2.3.5 +CSRELEASE=1 CSDIR=corosync-${CSVERSION} -CSSRC=corosync-${CSVERSION}.orig.tar.gz +CSSRC=corosync-${CSVERSION}.tar.gz ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH) +GITVERSION:=$(shell cat .git/refs/heads/master) DEBS= \ corosync-pve_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \ @@ -22,8 +23,20 @@ ${DEBS}: ${CSSRC} rm -rf ${CSDIR} tar xf ${CSSRC} cp -a debian ${CSDIR}/debian + echo "git clone git://git.proxmox.com/git/corosync-pve.git\\ngit checkout ${GITVERSION}" > ${CSDIR}/debian/SOURCE + cd ${CSDIR}; dpkg-buildpackage -rfakeroot -b -us -uc +.PHONY: download +download: + rm -f ${CSSRC} ${CSSRC}.tmp ${CSDIR} + # wget http://build.clusterlabs.org/corosync/releases/${CSSRC} + git clone https://github.com/corosync/corosync.git ${CSDIR} + cd ${CSDIR}; git checkout v${CSVERSION} + cd ${CSDIR}; ./autogen.sh + tar czf ${CSSRC}.tmp ${CSDIR} + mv ${CSSRC}.tmp ${CSSRC} + .PHONY: upload upload: ${DEBS} umount /pve/${RELEASE}; mount /pve/${RELEASE} -o rw @@ -40,6 +53,7 @@ distclean: clean .PHONY: clean clean: rm -rf *_${ARCH}.deb *.changes *.dsc ${CSDIR} corosync_${CSVERSION}-${CSRELEASE}.tar.gz + find . -name '*~' -exec rm {} ';' .PHONY: dinstall dinstall: ${DEBS}