]> git.proxmox.com Git - corosync-pve.git/blame - Makefile
bump version to 2.4.2-2~pve4+2
[corosync-pve.git] / Makefile
CommitLineData
275a2fbe 1RELEASE=4.2
930e051d 2
07d9b3a0 3# source from http://www.corosync.org
aeb347a9 4
63916ea1 5CSVERSION=2.4.2
e4dba541 6CSRELEASE=2~pve4+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 12
153f62cc
WB
13DEB1 := corosync-pve_${CSVERSION}-${CSRELEASE}_${ARCH}.deb
14
15DEB2 := libcorosync4-pve_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
930e051d
DM
16 libcorosync-pve-dev_${CSVERSION}-${CSRELEASE}_${ARCH}.deb
17
153f62cc
WB
18DEBS := $(DEB1) $(DEB2)
19
930e051d
DM
20all: ${DEBS}
21 echo ${DEBS}
22
2507e204
WB
23.PHONY: deb
24deb: $(DEB1)
153f62cc 25$(DEB2): $(DEB1)
153f62cc 26${DEB1}: ${CSSRC}
930e051d
DM
27 rm -rf ${CSDIR}
28 tar xf ${CSSRC}
29 cp -a debian ${CSDIR}/debian
5aa0e5ba
DM
30 echo "git clone git://git.proxmox.com/git/corosync-pve.git\\ngit checkout ${GITVERSION}" > ${CSDIR}/debian/SOURCE
31
3ab39b8e 32 cd ${CSDIR}; dpkg-buildpackage -b -us -uc
930e051d 33
013101f0
DM
34.PHONY: download
35download:
df03257c 36 rm -rf ${CSSRC} ${CSSRC}.tmp ${CSDIR}
d05fb358 37 # wget http://build.clusterlabs.org/corosync/releases/${CSSRC}
df03257c 38 git clone https://github.com/corosync/corosync.git -b needle ${CSDIR}
63916ea1 39 cd ${CSDIR}; git checkout v${CSVERSION}
d05fb358
DM
40 cd ${CSDIR}; ./autogen.sh
41 tar czf ${CSSRC}.tmp ${CSDIR}
42 mv ${CSSRC}.tmp ${CSSRC}
013101f0 43
930e051d
DM
44.PHONY: upload
45upload: ${DEBS}
1508a1f3 46 tar cf - ${DEBS} | ssh repoman@repo.proxmox.com -- upload --product pve --dist jessie --arch ${ARCH}
930e051d 47
01f3ad04
DM
48distclean: clean
49
930e051d
DM
50.PHONY: clean
51clean:
52 rm -rf *_${ARCH}.deb *.changes *.dsc ${CSDIR} corosync_${CSVERSION}-${CSRELEASE}.tar.gz
6e49b83c 53 find . -name '*~' -exec rm {} ';'
930e051d
DM
54
55.PHONY: dinstall
56dinstall: ${DEBS}
57 dpkg -i ${DEBS}