]> git.proxmox.com Git - corosync-pve.git/blame - Makefile
bump version to 2.3.4-2
[corosync-pve.git] / Makefile
CommitLineData
013101f0 1RELEASE=4.0
930e051d 2
07d9b3a0 3# source from http://www.corosync.org
aeb347a9 4
013101f0 5CSVERSION=2.3.4
d05fb358 6CSRELEASE=2
930e051d 7CSDIR=corosync-${CSVERSION}
013101f0 8CSSRC=corosync-${CSVERSION}.tar.gz
930e051d
DM
9
10ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
5aa0e5ba 11GITVERSION:=$(shell cat .git/refs/heads/master)
930e051d
DM
12
13DEBS= \
14 corosync-pve_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
15 libcorosync4-pve_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
16 libcorosync-pve-dev_${CSVERSION}-${CSRELEASE}_${ARCH}.deb
17
18all: ${DEBS}
19 echo ${DEBS}
20
21${DEBS}: ${CSSRC}
22 echo ${DEBS}
23 rm -rf ${CSDIR}
24 tar xf ${CSSRC}
25 cp -a debian ${CSDIR}/debian
5aa0e5ba
DM
26 echo "git clone git://git.proxmox.com/git/corosync-pve.git\\ngit checkout ${GITVERSION}" > ${CSDIR}/debian/SOURCE
27
930e051d
DM
28 cd ${CSDIR}; dpkg-buildpackage -rfakeroot -b -us -uc
29
013101f0
DM
30.PHONY: download
31download:
d05fb358
DM
32 rm -f ${CSSRC} ${CSSRC}.tmp ${CSDIR}
33 # wget http://build.clusterlabs.org/corosync/releases/${CSSRC}
34 git clone https://github.com/corosync/corosync.git ${CSDIR}
35 cd ${CSDIR}; ./autogen.sh
36 tar czf ${CSSRC}.tmp ${CSDIR}
37 mv ${CSSRC}.tmp ${CSSRC}
013101f0 38
930e051d
DM
39.PHONY: upload
40upload: ${DEBS}
41 umount /pve/${RELEASE}; mount /pve/${RELEASE} -o rw
42 mkdir -p /pve/${RELEASE}/extra
43 rm -f /pve/${RELEASE}/extra/corosync*.deb
44 rm -f /pve/${RELEASE}/extra/libcorosync*.deb
45 rm -f /pve/${RELEASE}/extra/Packages*
46 cp ${DEBS} /pve/${RELEASE}/extra
47 cd /pve/${RELEASE}/extra; dpkg-scanpackages . /dev/null > Packages; gzip -9c Packages > Packages.gz
48 umount /pve/${RELEASE}; mount /pve/${RELEASE} -o ro
49
01f3ad04
DM
50distclean: clean
51
930e051d
DM
52.PHONY: clean
53clean:
54 rm -rf *_${ARCH}.deb *.changes *.dsc ${CSDIR} corosync_${CSVERSION}-${CSRELEASE}.tar.gz
6e49b83c 55 find . -name '*~' -exec rm {} ';'
930e051d
DM
56
57.PHONY: dinstall
58dinstall: ${DEBS}
59 dpkg -i ${DEBS}