]> git.proxmox.com Git - corosync-pve.git/blobdiff - Makefile
update to v2.3.5, bump package version to 2.3.5-1
[corosync-pve.git] / Makefile
index 8bd3bdf725a065233469f2e0dfd92698ad3ca13a..e288a2eef9b2b41d5e7ec07a7f13ef4de89fdead 100644 (file)
--- 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}