]> git.proxmox.com Git - corosync-pve.git/blob - Makefile
bump version to 2.4.2-pve5
[corosync-pve.git] / Makefile
1 RELEASE=5.0
2
3 # source from http://www.corosync.org
4
5 CSVERSION=2.4.2
6 CSRELEASE=pve5
7 DEBRELEASE=3
8 CSDIR=corosync-${CSVERSION}
9 CSSRC=corosync-${CSVERSION}.tar.gz
10
11 ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
12 GITVERSION:=$(shell cat .git/refs/heads/master)
13
14 DEBS=corosync-pve_${CSVERSION}-${CSRELEASE}_all.deb \
15 libcorosync4-pve_${CSVERSION}-${CSRELEASE}_all.deb \
16 corosync_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
17 corosync-notifyd_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
18 corosync-qdevice_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
19 corosync-qnetd_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
20 corosync-doc_${CSVERSION}-${CSRELEASE}_all.deb \
21 corosync-dev_${CSVERSION}-${CSRELEASE}_all.deb \
22 libcfg6_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
23 libcmap4_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
24 libcorosync-common4_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
25 libcpg4_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
26 libquorum5_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
27 libsam4_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
28 libtotem-pg5_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
29 libvotequorum8_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
30 libcfg-dev_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
31 libcmap-dev_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
32 libcorosync-common-dev_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
33 libcpg-dev_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
34 libquorum-dev_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
35 libsam-dev_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
36 libtotem-pg-dev_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
37 libvotequorum-dev_${CSVERSION}-${CSRELEASE}_${ARCH}.deb
38
39 all: ${DEBS}
40 echo ${DEBS}
41
42 .PHONY: deb
43 deb: ${DEBS}
44 ${DEBS}: ${CSSRC}
45 rm -rf ${CSDIR}
46 tar xf ${CSSRC}
47 mv ${CSDIR}/debian/changelog ${CSDIR}/debian/changelog.org
48 cat changelog.Debian ${CSDIR}/debian/changelog.org > ${CSDIR}/debian/changelog
49 cd ${CSDIR}; ln -s ../patches patches
50 cd ${CSDIR}; quilt push -a
51 cd ${CSDIR}; rm -rf .pc ./patches
52 cd ${CSDIR}; dpkg-buildpackage -b -us -uc
53
54 .PHONY: download
55 download:
56 rm -rf ${CSSRC} ${CSSRC}.tmp ${CSDIR}
57 git clone https://anonscm.debian.org/git/debian-ha/corosync.git -b debian/${CSVERSION}-${DEBRELEASE} ${CSDIR}
58 # wget http://build.clusterlabs.org/corosync/releases/${CSSRC}
59 tar czf ${CSSRC}.tmp ${CSDIR}
60 mv ${CSSRC}.tmp ${CSSRC}
61
62 .PHONY: upload
63 upload: ${DEBS}
64 tar cf - ${DEBS} | ssh -X repoman@repo.proxmox.com -- upload --product pve --dist stretch --arch ${ARCH}
65
66 distclean: clean
67
68 .PHONY: clean
69 clean:
70 rm -rf *.deb *.changes *.dsc *.buildinfo ${CSDIR} corosync_${CSVERSION}-${CSRELEASE}.tar.gz
71 find . -name '*~' -exec rm {} ';'
72
73 .PHONY: dinstall
74 dinstall: ${DEBS}
75 dpkg -i ${DEBS}